	function loginAlert()
	{
		var urlconfirm, x;
			x = "distributor-login-alert.html";  
			window.open(x,"loginValidation","x=200,y=200,width=780,height=800,scrollbars=yes");
	}


	  function loginAlert(showhide){
		if(showhide == "show"){
			document.getElementById('popupbox').style.visibility="visible"; 
			//document.formdisnone.storeqty.value = document.form1.qty.value;
		}else if(showhide == "hide"){
			document.getElementById('popupbox').style.visibility="hidden"; 
			//document.formdisnone.storeqty.value = document.form1.qty.value;
		}
	  }


	function MM_reloadPage(init) {  
	  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 chkQty(buyQty, intQty) {
	   //if(buyQty > intQty) {
	   //    document.form1.qty.value = intQty;
	   //   alert ("Maximum quantity is "+intQty+" available.")
	
	  // }
	   	   
	}

	function chkMinQty(buyQty, minQty) {
	   
	   if(minQty > buyQty) {
	      document.form1.qty.value = minQty;
		  alert ("Minimum Order quantity is "+minQty+".")
	
	  } 
	   
	}

