function checkForm() {
	result = true;
	if (bestilling.fornavn.value == "" || bestilling.fornavn.value == null) {
		document.bestilling.fornavn.focus();
		var minBox = open("","Obs","width=250,height=250");
		minBox.document.open();
		minBox.document.write("<html><head><title>Error</title><link href='../javastyle.css' rel='stylesheet' type='text/css' /></head><body>");
		minBox.document.write("<h1>Ooops!</h1><p>You have to fill in your <strong>firstname</strong> before you can submit your order. Please try again!<p>");
		minBox.document.write("<p><a href='javascript;' onclick='window.close();'>Close window</a></p>");
		minBox.document.write("</body></html>");
		minBox.document.close();
		result = false;
	}
	else if (bestilling.etternavn.value == "" || bestilling.etternavn.value == null) {
		document.bestilling.etternavn.focus();
		var minBox = open("","Obs","width=250,height=250");
		minBox.document.open();
		minBox.document.write("<html><head><title>Error</title><link href='../javastyle.css' rel='stylesheet' type='text/css' /></head><body>");
		minBox.document.write("<h1>Ooops!</h1><p>You have to fill in your <strong>lastname</strong> before you can submit your order. Please try again!<p>");
		minBox.document.write("<p><a href='javascript;' onclick='window.close();'>Close window</a></p>");
		minBox.document.write("</body></html>");
		minBox.document.close();
		result = false;
	}
	else if (bestilling.adresse.value == "" || bestilling.adresse.value == null) {
		document.bestilling.adresse.focus();
		var minBox = open("","Obs","width=250,height=250");
		minBox.document.open();
		minBox.document.write("<html><head><title>Error</title><link href='../javastyle.css' rel='stylesheet' type='text/css' /></head><body>");
		minBox.document.write("<h1>Ooops!</h1><p>You have to fill in your <strong>street address</strong> before you can submit your order. Please try again!<p>");
		minBox.document.write("<p><a href='javascript;' onclick='window.close();'>Close window</a></p>");
		minBox.document.write("</body></html>");
		minBox.document.close();
		result = false;
	}	
	else if (bestilling.postnr.value == "" || bestilling.postnr.value == null) {
		document.bestilling.postnr.focus();
		var minBox = open("","Obs","width=250,height=250");
		minBox.document.open();
		minBox.document.write("<html><head><title>Error</title><link href='../javastyle.css' rel='stylesheet' type='text/css' /></head><body>");
		minBox.document.write("<h1>Ooops!</h1><p>You have to fill in your <strong>zip-code</strong> before you can submit your order. Please try again!<p>");
		minBox.document.write("<p><a href='javascript;' onclick='window.close();'>Close window</a></p>");
		minBox.document.write("</body></html>");
		minBox.document.close();
		result = false;
	}	
	else if (bestilling.poststed.value == "" || bestilling.poststed.value == null) {
		document.bestilling.poststed.focus();
		var minBox = open("","Obs","width=250,height=250");
		minBox.document.open();
		minBox.document.write("<html><head><title>Error</title><link href='../javastyle.css' rel='stylesheet' type='text/css' /></head><body>");
		minBox.document.write("<h1>Ooops!</h1><p>You have to fill in your <strong>city</strong> before you can submit your order. Please try again!<p>");
		minBox.document.write("<p><a href='javascript;' onclick='window.close();'>Close window</a></p>");
		minBox.document.write("</body></html>");
		minBox.document.close();
		result = false;
	}	
	else if (bestilling.epost.value == "" || bestilling.epost.value == null) {
		document.bestilling.epost.focus();
		var minBox = open("","Obs","width=250,height=250");
		minBox.document.open();
		minBox.document.write("<html><head><title>Error</title><link href='../javastyle.css' rel='stylesheet' type='text/css' /></head><body>");
		minBox.document.write("<h1>Ooops!</h1><p>You have to fill in your <strong>e-mail address</strong> before you can submit your order. Please try again!<p>");
		minBox.document.write("<p><a href='javascript;' onclick='window.close();'>Close window</a></p>");
		minBox.document.write("</body></html>");
		minBox.document.close();
		result = false;
	}	
	else if (bestilling.epost.value.indexOf('@') == -1) {
		document.bestilling.epost.focus();
		var minBox = open("","Obs","width=250,height=250");
		minBox.document.open();
		minBox.document.write("<html><head><title>Error</title><link href='../javastyle.css' rel='stylesheet' type='text/css' /></head><body>");
		minBox.document.write("<h1>Ooops!</h1><p>You have to fill in a <strong>valid e-mail address</strong> before you can submit your order. Please try again!<p>");
		minBox.document.write("<p><a href='javascript;' onclick='window.close();'>Close window</a></p>");
		minBox.document.write("</body></html>");
		minBox.document.close();
		result = false;
	}	
	else if (bestilling.land.value == "" || bestilling.land.value == null) {
		document.bestilling.land.focus();
		var minBox = open("","Obs","width=250,height=250");
		minBox.document.open();
		minBox.document.write("<html><head><title>Error</title><link href='../javastyle.css' rel='stylesheet' type='text/css' /></head><body>");
		minBox.document.write("<h1>Ooops!</h1><p>You have to chose <strong>a country</strong> before you can submit your order. Please try again!<p>");
		minBox.document.write("<p><a href='javascript;' onclick='window.close();'>Close window</a></p>");
		minBox.document.write("</body></html>");
		minBox.document.close();
		result = false;
	}	
	
	return result;
}
