// JavaScript Document
function validateContactUsForm(){
var why = "";
var show = false;
	if(contactUsForm.Name.value.length<3){
		why+="Please enter a valid User Name minimum of 3\n"; 
		show = true;
		contactUsForm.Name.focus();
	}
	if(isEmail(contactUsForm.Email.value)==false){
		why+="Please enter valid Email \n";
		show = true;
		contactUsForm.Email.focus();
	}
	if(contactUsForm.Address.value == "" ){
		why+="Please enter address \n";
		show = true;
		contactUsForm.Address.focus();
	}
	
	if(contactUsForm.PhoneTxt.value == "" ){
		why+="Please enter phoneTxt \n";
		show = true;
		contactUsForm.PhoneTxt.focus();
	}
	if(contactUsForm.Subject.value == "" ){
		why+="Please enter subject \n";
		show = true;
		contactUsForm.Subject.focus();
	}
	if(contactUsForm.Message.value == "" ){
		why+="Please enter message \n";
		show = true;
		contactUsForm.Message.focus();
	}
	if(show){
		alert(why);
		return false;
	}
}
function isEmail( strValue) {
  var objRegExp  = /^[a-z]\w*([.\-]\w+)*@[a-z]\w*([.\-]\w+)*\.[a-z]{2,3}$/i;
  return objRegExp.test(strValue);
} 
