reMail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/

function Checkform(thisform) {

strError = 'Der opstod følgende fejl:\n\n';
intError = 0;

if (thisform.DFromName.value == "")
{
strError = strError + 'Oplys venligst navn ...\n'
intError = 1;
thisform.DFromName.focus(); 
}

if (!reMail.test(thisform.DFromMail.value))
{
strError = strError + 'Oplys venligst gyldig E-mail adresse ...\n'
intError = 1;
thisform.DFromMail.focus();
}

if (thisform.Besked.value == "")
{
strError = strError + 'Skriv venligst en besked ...\n'
intError = 1;
thisform.Besked.focus(); 
}

if (intError == 1) {
alert(strError)
return false;
}

}