reMail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/

function Checkform(thisform) {

strError = 'Der opstod følgende fejl:\n\n';
intError = 0;

if (thisform.Sportsgren.value == "Choose")
{
strError = strError + 'Husk at oplyse Sportsgren...\n'
intError = 1;
thisform.Sportsgren.focus(); 
}

if (thisform.Navn.value == "")
{
strError = strError + 'Husk at oplyse Navn...\n'
intError = 1;
thisform.Navn.focus(); 
}

if (thisform.Adresse.value == "")
{
strError = strError + 'Husk at oplyse Adresse...\n'
intError = 1;
thisform.Adresse.focus(); 
}

if (thisform.Postnr.value == "")
{
strError = strError + 'Husk at oplyse Postnummer...\n'
intError = 1;
thisform.Postnr.focus(); 
}

if (thisform.Bynavn.value == "")
{
strError = strError + 'Husk at oplyse Bynavn...\n'
intError = 1;
thisform.Bynavn.focus(); 
}

if (thisform.Telefon.value == "")
{
strError = strError + 'Husk at oplyse Telefonnummer...\n'
intError = 1;
thisform.Telefon.focus(); 
}

if (!reMail.test(thisform.Mail.value))
{
strError = strError + 'Husk at oplyse gyldig E-mail adresse ...\n'
intError = 1;
thisform.Mail.focus();
}

if (thisform.Foedselsdato.value == "")
{
strError = strError + 'Husk at oplyse Fødselsdato...\n'
intError = 1;
thisform.Foedselsdato.focus();
}

if (intError == 1) {
alert(strError)
return false;
}

}