<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><title>Ingen titel</title>
<script type="text/javascript">
window.onload=function(){
fms=document.getElementsByTagName("form");
for(i=0;i<fms.length;i++){
fms[i].onsubmit=function(){return chkform(this,0);};
inps=fms[i].getElementsByTagName("input");
for(i2=0;i2<inps.length;i2++){
if(inps[i2].type=="submit")inps[i2].disabled=true;
else if(inps[i2].type=="text"){
inps[i2].onchange=function(){chkform(this.form,1);};
// inps[i2].onkeyup=function(){chkform(this.form,1);}; // Deaktiveret ...
}
}
}
}
function chkform(tn,typ){
chkval=true;
inps=tn.getElementsByTagName("input");
for(i=0;i<inps.length;i++){
if(inps[i].type=="submit")tn=inps[i];
if(inps[i].value=="")chkval=false;
}
if(typ==0)return chkval
else tn.disabled=!chkval;
}
</script>
</head><body>
<form name="yestest" method="get" action="#1111">
<input type="text" name="navn">
<input type="text" name="adresse">
<input type="submit" value="Afsend">
</form>
<br><br><br><br><br>
<form name="aaaaa" method="post" action="#2222">
<input type="text" name="navn4236gf">
<input type="text" name="adresseg453">
<input type="submit" value="Afsend">
</form>
<br><br><br><br><br>
<form name="ddddd532" method="get" action="#123456">
<input type="text" name="navn23">
<input type="text" name="adresserg6">
<input type="submit" value="Afsend">
</form>
</body></html>