<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>
<title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script>
function validate(elem) {
if (elem.i_morgen.value=="") {
alert("I morgen skal udfyldes");
elem.i_morgen.focus();
return false;
}
if (!elem.altid.checked) {
if (elem.start.value=="") {
alert("Start skal udfyldes");
elem.start.focus();
return false;
}
if (elem.slut.value=="") {
alert("Start skal udfyldes");
elem.slut.focus();
return false;
}
}
return true;
}
</script>
</head>
<body>
<form onsubmit="return validate(this);">
<label>Start</label>
<input type="text" name="start" /><br />
<label>Slut</label>
<input type="text" name="slut" /><br />
<label>I morgen</label>
<input type="text" name="i_morgen" /><br />
<label>Altid</label>
<input type="checkbox" name="altid" /><br />
<input type="submit" value="Send" />
</form>
</body>
</html>