function recarga(t) {
  if (xmlhttp) {
    xmlhttp.open("GET", url_refresco, true);
    xmlhttp.onreadystatechange=function() {
      if (xmlhttp.readyState==4) {
        if (fecha_mod>=xmlhttp.responseText)
          setTimeout("recarga("+t+")", t);
        else
          location.href = location.href;
      }
    }
    xmlhttp.send(null);
  }
}
function fecha_modificacion() {
  if (xmlhttp) {
    xmlhttp.open("GET", url_refresco, true);
    xmlhttp.onreadystatechange=function() {
      if (xmlhttp.readyState==4) {
        fecha_mod = xmlhttp.responseText;
      }
    }
    xmlhttp.send(null);
  }
}
var xmlhttp = false;
var fecha_mod = 0;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  xmlhttp = new XMLHttpRequest();
}

window.onload = function(e) {
  if (typeof url_refresco!='undefined') {
    fecha_modificacion();
    setTimeout("recarga(60000)", 60000);
  }
}
