function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}
function FormValidator(theForm)
{
  if (theForm.email.value == "")
  {
    alert("Introduce una dirección de correcto en este formato: nombre@dominio.com");
    theForm.email.focus();
    return (false);
  }
  if (!isEmailAddr(theForm.email.value))
  {
    alert("Introduce una dirección de correcto en este formato: nombre@dominio.com");
    theForm.email.focus();
    return (false);
  }
  if (theForm.email.value.length < 3)
  {
    alert("Introduce una dirección de correcto en este formato: nombre@dominio.com");
    theForm.email.focus();
    return (false);
  }
  return (true);
}
function ToMo(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480,left = 287,top = 234');");
}
function CaP(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=225,left = 287,top = 234');");
}
function caratulas(what) {
	value = what.options[what.selectedIndex].value;
	if (value == '') return;
	window.location.href = value;
}