/* CHROMELESS WINDOWS v.30 Generate a chromeless window on IE4,IE5.x,IE6 on WIN32 and a regular one on the others browsers. (c) Gabriel Suchowolski power[z]one / www.microbians.com / powerz@microbians.com Distributed under the terms of the GNU Library General Public License (www.gnu.org) */ function openchromeless(theURL, wname, W, H, NONEgrf, CLOSEdwn, CLOSEup, CLOSEovr, MINIdwn, MINIup, MINIovr, CLOCKgrf, titHTML, titWIN, winBORDERCOLOR, winBORDERCOLORsel, winBGCOLOR, winBGCOLORsel) { if ( navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4 ) { isie=true if ( navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE ")+5,navigator.appVersion.indexOf("MSIE ")+8) >= 5.5 ) isv55=true else isv55=false } else isie=false if ( navigator.userAgent.toLowerCase().indexOf("win")!=-1 ) iswin=true else iswin=false var windowW = W; var windowH = H; var windowX = Math.ceil( (window.screen.width - windowW) / 2 ); var windowY = Math.ceil( (window.screen.height - windowH) / 2 ); if (isie) { H=H+44+3; W=W+2; } s = ",width="+ W +",height="+ H ; if (isie && iswin) { var chromeTIThtml = '\n' + ' '+ '\n'+ ' '+ '\n'+ ' CHROMELESS WINDOWS / TITLEBAR '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ '
'+ '\n'+ '
'+ '
'+titHTML+'
' +'
'+ '\n'+ '
'+ '\n'+ '
'+ '\n'+ '
'+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n' var chromeFRMhtml = '' + ' '+ '\n'+ ' '+ '\n'+ ''+ titWIN +' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' ' splashWin = window.open( "" , wname, "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+s); if (!(navigator.userAgent.toLowerCase().indexOf("mozilla/5")!=-1)) { splashWin.resizeTo( Math.ceil( W ) , Math.ceil( H ) ); } splashWin.moveTo ( Math.ceil( windowX ) , Math.ceil( windowY ) ); splashWin.document.open(); splashWin.document.write( chromeFRMhtml ); splashWin.document.close(); } else { splashWin = window.open(theURL, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+s, true); } splashWin.focus(); return splashWin } function quitasaltolinea(txt) { var salida = txt.toString() var re = /\\/g; var salida = salida.replace(re, "\\\\"); var re = /\//g; var salida = salida.replace(re, "\\\/"); var re = /\"/g; var salida = salida.replace(re, "\\\""); var re = /\'/g; var salida = salida.replace(re, "\\\'"); var re = /\n/g; var salida = salida.replace(re, "\\n"); var re = / /g; var salida = salida.replace(re, ""); var re = /\t/g; var salida = salida.replace(re, ""); var re = /\r/g; var salida = salida.replace(re, ""); return salida } function openIT(theURL,wname,titulo, W, H) { CLOSEdwn = "/euro6000/webred6000.nsf/close_dwn.gif" CLOSEup = "/euro6000/webred6000.nsf/close_up.gif" CLOSEovr = "/euro6000/webred6000.nsf/close_ovr.gif" MINIdwn = "/euro6000/webred6000.nsf/mini_dwn.gif" MINIup = "/euro6000/webred6000.nsf/mini_up.gif" MINIovr = "/euro6000/webred6000.nsf/mini_ovr.gif" NONEgrf = "/euro6000/webred6000.nsf/pixel.gif" CLOCKgrf = "/euro6000/webred6000.nsf/clock.gif" titHTML = "  "+titulo+"" titWIN = " "+titulo winBORDERCOLOR = "#000000" winBORDERCOLORsel = "#000000" winBGCOLOR = "#3790CC" winBGCOLORsel = "#F3BA22" mywin = openchromeless(theURL, wname, W, H, NONEgrf, CLOSEdwn, CLOSEup, CLOSEovr, MINIdwn, MINIup, MINIovr, CLOCKgrf, titHTML, titWIN, winBORDERCOLOR, winBORDERCOLORsel, winBGCOLOR, winBGCOLORsel) } function openNew(theURL,wname,titulo, W, H , T, L) { listaOpenNew="top=" + T + ", left=" + L + ", height="+ H + ",width=" + W + ","+"scrollbars=0, status=0, location=no, menubar=no"; manolita=window.open ( theURL, wname, listaOpenNew); manolita.focus(); } function openNewCompl(theURL,wname,titulo, W, H , T, L) { listaOpenNew="top=" + T + ", left=" + L + ", height="+ H + ",width=" + W + ","+"scrollbars=yes, status=yes, location=yes, directories=yes, menubar=yes, resizable=yes, toolbar=yes"; manolita=window.open ( theURL, wname, listaOpenNew); manolita.focus(); }