function validateForm()
{
var x=document.forms["contactform"]["yourname"].value;
var y=document.forms["contactform"]["email"].value;
var z="";
var atpos=y.indexOf("@");
var dotpos=y.lastIndexOf(".");
if (x==null || x=="")
  { z="Your name must be filled out.\n"; }
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=y.length)
  {  z+="Not a valid e-mail address.";  }
if (z==null || z=="")
{return true;
} else {alert(z);
	return false;}
}

