// Validating the Contact Us Form
function ContactCheck() {
	d = document.cntctus;

	if (d.FullName.value.length<2) {
	   alert("Please enter the Your Full Name...");
	   d.FullName.select();
	   d.FullName.focus();
           return false;
	}

	if (d.Zip_Code.value == "" ) {
	   alert("Please enter the Your Subject...");
	   d.Zip_Code.select();
	   d.Zip_Code.focus();
           return false;
	}
if (d.FullName.value.length<2) {
	   alert("Please enter the Your Full Name...");
	   d.FullName.select();
	   d.FullName.focus();
           return false;
	}

	if (d.Comments.value.charAt(0) == " "){
		alert("Please enter a valid message... ");
  		d.Comments.focus();
		d.Comments.select();
		return false;
         }

	if (d.Email.value.length<4){
		alert("Please enter a valid email-id");
  		d.Email.focus();
		d.Email.select();
		return false;
        }
    	if(d.Email.value.indexOf('@')<1){
		alert("Please enter a valid email-id")
		d.Email.focus();
		d.Email.select();
		return false;
	}	
	if (d.City.value.length<1) {
	   alert("Please enter the Your City...");
	   d.City.select();
	   d.City.focus();
           return false;
	}

	  

	if (d.City.value.charAt(0) == " " ) {
	   alert("Please enter the City...");
	   d.City.select();
	   d.City.focus();
           return false;
	}
	if (d.Product.value.charAt(0) == " " ) {
	   alert("Please select the Product...");
	   d.Product.select();
	   d.Product.focus();
           return false;
	}
 
	document.cntctus.flag.value="Add";         
	return true;
}

