function Checkout(thisform) {
	strError = 'Der opstod f\370lgende fejl:\n\n';
	intError = 0;
  	
	if (thisform.fornavn.value == "") {
		intError = 1;
		strError = strError + '- Fornavn skal udfyldes\n'
		thisform.fornavn.focus(); 
	}
	
	if (thisform.efternavn.value == "") {
		intError = 1;
		strError = strError + '- Efternavn skal udfyldes\n'
		thisform.efternavn.focus(); 
	}
	
	if (thisform.adresse.value == "") {
		intError = 1;
		strError = strError + '- Adresse skal udfyldes\n'
		thisform.adresse.focus(); 
	}
	
	if (thisform.postnr.value == "") {
		intError = 1;
		strError = strError + '- Postnr skal udfyldes\n'
		thisform.postnr.focus(); 
	}
	
	if (thisform.by.value == "") {
		intError = 1;
		strError = strError + '- By skal udfyldes\n'
		thisform.by.focus(); 
	}
	
	if (thisform.land.value == "") {
		intError = 1;
		strError = strError + '- Land skal V\346lges\n'
		thisform.land.focus(); 
	}
	
	if (thisform.email.value == "") {
		intError = 1;
		strError = strError + '- Email skal udfyldes\n'
		thisform.email.focus(); 
	}
	
	if (thisform.telefon.value == "" && thisform.mobil.value == "") {
		intError = 1;
		strError = strError + '- Telefon eller Mobil skal udfyldes\n'
		thisform.telefon.focus(); 
	}
	
	if (thisform.attfornavn.value != "" || thisform.attefternavn.value != "" || thisform.attadresse.value != "" || thisform.attpostnr.value != "" || thisform.attby.value != "") {
		if (thisform.attfornavn.value == "" || thisform.attefternavn.value == "" || thisform.attadresse.value == "" || thisform.attpostnr.value == "" || thisform.attby.value == "") {
			if (intError == 1) {
				strError = strError + '\n';
			}
			strError = strError + '- Ved anden modtager end betaler skal\n alle modtager-oplysninger udfyldes\n'
			intError = 1;
			thisform.attfornavn.focus(); 
		}
	}
	
	if (thisform.betingelser.checked == false) {
		intError = 1;
		strError = strError + '- Du skal godkende betingelserne\n'
		thisform.betingelser.focus(); 
	}
	
	if (intError == 1) {
		alert(strError)
		return false;
	} else {
		setTimeout('document.getElementById(\'checkbutton\').disabled = true;',10); 
		document.getElementById('checkbutton').value = ' arbejder! ';
	}
}
