function revisa() {
   forma = document.newpost;
   /*if(forma.tema.value == '' || forma.tema.value.length < 5) {
      alert('Debe escribir el titulo del tema (mayor a 5 letras).');
      return false;
   }*/
   /*if(forma.comentario.value == '' || forma.comentario.value.length < 15) {
      alert('El contenido de su tema no debe ser tan corto.');
      forma.comentario.focus();
      return false;
   }*/
   return true;
}
function mensajeTo() {
   forma = document.forma;
   if(forma.mensaje.value == '') {
      alert('No puede enviar un mensaje en blanco.');
      return false;
   }
   if(forma.to.value == '') {
      alert('Especifique el destinatario.');
      return false;
   }
}
function _(url,nombre,ancho,alto) {
  ancho = ancho ? ancho : 600; alto = alto ? alto : 480; nombre = nombre ? nombre : 'aux';
  aux = window.open(url,nombre,"width="+ancho+",height="+alto+",toolbar=no,directories=no,location=no,copyhistory=no,scrollbars=yes,resizable=yes");
  aux.focus();
  return false;
}
if(portada ==1) {
   timerNR = setInterval("updateNR(0);",1000*15);
}
var update1 = 1;
function updateNR(arg) {
   if(update1 > 300) { clearInterval("timerNR"); return false; }
   update1++;
   $('noticiasrandimg').src='http://media.elsiglodetorreon.com.mx/v3/wait2.gif';
   new Ajax.Request('/foco.php?nr='+arg, { method:'get', onSuccess: function(t){ $('noticiasrand').update(t.responseText); } });
   return false;
}

