<html>
<head></head>
   <SCRIPT language="JavaScript">
function test () {
var val1=document.kirim.T1.value
if(val1>=0&&40)
   document.kirim.T2.value="E"
if(val1>40&&55)
   document.kirim.T2.value="D"
if(val1>55&&60)
   document.kirim.T2.value="C"
if(val1>60&&65)
   document.kirim.T2.value="BC"
if(val1>65&&70)
   document.kirim.T2.value="B"
if(val1>70&&80)
   document.kirim.T2.value="AB"
if(val1>80&&100)
   document.kirim.T2.value="A"
}
   </SCRIPT>
<body>
<form method="POST" name="kirim">
<p>NILAI ANGKA <input type="text" name="T1" size="20">
NILAI HURUF <input type="text" name="T2" size="20">
</p>
<p><input type="button" value="TEBAK" name="B1" onclick=test()>
</p>
</form>
</body>
</html>