// JavaScript Document
	function check()
			{
			var frm=document.formx;
			var emailFormat = /^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-zA-Z]{2,6}(\.[a-zA-Z]{2})?$/i;
			var email= document.formx.email.value;
			
			if(frm.name.value=="")
			{
			alert('Enter Name');
		   frm.name.focus();
			 return false;
			}
				if (email == "")
				{	
					alert("Please Enter Email Id.");
					document.formx.email.focus();
					return false;
				}
						if (email != "")
						{
								if (email.search(emailFormat) == -1)
								{
									alert("Please Valid Email Id.");
									document.formx.email.focus();
									return false;
								}
						}
			if(frm.message.value=="")
			{
			alert('Enter Message');
		   frm.message.focus();
			 return false;
			}			
						
						
			else{
			frm.submit();
			}

			}