Forum Moderators: open
<head>
<script>
function check(box)
{
var val = box.value/1
// limit to 2 dec places (rounding up, if needed)
box.value = Math.round(val*100)/100
// check <7 after dec point
if(!(val<1000000))
alert("More than 6 figures after decimal point")}
</script>
</head>
<body>
<form>
<input type="text" onblur="check(this)" />
</form>
</body>