<!-- 
//MANEJA LA EXPIRACION DE LA COOKIE
var expDays =365; // number of days the cookie should last
var page = "/bgespanol/popup/pacto.htm";
var windowprops = "width=399,height=368,top=0,left=390,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no";

//NUEVA FORMA DE LLAMAR A LOS POPUPS
//NUEVO DISEŅO PARA LLAMAR A LOS POPUP

var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
var calunit=ns? "" : "px"
//FIN DE NUEVA FORMA DE LLAMAR


function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}

function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString()));
}


/*function DeleteCookie (name) {  
var exp = new Date();  
exp.setTime (exp.getTime() - 1);  
var cval = GetCookie (name);  
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}*/

var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));


function amt(){
var pacto = GetCookie('nav')
if(pacto == null) {
pacto=1;
	//ESTA LINEA ES LA QUE ABRE EL POPUP
		window.open(page, "", windowprops);	
	//FIN DE LA LINEA 
	SetCookie('nav',pacto,exp)
}
else {
pacto++;
//SetCookie('nav',pacto,exp)
return pacto
 }
}

function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

//FIN DEL MANIPULADOR DE LA COOKIE

//Cokie
// Esta funcion setea una cookie que recuerda la ultima entrada del campo//
// inter= nombre de la forma
//simb= nombre del campo
function cokie(){
if (document.inter.simb.value.length != 0){ 
	SetCookie('DemoName',document.inter.simb.value,exp); 
	return false;
 }
}
//FUNCION QUE CARGA EL TICKER INTERNACIONAL EN LA PAGINA
function obtener(){
if(GetCookie('DemoName') == null){
 cokie();
}
else{
document.inter.simb.value = GetCookie('DemoName');
}
}

//script de seleccionar el ticker nacional
	var pas;
    function GetVarValue(field)    { 
        selected=false; 
        for (Count = 0; Count<document.selectform.strCfgVar.length; Count++){ 
            if(document.selectform.strCfgVar[Count].selected){ 
            selected=true;                 
            var string = document.selectform.strCfgVar[Count].value; 
            //var stringArray = string
			//.split(","); 
			strCfgVarValue = string; 
            //strCfgVarValue = stringArray[0]; 
            } 
        } 
		document.selectform.currVal1.value=strCfgVarValue;       
        //document.selectform.currVal.value=strCfgVarValue; 
        //document.selectform.currVal.focus(); 
        return true; 
		
		 
    } 
	function pasa(page){
	var pas;
	pas=document.selectform.currVal1.value; 
	window.open(page+"?nom="+pas,'ticker','toolbar=no,location=no,titlebar=0,innerwidth=501,width=501,innerheight=100,height=100,left=200,top=400')
	}
	function internacional(page){
	var pas2;
	pas2=document.inter.simb.value;
	window.open(page+"?ticker="+pas2,'pcquote','toolbar=no,scrollbars=yes,resizable=yes,location=no,titlebar=0,innerwidth=650,width=650,innerheight=325,height=325,left=100,top=200')
	}
	
//*** LLAMADAS A POPUPS Y COOKIES DE LOS TICKER***//
function group(){
//amt();  
//obtener();
}
//*** Fin de llamadas a popups y cookies de los ticker***//	