<html>
<body onload="start()">
<script language="javascript" type="text/javascript">
function skift(obj, vis){
if (obj.checked){
go(vis);
}
else{
skjul(vis);
if(document.all)
eval("document.formen['"+vis+"'].value= '' ");
else
eval("document.formen."+vis+".value= '' ");
}
}
function skjul(obj) {
if(document.all)
eval("document.formen['"+obj+"'].style.background = '#DDDDDD'");
else
eval("document.formen."+obj+".background = '#DDDDDD'");
}
function go(obj) {
if(document.all)
eval("document.formen['"+obj+"'].style.background = '#FFFFFF'");
else
eval("document.formen."+obj+".background = '#FFFFFF'");
}
function start(){
skjul('kasse1');
skjul('kasse2');
}
function slor(obj, box){
if (box.checked){
}
else{
return obj.blur();
}
}
</script>
<form name="formen">
<input type="checkbox" name="boxen1" onclick="skift(this, 'kasse1')"> <input type="text" name="kasse1" onfocus="slor(this, document.formen.boxen1)"><br>
<input type="checkbox" name="boxen2" onclick="skift(this, 'kasse2')"> <input type="text" name="kasse2" onfocus="slor(this, document.formen.boxen2)"><br>
</form>
</body>
</html>
www.fotx.net/gryn