function validate_form ( )
{
	var emailID=window.document.forms[0].email
    valid = true;
    if ( window.document.forms[0].name.value == "enter your name here")    {
        alert ("Please fill in the your 'name'" );
		window.document.forms[0].name.focus();
        valid = false;
		}
	else if ( (!echeck(window.document.forms[0].email.value)) ||  (window.document.forms[0].email.value==null) || (window.document.forms[0].email.value=="enter your email address here") ){
		window.document.forms[0].email.focus();
		valid = false;
		}
		else if (window.document.forms[0].comments.value == "enter your message here")    {
        alert ("Please enter your message" );
		window.document.forms[0].comments.focus();
        valid = false;
		}

return valid;
}
function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail Address")
		   return false
		}
		else if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail Address");
		   window.document.forms[0].txtemail.focus();
		   return false
		}
		else if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail Address");
			window.document.forms[0].txtemail.focus();
		    return false
		}

		else if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail Address");
			window.document.forms[0].txtemail.focus();
		    return false
		 }

		else if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail Address");
			window.document.forms[0].txtemail.focus();
		    return false
		 }

		 else if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail Address");
			window.document.forms[0].txtemail.focus();
		    return false
		 }
		
		 else if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail Address");
			window.document.forms[0].txtemail.focus();
		    return false
		 }

 		 return true					
	}
	<!--//--><![CDATA[//><!--
function clickclear(thisfield, defaulttext) {
if (thisfield.value == defaulttext) {
thisfield.value = "";
}
}
function clickrecall(thisfield, defaulttext) {
if (thisfield.value == "") {
thisfield.value = defaulttext;
}
}
//--><!]]>	