Hi Angel,
try adding { after the test and } at the end.
On Wed, Dec 10, 2008 at 9:17 PM, Angel Herráez <[EMAIL PROTECTED]> 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();
> }
> }
>
}
> }
>
>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers