don't feel dumb at all. this is a very common error. The reasoning is you have vbscript declared as the first language in the page probably. Thus the onClick is interputed as a vbscript event. IE does this. the first script tag it finds it reads the language and that language will be the first it defaults to for all event calls.
example would be to run this
<html>
<head>
<script language="javascript">
function myFun(a,b,c,d) {
alert(a + b + c + d);
}
</script>
<script language="vbscript">
Function myFun(a,b,c,d)
alert a & b & c & d
End Function
</script>
</head>
<body>
<form>
<input type="button" value="test" onClick="myFun(1,2,3,4)">
</form>
</body>
</html>
even knwoing that same call that errored for you is in there it will not give the error now when you click the button.
great thing to know when you get odd errors poping up with the two client languages in the same page.
_________________________________________________________
$str = "sleep is good for you. sleep gives you the energy you need to function";
$Nstr = ereg_replace("sleep","coffee",$str); echo $Nstr;
[/sub]