<HTML>
<HEAD>
<script>
function zaba(){
var number1st;
var number1st = prompt("Please enter drill size or number","") ;
number1st = parseFloat(number1st);
switch (number1st) {
// it work properly
case (80):
alert (" answer is 0.0135" );
break;
// it work properly
case (0.5):
alert (" answer is 0.5 " );
break;
// why do not work properly
case (1/2):
alert (" answer is 0.5 " );
break;
// why do not work properly
case (A):
alert (" answer is 0.350 " );
break;
// why do not work properly
case (b):
alert (" answer is 0.450" );
break;
if (number1st != null && number1st != "")
{
return number1st;
}
}
}
</script>
</HEAD>
<BODY>
<input type="radio" name="radio1" value="two" onclick="zaba()">one
<input type="radio" name="radio1" value="three" onclick="zaba()">two
<input type="hidden" name="hidden1" value="name">
</BODY>
</HTML>