..habs geändert, ist das so i.O.?
...die nächste! Es funktioniert leider nicht.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript">
<title>Fehlerbericht</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<script type='text/javascript'>
function readonly(chk) {
var felder = new Array('BESCHREIBUNG', 'MASSNAHME', 'VERMEIDUNG', 'ANMERKUNG');
var i;
for (i=0; i<felder.length; i++)
if(document.getElementById){
if(chk){
document.getElementById(felder[i]).style.backgroundColor = "#ffffff";
document.getElementById(felder[i]).disabled = true;
}
else {
document.getElementById(felder[i]).style.backgroundColor = "#D3D3D3";
document.getElementById(felder[i]).disabled = false;
}
}
}
</script>
<body>
<form action="">
<input type="checkbox" id='klick' name="readonly" onclick="readonly(this.checked)" /> <br /><br />
<textarea id='BESCHREIBUNG' disabled='disabled'>BESCHREIBUNG</textarea><br>
<textarea id='MASSNAHME' disabled='disabled'>MASSNAHME</textarea><br>
<textarea id='VERMEIDUNG' disabled='disabled'>VERMEIDUNG</textarea><br>
<textarea id='ANMERKUNG' disabled='disabled'>ANMERKUNG</textarea><br>
</form>
</body>
</html>