//  DrOBlock.com JavaScript Document

	function checkForm(formMail)
	{	
		if (formMail.xname.value=="" || formMail.xemail.value=="" || formMail.xsubject.value=="" || formMail.xmessage.value=="")
		{ alert('Please fill in all information.'); return false; }
		
		var x = formMail.xemail.value;
		var y = formMail.xname.value;
		var z = formMail.xsubject.value;
		var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		if (!filter.test(x)) { alert('Please enter a valid e-mail address, e.g. user@domain.com.'); return false; }
		if (filter.test(y)) { alert('Email address cannot be in name field.'); return false; }
		if (filter.test(z)) { alert('Email address cannot be in subject field.'); return false; }
		
		else { return true; }
	}

// End  DrOBlock.com JavaScript Document