var IE = true; var sVisible = 'visible'; var sHidden = 'hidden'; var sAll = 'window.document.all'; var sStyle = '.style'; function Compatibility(){ if(window.navigator.appName.indexOf('Microsoft')==-1){ IE = false; sVisible = 'show'; sHidden = 'hide'; sAll = 'window.document.layers'; sStyle = ''; } } function Get(sObj){ if(IE) return window.document.all[sObj]; else return window.document.layers[sObj]; } function Visibility(oObj, sIn){ eval('oObj' + sStyle + '.visibility = sIn' ); } function Position(oObj, sPos, iPos){ eval('oObj' + sStyle + '.' + sPos + ' = ' + iPos ); } //###################################### function GetObj(sObj, oWindow, oDoc){ var i; var oObj; if(!oDoc){ if(!oWindow) oDoc = window.document; else oDoc = oWindow.document; } if(document.getElementById){ oObj = oDoc.getElementById( sObj ); if(oObj) return oObj; } if( oDoc.all ){ oObj = oDoc.all[sObj]; if(oObj) return oObj; } for(i=0;!oObj && i