// login
function sss()
{

	if (document.frm.name.value=="")
	{
		alert("please  specify  your name");
		document.frm.name.focus();
	}
	else if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.frm.email.value))
	{
		alert("Please Enter valid Email.");
		document.frm.email.focus();
		
	}
	else if (document.frm.phone.value=="")
	{
		alert("please  specify  your phone number");
		document.frm.phone.focus();
	}
	
	else if (document.frm.postcode.value=="")
	{
		alert("please  specify  your post code");
		document.frm.postcode.focus();
	}
	else if (document.frm.message.value=="")
	{
		alert("please  specify  your message");
		document.frm.message.focus();
	}
	
	else
	{	 	
		document.frm.method="post";
		document.frm.action="indexmail1.php";
		document.frm.submit();
	}
}

