Hov, sådan her var det...
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml"><head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="JavaScript" type="text/javascript">
function hideAll () {
document.frm1.felt1.disabled = true;
document.frm1.felt2.disabled = true;
document.frm1.felt1.style.background = '#cccccc';
document.frm1.felt2.style.background = '#cccccc';
}
function LayerControler (who) {
if (who == "private") {
document.frm1.felt1.disabled = true;
document.frm1.felt1.style.background = '#cccccc';
document.frm1.felt2.disabled = false;
document.frm1.felt2.style.background = '#ffffff';
}
if (who == "firm") {
document.frm1.felt1.disabled = false;
document.frm1.felt1.style.background = '#ffffff';
document.frm1.felt2.disabled = true;
document.frm1.felt2.style.background = '#cccccc';
}
}
</script>
</head>
<body onload="hideAll();">
<form name="frm1">
<select name="type" onchange="LayerControler(this.value);">
<option value="firm">Firma
<option value="private">Privat
</select>
<!--<input type="radio" name="type" value="firm" onclick="LayerControler(this.value);">
<input type="radio" name="type" value="private" onclick="LayerControler(this.value);">-->
<p>
<input type="text" name="firmanavn" id="felt1" value="Indtast firmanavn">
<input type="text" name="privatpersonsnavn" id="felt2" value="Indtast privatnavn">
</form>
</body>
</html>
//>Rune