// Ficha 1.0 - JS Object Development by Carlos C. in marchFIRST, 2001
// Parametros: 
//       pagina: nombre de la página a abrir
//       ancho: width que va a tener la ventana flotante
//       alto: height que va a tener la ventana flotante
function ficha( pagina, nombre, id, ancho, alto){
	x = ( screen.height - alto ) / 2
	y = ( screen.width - ancho ) / 2
	
	var paginaDestino = ""
	if ( id == "" ) {
		paginaDestino = pagina + "?pagina=69&idPortal=1"
	}else {
		paginaDestino = pagina + "?pagina=50145&idPortal=" + id
	}
	eval( "window.open( '" + paginaDestino + "', '" + nombre + "', 'toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=" + ancho + ",height=" + alto + ",top=" + x + ",left=" + y + "' )" )
	//window.open(paginaDestino,nombre,'toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width="+ancho+",height="+alto+",top="+x+",left="+y+"');
}

function abrirLink(destino,nombre) {
	l = (window.screen.width / 2) - 200
	t = (window.screen.height / 2) - 175
	window.open(destino,nombre,"width=700,height=500,screenX=4000,screenY=600,toolbar=no,scrollbars=yes,resizable=yes,screenX='+l+',screenY='+t+',top="+ t + ",left=" + l);
}
function abrirPopUp(numPagina) {
	var l = (window.screen.width / 2) - 350
	var t = (window.screen.height / 2) - 250
	window.open("/CajaMadrid/Portal_Corporativo/templates/PopUp?pagina=" + numPagina,"","width=700,height=500,screenX=" + l +",screenY="+ t +",toolbar=no,scrollbars=yes,resizable=yes,top="+ t +",left="+ l);
}