求助:一个关于onclick事件的问题
在机子上执行没有反应:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="vbscript" >
sub caculate
dim x,y,z,a
x=cdbl(form1.value1.value)
y=cdbl(form1.value2.value)
a=form1.operator.value
select case a
case "*"
z=x*y
case "+"
z=x+y
case "-"
z=x+y
case "/"
z=x/y
end select
z=form1.value3.value
end sub
</script>
</head>
<body>
<center>
<form name="form1" action="" method="post">
<table border="1" bgcolor="#993366"><tr>
<td><input name="value1" type="text" size="5"></td>
<td><select name="operator" size="1">
<option value="*">*</option>
<option value="+">+</option>
<option value="-">-</option>
<option value="/">/</option>
</select>
</td>
<td><input name="value2" type="text" size="5"></td>
<td><input name="upto" type="button" value="=" size="20" onClick="caculate"></td>
<td><input name="value3" type="text" size="5" ></td>
</tr>
</table>
</form>
</center>
</body>
</html>