function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function checkFields() {

 
 if (document.form.name.value.length < 1)
  {
    alert("Write at least one character in \"name\".");
    document.form.name.focus();
    return (false);
  }
   if (document.form.email.value.length < 1)
  {
    alert("The field \"email\". is empty");
    document.form.email.focus();
    return (false);
  }
   
  if (document.form.comments.value.length < 1)
  {
    alert("The field \"comments\". is empty");
    document.form.comments.focus();
    return (false);
  }
 

  var checkOK = "ABCDEFGHIJKLMNÑOPQRSTUVWXYZÁÉÍÓÚabcdefghijklmnñopqrstuvwxyzáéíóú ";
  var checkStr = document.form.name.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Write just letters in \"name\".");
    document.form.name.focus();
    return (false);
  }

 
 
 
 
  if(form.email.value.length > 0){
	  if ((form.email.value.indexOf ('@', 0) == -1)) { 
		alert("Write a valid email address in \"email\"."); 
		document.form.email.focus();
		return (false); 
	  }
  }
  return (true);
}//end

function checkEmail() {
  if(document.form.email.value.length > 0){
	  if ((document.form.email.value.indexOf ('@', 0) == -1)) { 
		alert("Please write a valid email address in \"email\"."); 
		document.form.email.focus();
		return (false); 
	  }
  }

	
  if (document.form.email.value.length < 1){
    alert("Please write an email");
    document.form.email.focus();
    return (false);
  }
  return (true);
}//end