function valida_correo(email){
    regx = /^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$/;
    return regx.test(email);
}
function longitud(txt ,limite)
{
  longitud = txt.value.length;
  if ( longitud > limite )
  {
	txt.value = txt.value.substring(0,limite);
	caracteresLibres = 0;
  }
  else
  {
   caracteresLibres = limite - longitud;
  }
  return caracteresLibres;
}


function abrir_suscripcion(URL) {
window.open(URL, 'ventana', 'width=500,height=330,scrollbars=no,toolbar=0,location=0,resizable=1')
}

function abrir_contacto(URL) {
window.open(URL, 'ventana', 'width=670,height=650,scrollbars=no,toolbar=0,location=0,resizable=1')
}

function abrir_contacto_aviso(URL) {
window.open(URL, 'ventana', 'width=680,height=660,scrollbars=no,toolbar=0,location=0,resizable=1')
}

function abrir_foto(URL) {
window.open(URL, 'ventana', 'width=580,height=500,scrollbars=no,toolbar=0,location=0,resizable=1')
}

