reMail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/

function Checkform(thisform) {

strError = 'The Following Errors Occurred:\n\n';
intError = 0;

if (thisform.Navn.value == "")
{
strError = strError + 'Please enter your name ...\n'
intError = 1;
thisform.Navn.focus(); 
}

if (!reMail.test(thisform.Email.value))
{
strError = strError + 'Please enter a valid e-mail address ...\n'
intError = 1;
thisform.Email.focus();
}

if (thisform.Message.value == "")
{
strError = strError + 'Please enter your message ...\n'
intError = 1;
thisform.Message.focus(); 
}

if (intError == 1) {
alert(strError)
return false;
}

}
