//Function to jump to another forum
function ForumJump(URL) {
	
	if (URL.options[URL.selectedIndex].value != "") self.location.href = URL.options[URL.selectedIndex].value;	
	return true;
}

//Function to open pop up window
function openWin(theURL,winName,features) {
  	window.open(theURL,winName,features);
}

//VERIFICAR EL FORMULARIO, SI ES TRUE, DESHABILITAR EL BOTON SUBMIT
function AceptarForm(theform)	{
	if (!v.exec())	{		return false;	}	
	theform.cmdsubmit.disabled= true;
}

 function ValidarEmail(valor) {
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
   return (true)
  } else {
   alert("La dirección de e-mail es incorrecta.");
   return (false);
  }
 }
function isEmailAddress(theElement, nombre_del_elemento )
{
var s = theElement.value;
var filter=/^[A-Za-z][A-Za-z0-9_]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/;
if (s.length == 0 ) return true;
   if (filter.test(s))
      return true;
   else
     alert("Por favor ingrese una dirección de correo válida");
theElement.focus();
return false;
}

