/*
CHROMELESS WINDOWS v.30.6
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, X, Y, NONEgrf, CLOSEdwn, CLOSEup, CLOSEovr, MINIdwn, MINIup, MINIovr, CLOCKgrf, titHTML, titWIN, winBORDERCOLOR, winBORDERCOLORsel, winBGCOLOR, winBGCOLORsel) {
var isie = false
var isv55= false
var iswin= false
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;
}
if ( navigator.userAgent.toLowerCase().indexOf("win")!=-1 ) iswin=true
if (X==null) var X = Math.ceil( (window.screen.width - W) / 2 );
if (Y==null) var Y = Math.ceil( (window.screen.height - H) / 2 );
if (isie) { H=H+20+3; W=W+2; }
var s = ",width="+ W +",height="+ H ;
if (isie && iswin) {
var chromeTIThtml = '\n' +
' '+ '\n'+
'
'+ '\n'+
' '+ '\n'+
' '+ '\n'+
' '+ '\n'+
' '+ '\n'+
'
'+ '\n'+
' '+ '\n'+
' '+ '\n'+
' '+ '\n'+
' '+ '\n'+
' '+ '\n'+
' '+ '\n'+
' '+ '\n'
var chromeFRMhtml = '' +
' '+ '\n'+
' '+ '\n'+
''+ titWIN +' '+ '\n'+
' '+ '\n'+
' '+ '\n'+
' '+ '\n'+
' '
var CWIN = window.open( "" , wname, "fullscreen=1"+s);
CWIN.resizeTo( Math.ceil( W ) , Math.ceil( H ) );
CWIN.moveTo ( Math.ceil( X ) , Math.ceil( Y ) );
CWIN.document.open();
CWIN.document.write( chromeFRMhtml );
CWIN.document.close();
}
else {
var CWIN = window.open(theURL, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s, true);
CWIN.moveTo ( Math.ceil( X ) , Math.ceil( Y ) );
}
CWIN.focus();
return CWIN
}
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
}