function check()
{
	if(Contact.name.value=="")
	{  
		alert("Name Cannot be blank");
	  	Contact.name.focus(); 
	}
	  
	else if(Contact.Company.value=="")
	{
		alert("Company Name Cannot Be Blank");
		Contact.Company.focus(); 
	}
	
	else if(Contact.comments.value=="")
	{ 
		alert("Please enter your comments.");
	  	Contact.comments.focus(); 
	}
	
	else
	{
		Contact.pback.value="Y";
		alert("Thank you for contacting us.. One of our representatives will get back to you soon.");
		Contact.submit();
	}
}
function checkshipaddress(shipaddress)
{
	
	if (shipaddress.catdesc.value =="")
	{
	window.alert("You missed address title");
	shipaddress.catdesc.focus();
	return false;
	}
	if (shipaddress.shipname.value =="")
	{
	window.alert("You missed first name");
	shipaddress.shipname.focus();
	return false;
	}
	if (shipaddress.shiplastname.value =="")
	{
	window.alert("You missed last name");
	shipaddress.shiplastname.focus();
	return false;
	}
	if (shipaddress.shpAddress1.value =="")
	{
	window.alert("You missed shipping address1");
	shipaddress.shpAddress1.focus();
	return false;
	}
	
	if (shipaddress.shpCity.value =="")
	{
	window.alert("You missed shipping city");
	shipaddress.shpCity.focus();
	return false;
	}
	if (shipaddress.shpState.value == "" && shipaddress.shpStateCode.value == "" )
	{
		window.alert("you missed shipping state");
		shipaddress.shpStateCode.focus();
		return false;
	}
	if (shipaddress.shpState.value != "" && shipaddress.shpStateCode.value != "" )
	{
	window.alert("No need to enter both shipping state and state code");
	shipaddress.shpState.value =""
	shipaddress.shpStateCode.value=""
	shipaddress.shpState.focus();
	return false;
	}
	if (shipaddress.shpCountryCode.value =="")
	{
	window.alert("You missed shipping  country code");
	shipaddress.shpCountryCode.focus();
	return false;
	}

	if (shipaddress.shpZip.value =="")
	{
	window.alert("You missed shipping  zip");
	shipaddress.shpZip.focus();
	return false;
	}
}
