reMail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/

function Checkform(thisform) {

strError = 'Der opstod følgende fejl:\n\n';
intError = 0;

if (thisform.Fornavn.value == "")
{
strError = strError + 'Oplys venligst fornavn ...\n'
intError = 1;
thisform.Fornavn.focus(); 
}

if (thisform.Efternavn.value == "")
{
strError = strError + 'Oplys venligst efternavn ...\n'
intError = 1;
thisform.Efternavn.focus(); 
}

if (!reMail.test(thisform.Email.value))
{
strError = strError + 'Oplys venligst gyldig E-mail adresse ...\n'
intError = 1;
thisform.Email.focus();
}

if (thisform.Code.value != thisform.Num.value)
{
strError = strError + 'Skriv venligst den rigtige kode ...\n'
intError = 1;
thisform.Code.focus(); 
}

if (intError == 1) {
alert(strError)
return false;
}

}
