// Validating the Contact Us Form
function ContactCheck() {
	d = document.cntctus;

	if (d.FullName.value.length<2) {
	   alert("Please enter the Full Name...");
	   d.FullName.select();
	   d.FullName.focus();
           return false;
	}

	if (d.FullName.value.charAt(0) == " " ) {
	   alert("Please enter the Full Name...");
	   d.FullName.select();
	   d.FullName.focus();
           return false;
	}

	if( (d.Phone.value.length<6) || (isNaN(d.Phone.value) == true )) {
		alert("Please enter the Phone No... ");
  		d.Phone.focus();
		d.Phone.select();
		return false;
        } 

	if (d.Phone.value.charAt(0) == " "){
		alert("Please enter the Phone No...");
  		d.Phone.focus();
		d.Phone.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;
	}
	

	if (d.Comments.value.length < 5) {
		alert("Please enter the Your Message... ");
  		d.Comments.focus();
		d.Comments.select();
		return false;
        } 

	if (d.Comments.value.charAt(0) == " "){
		alert("Please enter the Your Message... ");
  		d.Comments.focus();
		d.Comments.select();
		return false;
         }

	return true;
}
