<script>
function CheckOT() {
if (document.myform.hrs.value > 40) {
document.write("with "+document.myform.hrs.value+" hours, you get overtime pay.");
} else {
document.write("with "+document.myform.hrs.value+" hours, you DO NOT get overtime
pay.");
}
}
</SCRIPT>
<form name="myform">
<input name="hrs" size="4">
<input type="submit" value="Check For Over Time" onclick="CheckOT();">
</form>