function chkEmail(tmpStr)
{
	var email_pat = /^[a-z][a-z0-9_\.\-]*[a-z0-9]@[a-z0-9]+[a-z0-9\.\-_]*[a-z]+$/i;
	return(email_pat.test(tmpStr))
}
function register()
{
	var obj;
	obj= document.contact_form;
	if (obj.name.value=="")
	{
		alert("Please Give Your Name!");
		obj.name.focus();
		return false;
	}	
	if (chkEmail(obj.email.value)==false)
	{
		alert("Please Enter Valid Email Address!");
		obj.email.focus();
		return false;
	}	
	if(obj.subject.value=="")
	{
		alert("Please Give some message here!");
		obj.subject.focus();
		return false;
	}	
	obj.action="contactus.php?opt=add";
}
