// JavaScript Document
function test(obj,msg){
	var regex = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;
	if (regex.test(obj.value)){
		return true;
	}else{
		alert(msg);
		obj.focus();
		return false;
	}
}
function checkempty(obj,msg){
	if(obj.value==""){
		alert(msg);
		obj.focus();
		return false;
	}
}
/////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
function chkInq(){
	if (checkempty(document.frmSend.txtFirstname,"Information - Enter Your Name")==false) return false;
	if (checkempty(document.frmSend.cCompany,"Information - Enter Your Company Name")==false) return false;
	if (test(document.frmSend.ctxtEmail,"Information - Enter Your Email")==false) return false;
	if (checkempty(document.frmSend.txtMessage,"Information - Enter Your Message")==false) return false;
	return true;
}
