function AbrirEX(url,nombre,ancho,alto,features,scrollbars,cerrar) 
{ 
	var left,top;
	left= screen.availWidth/2 -ancho/2;
	top= screen.availHeight/2 -alto/2;


	if (scrollbars == true || scrollbars==1)
	{
		scrollbars=1;
	}
	else
	{
		scrollbars=0;
	}
	
	var hWindow
	hWindow =window.open(url,nombre,features + ',width = ' + ancho +',height = ' + alto + ',left = ' + left + ',top =' + top + ',scrollbars =' + scrollbars);
	
	cerrar=cerrar||false; 
	if(cerrar)
	{
		papa = window.self;
		papa.opener = window.self;
		papa.close();
	}
	
}

function Abrir(theURL,winName,features) { //v2.0
  	var hWindow
	hWindow =window.open(theURL,winName,features);
}

function AbrirFullscreen(url,nombre,scrollbars,cerrar) 
{ 

	if (scrollbars == true || scrollbars==1)
	{
		scrollbars='scrolling=yes ';
	}
	else
	{
		scrollbars='scrolling=no ';
	}
	
	tsz=10
	brd=10
	fSO=scrollbars
	tW=nombre
	
	var cFRM='<HTML><HEAD><TITLE>'+tW+'</TITLE>\n'+
	'</HEAD>\n'+
	'<frameset border=0 framespacing=0 frameborder=0 rows="'+tsz+',100%,'+brd+'">\n'+
	'	<frame name=fT src="about:blank" scrolling=no noresize>\n'+
	'	<frameset border=0 framespacing=0 frameborder=0 cols="'+brd+',1,100%,1,'+brd+'">\n'+
	'		<frame name=n0 src="about:blank" scrolling=no noresize>\n'+
	'		<frame name=bL src="about:blank" scrolling=no noresize>\n'+
	'			<frameset border=0 framespacing=0 frameborder=0 rows="1,100%,1">\n'+
	'				<frame name=bT src="about:blank" scrolling=no noresize>\n'+
	'				<frame name=main src="'+url+'" '+fSO+'>\n'+
	'				<frame name=bB src="about:blank" scrolling=no noresize>\n'+
	'			</frameset>\n'+
	'		<frame name=bR src="about:blank" scrolling=no noresize>\n'+
	'		<frame name=n1 src="about:blank" scrolling=no noresize>\n'+
	'	</frameset>\n'+
	'	<frameset border=0 framespacing=0 frameborder=0 cols="'+brd+',100%,'+brd+'">\n'+
	'		<frame name=n3 src="about:blank" scrolling=no noresize>\n'+
	'		<frame name=n2 src="about:blank" scrolling=no noresize>\n'+
	'		<frame name=n4 src="about:blank" scrolling=no noresize>\n'+
	'	</frameset>\n'+
	'</frameset>\n'+
	'</HTML>'
	
	var hWindow
	hWindow = window.open("",nombre,"fullscreen=1");
	hWindow.document.write(cFRM)
	hWindow.document.close()
		
	cerrar=cerrar||false; 
	if(cerrar)
	{
		papa = window.self;
		papa.opener = window.self;
		papa.close();
	}
	
}