function EnquiryCheck() {
	d= document.enqfrm ;

	 if (d.Name.value.length<2){
	 	alert("Please Enter your Name ...");
		d.Name.focus();
		d.Name.select();
         	return false;
	 }

	 if (d.CompanyName.value.length<2){
	 	alert("Please enter the Company Name ...");
		d.CompanyName.focus();
		d.CompanyName.select();
         	return false;
	 }

	 if (d.Designation.value.length<2){
	 	alert("Please enter the Company Name ...");
		d.Designation.focus();
		d.Designation.select();
         	return false;
	 }

	if (d.Email.value.length<4){
	   alert("Please enter your mail-ID");
  	   d.Email.focus();
	   d.Email.select();
	   return false;
        }

    	if(d.Email.value.indexOf('@')<1){
			alert("Please note the e-mail id must have @")
			d.Email.focus();
			d.Email.select();
			return false;
		}
		if(d.Email.value.indexOf('.')<4){
			alert("Please enter your correct e-mail")
			d.Email.focus();
			d.Email.select();
			return false;
		}
		var emaillen = d.Email.value.length;
		if(d.Email.value.lastIndexOf('.')>(emaillen-3)){
			alert("Please specify whether you belong .com or .net or .org etc...");
			d.Email.focus();
			d.Email.select();
			return false;
		}
		var atpos = d.Email.value.indexOf('@');
		var dotpos = d.Email.value.indexOf('.');
		if((dotpos-atpos)<4){
			alert("Please mention ...@ where you are?");
			d.Email.focus();
			d.Email.select();
			return false;
		}
	
	if(d.Address.value.charAt(0) == " " ){
		alert("Please Enter your Address ..");
		d.Address.focus();
		d.Address.select();
		return false;
	}
	if(d.Address.value.length<2){
		alert("Please Enter your Address ..");
		d.Address.focus();
		d.Address.select();
		return false;
	}
	
	if (d.ProductTyp.value == "Products" ) {
		if ( d.Product.value == "Select" ){
			alert("Please select the Product...");
			d.Product.focus();
			return false;
		}
	}
	if (d.ProductTyp.value == "Other") {
		if(d.OtherProduct.value.length<2){
			alert("Please enter the Other Product..");
			d.OtherProduct.focus();
			d.OtherProduct.select();
			return false;
		}
	}

	if(d.Information.value.charAt(0) == " "){
		alert("Please Enter your Enquiry Information ..");
		d.Information.focus();
		d.Information.select();
		return false;
	}
	if(d.Information.value.length<2){
		alert("Please Enter your Order Details..");
		d.Information.focus();
		d.Information.select();
		return false;
	}

	return true;
}

function OrderCheck() {
	d= document.ordfrm ;

	 if (d.Name.value.length<2){
	 	alert("Please Enter your Name ...");
		d.Name.focus();
		d.Name.select();
         	return false;
	 }

	 if (d.CompanyName.value.length<2){
	 	alert("Please enter the Company Name ...");
		d.CompanyName.focus();
		d.CompanyName.select();
         	return false;
	 }

	if (d.Email.value.length<4){
	   alert("Please enter your mail-ID");
  	   d.Email.focus();
	   d.Email.select();
	   return false;
        }

    	if(d.Email.value.indexOf('@')<1){
			alert("Please note the e-mail id must have @")
			d.Email.focus();
			d.Email.select();
			return false;
		}
		if(d.Email.value.indexOf('.')<4){
			alert("Please enter your correct e-mail")
			d.Email.focus();
			d.Email.select();
			return false;
		}
		var emaillen = d.Email.value.length;
		if(d.Email.value.lastIndexOf('.')>(emaillen-3)){
			alert("Please specify whether you belong .com or .net or .org etc...");
			d.Email.focus();
			d.Email.select();
			return false;
		}
		var atpos = d.Email.value.indexOf('@');
		var dotpos = d.Email.value.indexOf('.');
		if((dotpos-atpos)<4){
			alert("Please mention ...@ where you are?");
			d.Email.focus();
			d.Email.select();
			return false;
		}
	
	if(d.Address.value.charAt(0) == " " ){
		alert("Please Enter your Address ..");
		d.Address.focus();
		d.Address.select();
		return false;
	}
	if(d.Address.value.length<2){
		alert("Please Enter your Address ..");
		d.Address.focus();
		d.Address.select();
		return false;
	}
	
	if (d.ProductTyp.value == "Products" ) {
		if ( d.Product.value == "Select" ){
			alert("Please select the Product...");
			d.Product.focus();
			return false;
		}
	}
	if (d.ProductTyp.value == "Other") {
		if(d.OtherProduct.value.length<2){
			alert("Please enter the Other Product..");
			d.OtherProduct.focus();
			d.OtherProduct.select();
			return false;
		}
	}

	if(d.OrderDetails.value.charAt(0) == " "){
		alert("Please Enter your Order Details..");
		d.OrderDetails.focus();
		d.OrderDetails.select();
		return false;
	}
	if(d.OrderDetails.value.length<2){
		alert("Please Enter your Order Details..");
		d.OrderDetails.focus();
		d.OrderDetails.select();
		return false;
	}

	return true;
}
function ContactCheck() {
		 d=document.cntus;

	 if (d.Name.value.length<2){
	 	alert("Please Enter your Name ...");
		d.Name.focus();
		d.Name.select();
         	return false;
	 }

		
	if (d.Email.value.length<4){
	   alert("Please enter your mail-ID");
  	   d.Email.focus();
	   d.Email.select();
	   return false;
        }

    	if(d.Email.value.indexOf('@')<1){
			alert("Please note the e-mail id must have @")
			d.Email.focus();
			d.Email.select();
			return false;
		}
		if(d.Email.value.indexOf('.')<4){
			alert("Please enter your correct e-mail")
			d.Email.focus();
			d.Email.select();
			return false;
		}
		var emaillen = d.Email.value.length;
		if(d.Email.value.lastIndexOf('.')>(emaillen-3)){
			alert("Please specify whether you belong .com or .net or .org etc...");
			d.Email.focus();
			d.Email.select();
			return false;
		}
		var atpos = d.Email.value.indexOf('@');
		var dotpos = d.Email.value.indexOf('.');
		if((dotpos-atpos)<4){
			alert("Please mention ...@ where you are?");
			d.Email.focus();
			d.Email.select();
			return false;
		}

	 if (d.CompanyName.value.length<2){
	 	alert("Please enter the Company Name ...");
		d.CompanyName.focus();
		d.CompanyName.select();
         	return false;
	 }

	 if (d.Phone.value.length<6){
	 	alert("Please enter your Phone No ...");
		d.Phone.focus();
		d.Phone.select();
         	return false;
	 }

	 if (isNaN(d.Phone.value) == true ){
	 	alert("Please enter your Phone No ...");
		d.Phone.focus();
		d.Phone.select();
         	return false;
	 }

	if(d.Feedback.value.length<2){
		alert("Please Enter your Valuable comments..");
		d.Feedback.focus();
		d.Feedback.select();
		return false;
	}

		alert("Thank you "+d.Name.value +", we will contact you soon");
		return true;		
}