function validarmlist(frm) {
  retval=true;
  valor=frm.mlist.value;
  if (valor=='' || valor=='Inscríbete @'){
      alert('Por favor capture su dirección de correo');
      retval=false;  
  } else if ((valor.indexOf ('@', 0) == -1)||(valor.length < 5)) { 
      alert('Escriba una dirección de correo válida'); 
      retval=false;  
  }
  return retval;
}

function validarbuscar(frm) {
  retval=true;
  valor=frm.buscar.value;
  if (valor=='' || valor=='Buscar'){
      alert('Por favor capture una palabra de búsqueda');
      retval=false;  
  } 
  return retval;
}

function enviarnoticia(noticia){
  w=460;
  h=383;
  l=(screen.width-w)/2;
  t=(screen.height-h)/2;
  window.open('enviarnoticia.php?noticia='+noticia,'enviarnoticia','width='+w+',height='+h+',left='+l+',top='+t);
}

function validarenvio(frm){
  retval=true;
  if (frm.nombre.value==''){
      alert('Por favor capture su nombre');
      retval=false;  
  } else if (frm.correo.value==''){
      alert('Por favor capture su correo');
      retval=false;  
  } else if ((frm.correo.value.indexOf ('@', 0) == -1)||(frm.correo.value.length < 5)) { 
      alert('Escriba una dirección de correo válida'); 
      retval=false;  
  } else if (frm.destnombre.value==''){
      alert('Por favor capture el nombre del destino');
      retval=false;  
  } else if (frm.destcorreo.value==''){
      alert('Por favor capture el correo de destino');
      retval=false;  
  } else if ((frm.destcorreo.value.indexOf ('@', 0) == -1)||(frm.destcorreo.value.length < 5)) { 
      alert('Escriba una dirección de correo de destino válida'); 
      retval=false;  
  }
  return retval;
}

function zoomText(Accion,Elemento){

//obj=document.getElementById(Elemento);
objparent=document;


for (i=0;i<objparent.all.length;i++){ //ciclo

obj=objparent.all[i];

if (obj.style.fontSize==""){
obj.style.fontSize="100%";
}
actual=parseInt(obj.style.fontSize); //valor actual del tamaño del texto 
incremento=1;// el valor del incremento o decremento en el tamaño 

if(Accion=="reestablecer"){
obj.style.fontSize="100%"
}
if(Accion=="aumentar"){
valor=actual+incremento;
obj.style.fontSize=valor+"%"
}
if(Accion=="disminuir"){
valor=actual-incremento;
obj.style.fontSize=valor+"%"
}

} //ciclo

} 