function MM_reloadPage(init) {  //reloads the window if Nav4 resized


  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {


    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}


  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();


}


MM_reloadPage(true);





function MM_findObj(n, d) { //v4.01


  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {


    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}


  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];


  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);


  if(!x && d.getElementById) x=d.getElementById(n); return x;


}





function P7_Snap() { //v2.62 by PVII


  var x,y,ox,bx,oy,p,tx,a,b,k,d,da,e,el,args=P7_Snap.arguments;a=parseInt(a);


  for (k=0; k<(args.length-3); k+=4)


   if ((g=MM_findObj(args[k]))!=null) {


    el=eval(MM_findObj(args[k+1]));


    a=parseInt(args[k+2]);b=parseInt(args[k+3]);


    x=0;y=0;ox=0;oy=0;p="";tx=1;da="document.all['"+args[k]+"']";


    if(document.getElementById) {


     d="document.getElementsByName('"+args[k]+"')[0]";


     if(!eval(d)) {d="document.getElementById('"+args[k]+"')";if(!eval(d)) {d=da;}}


    }else if(document.all) {d=da;} 


    if (document.all || document.getElementById) {


     while (tx==1) {p+=".offsetParent";


      if(eval(d+p)) {x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));


      }else{tx=0;}}


     ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);var tw=x+ox+y+oy;


     if(tw==0 || (navigator.appVersion.indexOf("MSIE 4")>-1 && navigator.appVersion.indexOf("Mac")>-1)) {


      ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top);


      }else{var w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10;


      a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b;


      x=document.body.scrollLeft + event.clientX + bx;


      y=document.body.scrollTop + event.clientY;}}


   }else if (document.layers) {x=g.x;y=g.y;var q0=document.layers,dd="";


    for(var s=0;s<q0.length;s++) {dd='document.'+q0[s].name;


     if(eval(dd+'.document.'+args[k])) {x+=eval(dd+'.left');y+=eval(dd+'.top');break;}}}


   if(el) {e=(document.layers)?el:el.style;


   var xx=parseInt(x+ox+a),yy=parseInt(y+oy+b);


   if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)>4){xx+="px";yy+="px";}


   if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){


    xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin);


    xx+="px";yy+="px";}e.left=xx;e.top=yy;}}


}





function P7_ReDoIt() { //v1.21 by PVII


 if(document.layers) {MM_reloadPage(false);}


}





function MM_showHideLayers() { //v6.0


  var i,p,v,obj,args=MM_showHideLayers.arguments;


  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];


    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }


    obj.visibility=v; }


}


function MM_openBrWindow(theURL,winName,features) { //v2.0


  window.open(theURL,winName,features);


}

function mmLoadMenus() {
  if (window.mm_menu_0911160901_0) return;
      window.mm_menu_0911160901_0 = new Menu("root",100,18,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#535353","#908271","#C3BBB2","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0911160901_0.addMenuItem("Cleansers","location='/shopping/cleansers/11/1'");
  mm_menu_0911160901_0.addMenuItem("Moisturisers","location='/shopping/moisturisers/12/1'");
  mm_menu_0911160901_0.addMenuItem("Exfoliants","location='/shopping/exfoliants/14/1'");
  mm_menu_0911160901_0.addMenuItem("Serums","location='/shopping/serums/17/1'");
  mm_menu_0911160901_0.addMenuItem("Toners & Mists","location='/shopping/toners_mists/13/1'");
  mm_menu_0911160901_0.addMenuItem("Treatments","location='/shopping/treatments/15/1'");
  mm_menu_0911160901_0.addMenuItem("Masks","location='/shopping/masks/16/1'");
  mm_menu_0911160901_0.addMenuItem("Eyes","location='/shopping/eyes/68/1'");
  mm_menu_0911160901_0.addMenuItem("Lips","location='/shopping/lips/69/1'");
  mm_menu_0911160901_0.addMenuItem("Sun","location='/shopping/sun/18/1'");
   mm_menu_0911160901_0.fontWeight="normal";
   mm_menu_0911160901_0.hideOnMouseOut=true;
   mm_menu_0911160901_0.bgColor='#C3BBB2';
   mm_menu_0911160901_0.menuBorder=1;
   mm_menu_0911160901_0.menuLiteBgColor='#C3BBB2';
   mm_menu_0911160901_0.menuBorderBgColor='#C3BBB2';
  window.mm_menu_0911160914_0 = new Menu("root",140,18,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#535353","#908271","#C3BBB2","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0911160914_0.addMenuItem("Cleanse","location='/shopping/cleanse/20/1'");
  mm_menu_0911160914_0.addMenuItem("Treat","location='/shopping/treat/22/1'");
  mm_menu_0911160914_0.addMenuItem("Exfoliate","location='/shopping/exfoliate/50/1'");
  mm_menu_0911160914_0.addMenuItem("Moisturise","location='/shopping/moisturise/23/1'");
  mm_menu_0911160914_0.addMenuItem("Sun","location='/shopping/sun/24/1'");
  mm_menu_0911160914_0.addMenuItem("Soak","location='/shopping/soak/48/1'");
  mm_menu_0911160914_0.addMenuItem("Deodorant","location='/shopping/deodorant/51/1'");
   mm_menu_0911160914_0.fontWeight="normal";
   mm_menu_0911160914_0.hideOnMouseOut=true;
   mm_menu_0911160914_0.bgColor='#C3BBB2';
   mm_menu_0911160914_0.menuBorder=1;
   mm_menu_0911160914_0.menuLiteBgColor='#C3BBB2';
   mm_menu_0911160914_0.menuBorderBgColor='#C3BBB2';
    window.mm_menu_0911160925_0 = new Menu("root",100,18,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#535353","#908271","#C3BBB2","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0911160925_0.addMenuItem("Shampoo","location='/shopping/shampoo/26/1'");
  mm_menu_0911160925_0.addMenuItem("Conditioner","location='/shopping/conditioner/27/1'");
  mm_menu_0911160925_0.addMenuItem("Treatment","location='/shopping/treatment_29/29/1'");
  mm_menu_0911160925_0.addMenuItem("Style","location='/shopping/style/30/1'");
   mm_menu_0911160925_0.fontWeight="normal";
   mm_menu_0911160925_0.hideOnMouseOut=true;
   mm_menu_0911160925_0.bgColor='#C3BBB2';
   mm_menu_0911160925_0.menuBorder=1;
   mm_menu_0911160925_0.menuLiteBgColor='#C3BBB2';
   mm_menu_0911160925_0.menuBorderBgColor='#C3BBB2';
window.mm_menu_0911160934_0 = new Menu("root",100,18,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#535353","#908271","#C3BBB2","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0911160934_0.addMenuItem("Face Wash","location='/shopping/mens_face_wash/32/1'");
  mm_menu_0911160934_0.addMenuItem("Moisturise","location='/shopping/mens_moisturise/52/1'");
  mm_menu_0911160934_0.addMenuItem("Scrub","location='/shopping/mens_scrub/64/1'");
  mm_menu_0911160934_0.addMenuItem("Shave","location='/shopping/shave/33/1'");
  mm_menu_0911160934_0.addMenuItem("Hair","location='/shopping/mens_hair/35/1'");
    mm_menu_0911160934_0.addMenuItem("Body Wash","location='/shopping/mens_body_wash/34/1'");
  mm_menu_0911160934_0.addMenuItem("Deodorant","location='/shopping/mens_deodorant/53/1'");
  mm_menu_0911160934_0.addMenuItem("Sun","location='/shopping/mens_sun/70/1'");
  mm_menu_0911160934_0.addMenuItem("Travel Kits","location='/shopping/travel_kits/65/1'");
   mm_menu_0911160934_0.fontWeight="normal";
   mm_menu_0911160934_0.hideOnMouseOut=true;
   mm_menu_0911160934_0.bgColor='#C3BBB2';
   mm_menu_0911160934_0.menuBorder=1;
   mm_menu_0911160934_0.menuLiteBgColor='#C3BBB2';
   mm_menu_0911160934_0.menuBorderBgColor='#C3BBB2';
   
   
   
//201008

    window.mm_menu_0911160935_0 = new Menu("root",100,18,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#535353","#908271","#C3BBB2","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0911160935_0.addMenuItem("Eyes","location='/shopping/eyes_106/106/1'");
  mm_menu_0911160935_0.addMenuItem("Cheeks","location='/shopping/cheeks/105/1'");
  mm_menu_0911160935_0.addMenuItem("Lips","location='/shopping/lips_102/102/1'");
  mm_menu_0911160935_0.addMenuItem("Skin","location='/shopping/skin/107/1'");
   mm_menu_0911160935_0.fontWeight="normal";
   mm_menu_0911160935_0.hideOnMouseOut=true;
   mm_menu_0911160935_0.bgColor='#C3BBB2';
   mm_menu_0911160935_0.menuBorder=1;
   mm_menu_0911160935_0.menuLiteBgColor='#C3BBB2';
   mm_menu_0911160935_0.menuBorderBgColor='#C3BBB2';
   
   
   
       window.mm_menu_0911160945_0 = new Menu("root",100,18,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#535353","#908271","#C3BBB2","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0911160945_0.addMenuItem("Mums","location='/shopping/mums/114/1'");
  mm_menu_0911160945_0.addMenuItem("Bubs","location='/shopping/bubs/115/1'");
  mm_menu_0911160945_0.fontWeight="normal";
   mm_menu_0911160945_0.hideOnMouseOut=true;
   mm_menu_0911160945_0.bgColor='#C3BBB2';
   mm_menu_0911160945_0.menuBorder=1;
   mm_menu_0911160945_0.menuLiteBgColor='#C3BBB2';
   mm_menu_0911160945_0.menuBorderBgColor='#C3BBB2';
   
   
      
   
       window.mm_menu_0911160955_0 = new Menu("root",100,18,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#535353","#908271","#C3BBB2","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0911160955_0.addMenuItem("Coming Soon!","location='#'");
   mm_menu_0911160955_0.fontWeight="normal";
   mm_menu_0911160955_0.hideOnMouseOut=true;
   mm_menu_0911160955_0.bgColor='#C3BBB2';
   mm_menu_0911160955_0.menuBorder=1;
   mm_menu_0911160955_0.menuLiteBgColor='#C3BBB2';
   mm_menu_0911160955_0.menuBorderBgColor='#C3BBB2';
   
   
   
   
      
     window.mm_menu_0911161002_0 = new Menu;
mm_menu_0911161002_0.writeMenus();
} // mmLoadMenus()
//-->
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function chk_review()
{

   var msg="";
   
   var rating_chosen=false;
	
	
/*	for(i=0;i<document.review_detail_frm.elements.length;i++)
	{
		var_name=document.review_detail_frm.elements[i].name;
		
		if(var_name=="rating")
		{
			if(document.review_detail_frm.elements[i].checked==true)
			{
//
				rating_chosen=true;
				break;
			}	
						
		}
	
	}	
	*/
	
	  
	  if(document.review_detail_frm.where.value=="admin" && document.review_detail_frm.user_id.value<=0)
	  	msg+="Please choose a User\n";
	 	 
	  if(document.review_detail_frm.title.value.length==0)
   
	      msg+="Please enter Review Title\n"; 
		  
	  if(document.review_detail_frm.description.value.length==0)
   
	      msg+="Please enter Description\n"; 
		  	  
	if(document.review_detail_frm.allow_links.value==0)
	{ 
	  var isexist=false;
		
		for(i=0;i<document.review_detail_frm.elements.length;i++)
		{	
		
		
		  var_name=document.review_detail_frm.elements[i].name;
		
		  if(var_name!="posted_email")
		  {
				
			count1=new Array();
			count2=new Array();
			count3=new Array();

			count1=document.review_detail_frm.elements[i].value.split("www");
			count2=document.review_detail_frm.elements[i].value.split("@");
			count3=document.review_detail_frm.elements[i].value.split("http");
		   }			
		   if(count1.length >1)
	   	   {
				isexist=true;		
				break;
		   }	
		
 	  	  if(count2.length >1)
		  {
				isexist=true;		
				break;
		  }				
		  
		  if(count3.length >1)
		  {
				isexist=true;		
				break;
		  }	
		
	  }  //end of for
					
					
	 if(isexist)		
		msg+="www, @, http are not allowed\n";
	
	  
	  	
  } //end of if(document.review_detail_frm.allow_links.value==0)
     
  
	  			
	 if(msg.length > 0)
	 {
	 
	    alert(msg);
		return false;
		
	 }	 
	 else
	 {
	 
	    return true;
		
     }
	 
}	 		
	
function chk_user()
{

	var msg="";
	
	if(document.user_regfrm.name.value.length==0)
		msg+="Enter Your Name\n";
		
	if(document.user_regfrm.email.value.length==0)
		msg+="Enter Email Address\n";	
	else

	{

		if(!chk_email(document.user_regfrm.email))

		{

			msg+="Please enter a valid Email\n";

		}

	}  	
		
	if(document.user_regfrm.password.value.length==0)
		msg+="Enter Password\n";
		
	if(msg.length > 0)
	{
	
		alert(msg);
		
		return false;
	}
	else
		return true;
		
}					
				
