function emailCheck(s)
{
	if(!(s.match(/^[\w]+([_|\.-][\w]{1,})*@[\w]{2,}([_|\.-][\w]{1,})*\.([a-z]{2,4})$/i) ))
    {
		//alert("Please Enter Valid Email Address");
		$.modaldialog.error('Please Enter Valid Email Address');
		return false;
	}
	else
	{
		return true;
	}	
}

function contact(th)
{
	if(th.uname.value =="" || th.uname.value =="Your Name")
	{
		$.modaldialog.error('Please Enter Your Name<br>&nbsp;');
		//alert ("Enter Your name");
		th.uname.focus();
		return false;
	}
	if(!emailCheck(th.email.value))
	{
		th.email.select();
		return false;
	}
	if(th.comment.value =="" || th.comment.value =="Questions/Comments")
	{
		//alert ("Enter Your Questions/Comments");
		$.modaldialog.error('Please Enter Your Message<br>&nbsp;');
		th.comment.focus();
		return false;
	}
	ajaxCtntMe1('contact_mail.php',th.uname.value,th.email.value,th.comment.value);
}

