in reply to cgi and javascript

As far as I understand it, you can call javascript from cgi by having it issue the appropriate html to call the java script, e.g.:
print '<input type="text" name="whizzbangGadgets" size="5" maxlength=" +4" onblur="checkValue(this, 150);MyJavaGadgets()>';

-S