function checkcontactform()
{
   email_ok=true;
   if (document.formmail.email.value == "") 
	{
		email_ok=false;
	}
	else
	{
		var atpos=document.formmail.email.value.indexOf("@");
		var dotpos=document.formmail.email.value.lastIndexOf(".");
		if (atpos<1 || dotpos-atpos<2) email_ok=false;
	}

   comments_ok=true;
   if (document.formmail.body.value == "") comments_ok=false;
   if (document.formmail.body.value.match("<a href") == "<a href") comments_ok=false; 

   form_ok=(email_ok && comments_ok);

   if (!form_ok) 
   {
		alert("Message not allowed");
   }

   return form_ok;
}