/*  FUNCIONES PUBLICIDAD */ 
 OAS_url ='http://publicidad.eluniversal.com.mx/RealMedia/ads/';
  OAS_listpos = 'Frame1,Right,Right1,Right2,Right3,BottomRight,Position1,Top,Top1,Left2,Left1,Bottom1,Bottom2,Bottom3,Bottom,x10,x11,x12,Middle3';
 OAS_query = '';
 OAS_sitepage = 'www.eluniversal.com.mx/Portada';

 OAS_version = 10;
 OAS_rn = '001234567890'; OAS_rns = '1234567890';
 OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
  function OAS_NORMAL(pos) { 
  document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" TARGET=_top>');
  document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" BORDER=0></A>'); }


 OAS_version = 11;
 if (navigator.userAgent.indexOf('Mozilla/3') != -1) OAS_version = 10;
 if (OAS_version >= 11) document.write('<SCR'+ 'IPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + OAS_query + '"><\/SCRIPT>');

 document.write('');
 function OAS_AD(pos) {
 if (OAS_version >= 11) OAS_RICH(pos);
 else OAS_NORMAL(pos);
 }

 
/*  FUNCIONES COOKIES */
var expDays = 1;
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*3*60*60*1000));
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
SetCookie('pubinegi','1', exp);
 
 
/* FUNCION VECASAS 
La función eval_dec verifica que sólo se hayan tecleado números y guiones.
Autor: Jorge Ivan Pérez Ramírez  
Año 2005  
Última modificación: 2005-09-22 */  
  
function eval_dec(nomele, dec, nomform, of) {
  var auxiliar = eval("document."+nomform+"."+nomele+".value")  
  var largo = eval("document."+nomform+"."+nomele+".value.length")  
  var cond = '!(auxiliar.charAt(i) >= "0" && auxiliar.charAt(i) <= "9")'  
  if(!largo > 0 && of==1) {  
    alert("Debe proporcionar la clave.")  
    eval("document."+nomform+"."+nomele+".focus()")  
    return false;
  } else {
    if(dec == 1)  
      cond += ' && (auxiliar.charAt(i) != "-")'  
    for(i=0; i<largo;i++){  
      if ( eval(cond) ) {  
        alert("Favor de introducir solamente números y guiones." );
        eval("document."+nomform+"."+nomele+".focus()")
        eval("document."+nomform+"."+nomele+".value = ''")
        return false;
      }  
    }  
  }  
}


/* FUNCION POPUPS  */
function despliega(variable,ancho,alto)
 {  window.open(variable,"Online","scrollbars=yes,resizable=yes,width="+ancho+",height="+alto); }


/* FUNCION SET */ 
  
function paginaInicio()
{
var url = "'http://www.eluniversal.com.mx/'";
if(navigator.appVersion.indexOf('MSIE') >-1 )
    {
    with(document){
        write('<A class="links_bi" HREF="#" ');
        write('onClick="this.style.behavior=');
        write("'url(#default#homepage)';")
        write('this.setHomePage('+url+');document.location.replace(\'http://www.eluniversal.com.mx/\');">');
        write('Tu Home</A>')
    }
}
else
{
    with(document){
       write('<A class="links_bi" HREF="set.html">');
       write('Tu Home</A>');
    }
}
}