simple function syntax question

function docheck(){
  if(document.Form1.1.checked == true) { document.Form1.suitesapts.checked = false;}
  return true;

give me an error on the line just before the if statement

) Expected

this doesnt make any sense. here's all the javascript in the block, they are all working fine.

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  if (restore) selObj.selectedIndex=0;

function MM_openBrWindow(theURL,winName,features) { //v2.0,winName,features);
  function change(){
     var formObj = document.form1;
     var value1 = formObj.area.options[formObj.area.options.selectedIndex].value;
     var baseURL2 = "/filter.aspx?area=";
     var currenturl = document.write(window.location.href);
     var baseURL = currenturl + baseURL2 + value1;
     top.location.href = baseURL;
     return true;
     function docheck(){
  if(document.Form1.1.checked == true) { document.Form1.suitesapts.checked = false;}
  return true;

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dsackerContract ERP Admin/ConsultantCommented:
From the code above, have you capitalized "Form1" when it should be "form1"?

Also, what is your ".1."? Did you "name" a select-option as "1"?
Your form field name is 1? If yes change




A better approach would be to name fields as alphanumaric i.e. "Something1"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.