netscape = (navigator.appName == "Netscape")
ns6   = (netscape && document.getElementById)
ns4   = (netscape && !ns6)
ie4  = document.all;

function abreMiCaja()
{
	
	grabarLog('009','01','IDENTIFICACION MI CAJA','052','',0);
	window.open('https://caja.caja-granada.es/seg/logon/desconectado1.asp','MiCaja','width=790,height=515,top=150,left=150,status=yes,location=yes,resizable=yes');

}

function Cajae()
{
	grabarLog('009','01','IDENTIFICACION CAJA ELECTRONICA','052','',0);
	win1=open("","CajaElectronica","top=0,left=0,width=1024,height=768,toolbar=no,resizable=yes,location=no,status=yes,scrollbars=auto")
	//win1.location.href= "https://www.caja-granada.es/cgi-bin/INclient_2031?OPERACION=0002M&IDIOMA=01&CAJA=2031&BROKER=SI";
	win1.location.href= "https://cajaelectronica.caja-granada.es/BEWeb/2031/2031/inicio_identificacion.action";


	if (netscape) 
	{
		win1.select;
		win1.focus()
	}
}


function abreMayores(){
	grabarLog('009','01','IDENTIFICACION CAJA ELECTRONICA MAYORES','052','',0);

  winMay=open("https://www.caja-granada.es/X031/01LOGIN1MAY.htm","windowMay");
  
  
	if (netscape) 
	{
		winMay.select;
		winMay.focus()
	}	
	
}

function abreAccesible(){
	grabarLog('009','01','IDENTIFICACION CAJA ELECTRONICA ACCESIBLE','052','',0);

  winAcc=open("https://www.caja-granada.es/X031/01LOGIN1.htm","windowAcc");
  
  
	if (netscape) 
	{
		winAcc.select;
		winAcc.focus()
	}	
	
}



function abreCirculo()
{
	grabarLog('009','01','IDENTIFICACION CIRCULO AGRARIO','052','',0);
	var alto = screen.availHeight;
	var ancho = screen.availWidth;
	winCir=open("","CirculoAgr","top=0,left=0,width=" + ancho + ",height=" + alto + ",toolbar=no,resizable=yes,location=no,status=yes")
	winCir.location.href= "https://caja.caja-granada.es/seg/circuloagrario/inicio.asp";
	
	if (netscape) 
	{
		winCir.select;
		winCir.focus()
	}
}

function abreVini()
{	
	
	grabarLog('009','01','IDENTIFICACION VINI','052','',0);
	if (eval("window.respuestaVini"))
		if (resultadoVini == "ERROR") muestraMensajeErrorVini();
		else abreWeb();
	else
		alert("Vini no esta disponible en este momento.");


}

function abreAgenda()
{
	grabarLog('009','01','IDENTIFICACION AGENDA','052','',0);
	winAg=open("","Agenda","top=0,left=0,width=790,height=400,toolbar=yes,resizable=yes,location=no,status=yes")
	//win2.location.href= "../seg/utilidades/agenda/agenda.htm";
	winAg.location.href= "https://caja.caja-granada.es/seg/utilidades/agenda/agenda.htm";

	if (netscape) 
	{
		winAg.select;
		winAg.focus()
	}
}

function abreBuzon()
{
	grabarLog('009','01','IDENTIFICACION BUZON','052','',0);
	winBuz=open("","Correo","top=0,left=0,width=790,height=400,toolbar=yes,resizable=yes,location=no,status=yes")
	winBuz.location.href= "https://caja.caja-granada.es/seg/utilidades/buzon/buzon.htm";

	if (netscape) 
	{
		winBuz.select;
		winBuz.focus()
	}
}

function abreBroker()
{
	grabarLog('009','01','IDENTIFICACION BROKER','052','',0);
	winBr=open("","Broker","top=0,left=0,width=790,height=540,toolbar=yes,resizable=yes,location=no,status=yes")
	winBr.location.href= "https://logon.vinea.es/broker/2031";

	if (netscape) 
	{
		winBr.select;
		winBr.focus()
	}
}


function abreS_M_S(){
	grabarLog('009','01','IDENTIFICACION SMS','052','',0);
	winSMS=open("","SMS","top=0,left=0,width=420,height=400,toolbar=no,resizable=yes,location=no,status=yes,scrollbars=no")
	//win1.location.href= "https://www.caja-granada.es/cgi-bin/INclient_2031?OPERACION=9839M&IDIOMA=01&CAJA=2031&BROKER=SI&VRS=COR&PGDESTI=9839M";
	winSMS.location.href= "https://caja.caja-granada.es/seg/SMS";

	if (netscape) 
	{
		winSMS.select;
		winSMS.focus()
	}	
	
}   

function accesoEnCuenta(){
	      grabarLog('009','01','IDENTIFICACION ENCUENTA','052','',0);
				cadenaEnCuenta = "http://encuentaw.vinea.es/ibi_apps/WFServlet?IBIF_ex=VERKMJ&IDIOMA=01&CA=&WEB=009";
				enCuenta = window.open(cadenaEnCuenta,"enCuenta","top=0,left=0,width=800,height=530,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,status=yes" );

	      //window.open('https://caja.caja-granada.es/seg/enCuenta/conectar.asp','enCuenta','width=790,height=540,top=150,left=150,status=yes,location=yes,resizable=yes');
}  


function tv(){
	grabarLog('009','01','CANAL CAJAGRANADA','052','',0);
	a = window.open('http://media.globalcorporativa.com/unotv/cajagranada/','tv','top=0,left=0,width=790,height=540,toolbar=no,resizable=yes,location=no,status=yes');
}

function info_seguridad()
{
  window.open('https://www.caja-granada.es/seguridad','seguridad','width=790,height=540,status=yes,scrollbars=yes')
}

function abre_c_cultural(){
	a = window.open('http://www.memoriadeandalucia.com','','top=0,left=0,width=1024,height=768,toolbar=yes,resizable=yes,location=yes,status=yes,scrollbars=yes');
}