<html>
<script language="javascript">
function Maximum()
{ var x=0;
var feld=new Array(6);
var max=parseFloat(document.forms[0].elements[0].value);
while (x<6)
{ feld[x]=parseFloat(document.forms[0].elements[x].value);
if(max< document.forms[0].elements[x].value)
{max= parseFloat(document.forms[0].elements[x].value);
}
x++;
}
alert(max);
}
</script>
<body>
<form> <input type=text> <br>
<input type=text><br>
<input type=text><br>
<input type=text><br>
<input type=text><br>
<input type=text><br>
<input type="button" value="Maximum" onClick="Maximum()">
</form>
</body>
</html>