function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function checkNewUserForm(){
var missinginfo = "";
if (document.cartinfo.firstname.value == "")
	{
	missinginfo += "\n     *  First Name";
	}
if (document.cartinfo.lastname.value == "")
	{
	missinginfo += "\n     *  Last Name";
	}
if (document.cartinfo.email.value == "")
	{
	missinginfo += "\n     *  Email";
	}
if (document.cartinfo.email.value > "")
	{
	 if(document.cartinfo.email.value.indexOf('@')<0)
 	{	
	missinginfo += "\n     -  * email address is invalid *";
	}
	}
	

	
if (missinginfo != "") 
	{
	missinginfo ="__________________________________\n\n" +
	"Please enter the following information\n" +
	"and re-submit the form.\n"+
	missinginfo + "\n__________________________________";
	alert(missinginfo);
	return false;	
}
else return true;
}

function checkContact(){
var missinginfo = "";
if (document.contact.name.value == "")
	{
	missinginfo += "\n     *  Name";
	}
if (document.contact.email.value == "")
	{
	missinginfo += "\n     *  Email";
	}
if (document.contact.email.value > "")
	{
	 if(document.contact.email.value.indexOf('@')<0)
 	{	
	missinginfo += "\n     -  * email address is invalid *";
	}
	}
if (missinginfo != "") 
	{
	missinginfo ="__________________________________\n\n" +
	"Please enter the following information\n" +
	"and re-submit the form.\n"+
	missinginfo + "\n__________________________________";
	alert(missinginfo);
	return false;	
}
else return true;
}


function checkEmail(){
var missinginfo = "";
if (document.email.email.value == "")
	{
	missinginfo += "\n     *  Email";
	}
if (document.email.email.value > "")
	{
	 if(document.email.email.value.indexOf('@')<0)
 	{	
	missinginfo += "\n     -  * email address is invalid *";
	}
	}
if (missinginfo != "") 
	{
	missinginfo ="__________________________________\n\n" +
	"Please enter the following information\n" +
	"and re-submit the form.\n"+
	missinginfo + "\n__________________________________";
	alert(missinginfo);
	return false;	
}
else return true;
}


function chknow(){
var missinginfo = "";
if (document.qnty.qty.value == "")
	{
	missinginfo += "\n     -  Quantity";
	}
if (document.qnty.qty.value == "0")
	{
	missinginfo += "\n     -  Quantity";
	}	
if (missinginfo != "") 
	{
	missinginfo ="______________________________________\n\n" +
	"Please enter the quantity and re-submit the form.\n"+
	"\n______________________________________";
	alert(missinginfo);
	return false;	
}
else return true;
}

function remcheck() {
if (document.rem.rem_item.value>document.rem.check_qty.value || document.rem.rem_item.value<=0){
alert("Enter correct quantity which has to removed");
return false;
}
else
{
return true;
}
}

function popup1(popupfile,winheight,winwidth)
{
open(popupfile,"PopupWindow","resizable=no,height=" + winheight + ",width=" + winwidth + ",scrollbars=yes");
}