
// =========== Funciones comunes a todas las páginas

function AbreVentana(mypage, myname, w, h, VerMenuBar, VerToolBar, Resizable, ScrollBars, Location, Status) {

	// ======= Abre una nueva ventana del explorador
	
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	if (VerMenuBar == 'yes') {wint -= 30}
	if (VerToolBar == 'yes') {wint -= 40}
	if (Location == 'yes') {wint -= 30}
	if (Status == 'yes') {wint -= 30}
	
	winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',resizable=' + Resizable + ', scrollbars=' + ScrollBars +', toolbar=' + VerToolBar + ', menubar=' + VerMenuBar + ', status=' + Status + ', location=' + Location;
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}