esjs = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))

IE = navigator.appName=="Microsoft Internet Explorer";
NS = navigator.appName=="Netscape";
bVer = parseInt(navigator.appVersion);

var newWin=null;

function popupwp(URL) {
day = new Date();
id = day.getTime();
//ancho=511
// alto 580
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=240,left=50,top=55');");
}

function popup(loc, name, width, height) {
	var _params = "width="+width+",height="+height+",resizable=no,status=yes,scrollbars=no";

	// CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
	if (bVer >= 4) {
		 _left = ( (screen.width-width) >>1 );
		 _top = ( (screen.height-height) >>1 );
	} else {
		 _left = ( (800-width) >>1 );
		 _top = ( (600-height) >>1 );
	}

	if (IE) _params += ",top=" + _top + ",left=" + _left;
	else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;

	newWin = window.open(loc, name, _params);
	if ( newWin!=null && !(IE && bVer<5) )
		newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
}

function popupsc(loc, name, width, height) {
	var _params = "width="+width+",height="+height+",resizable=no,status=yes,scrollbars=yes";

	// CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
	if (bVer >= 4) {
		 _left = ( (screen.width-width) >>1 );
		 _top = ( (screen.height-height) >>1 );
	} else {
		 _left = ( (800-width) >>1 );
		 _top = ( (600-height) >>1 );
	}

	if (IE) _params += ",top=" + _top + ",left=" + _left;
	else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;

	newWin = window.open(loc, name, _params);
	if ( newWin!=null && !(IE && bVer<5) )
		newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
}



function popupAbre(loc, name, width, height) {
	var _params = "width="+width+",height="+height+",resizable=no,status=no,scrollbars=yes,toolbar=no,directories=no,menubar=no";

	// CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
	if (bVer >= 4) {
		 _left = ( (screen.width-width) >>1 );
		 _top = ( (screen.height-height) >>1 );
	} else {
		 _left = ( (800-width) >>1 );
		 _top = ( (600-height) >>1 );
	}

	if (IE) _params += ",top=" + _top + ",left=" + _left;
	else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;

	newWin = window.open(loc, name, _params);
	if ( newWin!=null && !(IE && bVer<5) )
		newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
}

function fc_Levanta()
{


w = document.body.clientWidth;

h = document.body.clientHeight;

var popW = 300, popH = 200;

var leftPos = (w-popW)/2, topPos = (h-popH)/2;




/*
window.open("http://www.britanico.edu.pe/ensenanza/popup_matricula_procedimiento.htm"
            ,"SIMA"
            ,'toolbar=no,left='+leftPos+',top='+topPos+',width=485,height=445, directories=no, status=no, scrollbars=no, resizable=no, menubar=no');
*/

window.open("http://www.britanico.edu.pe/ensenanza/popup_matricula_procedimiento.htm"
            ,"SIMA"
            ,'toolbar=no,left='+leftPos+',top='+topPos+',width=755,height=360, directories=no, status=no, scrollbars=no, resizable=no, menubar=no');

}




function fc_Levanta_SIMA()
{


w = document.body.clientWidth;

h = document.body.clientHeight;

var popW = 300, popH = 200;

var leftPos = (w-popW)/2, topPos = (h-popH)/2;


window.open("https://www.britanico.edu.pe/sima/"
            ,"SIMA"
            ,'toolbar=no,left='+leftPos+',top='+topPos+',width=1024,height=768, directories=no, status=no, scrollbars=yes, resizable=no, menubar=no');


}

function fc_pop_up_MSN()
{


window.open("http://www.britanico.edu.pe/ensenanza/popup_msn.htm"
                    ,"BRITANICO"
                    ,'toolbar=no,left=200,top=200,width=580,height=305, directories=no, status=yes, scrollbars=no, resizable=no, menubar=no');

}




function pop_olvido(URL) {
day = new Date();
id = day.getTime();
//id="Britanico"
//ancho=511
// alto 580
//eval("page" + id + " = ");
window.open(URL, 'Britanico', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=205,left=300,top=175');
//eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=205,left=300,top=175');");
}

function pop_audit(URL) {
day = new Date();
id = day.getTime();
//ancho=511
// alto 580
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=375,height=405,left=75,top=75');");
}

function imprime(URL) {
day = new Date();
id = day.getTime();
//ancho=511
// alto 580
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=0,width=400,height=459,left=25,top=25');");
}

function popup1(URL) {
day = new Date();
id = day.getTime();
//ancho=511
// alto 580
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=695,height=459,left=25,top=25');");
}


function download(ruta,areaid,paginaid) {
window.open(ruta,'Downloads','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=260,screenX=220,screenY=220,height=100');
}


function disableselect(e){
return false
}
function reEnable(){
return true
}


var abriraqui = 0;
var abrirnuevo = 1;
var abrirotro = 2;
function openPag(f, dondeabrir , nelem) {
	if (dondeabrir==abriraqui) {
		pag = f.elements[nelem].options[f.elements[nelem].selectedIndex].value ;
		if (pag!="x") {window.location=pag;}		
		}
	else
		if (dondeabrir==abrirnuevo)	{
			pag = f.elements[nelem].options[f.elements[nelem].selectedIndex].value ;
			if (pag!="x") {w1 = window.open(pag , "w1" , "scrollbars,width=550,height=390");}
			}
		else 
			if (dondeabrir==abrirotro) {
				pag = f.elements[nelem].options[f.elements[nelem].selectedIndex].value ;
					if (pag!="x") {w2 = window.open(pag , "w2");}
				}
   }


// JAVASCRIPT, DESACTIVA RUTA DE HREF

var barrabajo = 'Asociación Cultural Peruana Británica'; 
function barra()
{
window.status = barrabajo;
timerID= setTimeout("barra()", 15);
}
//  Descomentar : barra();

//INICIO JAVASCRIPT desactiva click derecho

//if IE4+
	//Descomentar :  document.onselectstart=new Function ("return false")
//if NS6
//------------Descomentar : 
/*
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
*/
//---------------

//FIN JAVASCRIPT desactiva click derecho