
function abre(pagina,winName,features) { 
  window.open(pagina,winName,features);
}


function openWinMax(url, winN) {
  var screenX = screen.width-10;
  var screenY = screen.height-57;
  var leftWin = 0;
  var topWin = 0;
  eval("window.open(url,'"+winN+"','width="+screenX+",height="+screenY+", top="+topWin+", left="+leftWin+"')");
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}


function openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowTIT, windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel) {

	var windowW = W;
	var windowH = H;
	var windowX = Math.ceil( (window.screen.width  - windowW) / 2 + 5);
	var windowY = Math.ceil( ((window.screen.height) / 2)- 10);
	
	if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4) isie=true
	else											     isie=false

	if (isie) { H=H+20+2; W=W-8; }

	s = ",width="+W+",height="+H;

	if (isie) {
		var parameters =escape(
windowCERRARa+"|"+windowCERRARd+"|"+windowCERRARo+"|"+windowTIT+"|"+windowBORDERCOLOR+"|"+windowBORDERCOLORsel+"|"+windowTITBGCOLOR+"|"+windowTITBGCOLORsel)
		
		splashWin = window.open( "" , wname, "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+s)

		splashWin.resizeTo( Math.ceil( W )       , Math.ceil( H ) )
		splashWin.moveTo  ( Math.ceil( windowX ) , Math.ceil( windowY ) )

		splashWin.document.open("text/html", "replace");
		splashWin.document.write("<html><style type='text/css'>\n");
		splashWin.document.write("body                  { overflow: hidden; margin: 0pt;}");
		splashWin.document.write("#stillloadingDiv 	{ position: absolute; left: 0px; top: 0px; width: 100%px; height: 25px; z-index: 1; background-color: #003080; layer-background-color: #003080; clip:rect(0,100%,25,0);}");
		splashWin.document.write("</style>\n");
		splashWin.document.write("<body onload=\"top.document.location.replace('"+theURL+"? "+parameters+"')\" TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scroll='no'>");
		splashWin.document.write("<div id=stillloadingDiv><table width=100% height=22 cellspacing=0 cellpadding=0><tr><td align=left valign=middle width=100%><FONT size=1 face=verdana color=#ebebeb>&nbsp;&nbsp;l o a d i n g &nbsp;&nbsp;&nbsp;&nbsp;c a m p a i g n s . . . </font></td></tr></table></div>");
		splashWin.document.write("</body></html>");
		splashWin.document.close();

	}
	else    var splashWin = window.open(theURL, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s, true)

	splashWin.focus();
}