Se sono in jscript avrai problemi sicuro con browser diversi da IE.
Cerca di lavorare in javascript (standard).