Syntax error: function doaction(recType)

Syntax error: function doaction(recType)

I have a form that has three fields: one drop-down, one text entry, and one checkbox.  I have this code in the checkbox, on user input:

   
  1. if(input.Tickybox == null)
  2. {
  3.      enable DropdownField;
  4.      disable TextentryField;
  5.      TextentryField="";
  6. }
  7. else
  8. {
  9.      disable DropdownField;
  10.      enable TextentryField;
  11.      DropdownField="-Select-";
  12. }
When I go to the form, I can check the box once and have it work as it should, but subsequent checkings don't work.

In Firefox's error console, this comes up:

Error: syntax error
Source File: http://creator.zoho.com/generateJS.do
Line: 1, Column: 1
Source Code:
function doaction(recType)



What's going on here?

-x