// JavaScript Document
//
//
function centra(ancho,alto){
ancho_pant=screen.width;
alto_pant= screen.height;
ancho_pop=ancho;
alto_pop=alto;
left_pop=(ancho_pant/2)-(ancho_pop/2);
top_pop=(alto_pant/2)-(alto_pop/2);
return;
}
//
function abrirventana(ruta,ancho,alto){
	if (ancho && alto){
		centra(ancho,alto);
	}else{
		centra(450,450);
	}
	
var win_opc = "toolbar=0, location=0, directories=0, status=0,";
		win_opc += "menubar=0, scrollbars=0, resizable=0, copyhistory=0,";
		win_opc += "width=" + ancho_pop + ",height=" + alto_pop+",";
		win_opc += "top=" + top_pop + ",left=" + left_pop;
window.open( ruta , "finestra", "width=" + ancho_pop + ",height=" + alto_pop+",top=" + top_pop + ",left=" + left_pop+",toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=1, copyhistory=0");
return
}
//
