Hi Angel,

try adding { after the test and } at the end.


On Wed, Dec 10, 2008 at 9:17 PM, Angel HerrŠez <angel.herraez@uah.es> wrote:

 if(window.onload && !_jmol.previousOnloadHandler)
{
    _jmol.previousOnloadHandler = window.onload;
  window.onload =
  function() {
    with (_jmol) {
      if (buttonCount+checkboxCount+menuCount+radioCount+radioGroupCount > 0) {
        var forms = document.forms;
        for (var i = forms.length; --i >= 0; )
          forms[i].reset();
      }
      if (previousOnloadHandler)
        previousOnloadHandler();
    }
  }
}
}