<!--
// CONTACTO
function submitContacto() {
  var f1 = document.frmContact; document.MM_returnValue = false; txtError = "";

  if (f1.txtName.value == "") txtError += "- Escriba Nombre\n";
  if (f1.txtLName.value == "") txtError += "- Escriba Apellido\n";
  if (f1.txtEmail.value == "") txtError += "- Escriba E-Mail\n";
  else {
    p=f1.txtEmail.value.indexOf('@');
    if (p<1 || p==(f1.txtEmail.value.length-1)) txtError += "- Email no valido\n";
  }

  if (f1.txtMsj.value == "") txtError += "- Escriba sus comentarios\n";

  if (txtError) alert('Ingrese la siguiente información:\n'+txtError);
  document.MM_returnValue = (txtError == '');
}

// SOLICITUD DE VIDEO y EVENTO
function submitSolicitud() {
  var f1 = document.frmSolic; document.MM_returnValue = false; txtError = "";

  if (f1.nombre.value == "") txtError += "- Escriba Nombre\n";
  if (f1.apellido.value == "") txtError += "- Escriba Apellido\n";
  if (f1.email.value == "") txtError += "- Escriba E-Mail\n";
  else {
    p=f1.email.value.indexOf('@');
    if (p<1 || p==(f1.email.value.length-1)) txtError += "- Email no valido\n";
  }
  if (f1.deposito.value == "") txtError += "- Escriba Número del Depósito\n";

  if (txtError) alert('Ingrese la siguiente información:\n'+txtError);
  document.MM_returnValue = (txtError == '');
}

function submitVideo() {
  var f1 = document.frmSolic; document.MM_returnValue = false; txtError = "";

  if (f1.nombre.value == "") txtError += "- Escriba Nombre\n";
  if (f1.apellido.value == "") txtError += "- Escriba Apellido\n";
  if (f1.email.value == "") txtError += "- Escriba E-Mail\n";
  else {
    p=f1.email.value.indexOf('@');
    if (p<1 || p==(f1.email.value.length-1)) txtError += "- Email no valido\n";
  }

  if (txtError) alert('Ingrese la siguiente información:\n'+txtError);
  document.MM_returnValue = (txtError == '');
}

// encuestas y trivias
//encuesta
function votar() {
  var f1 = document.frmPoll;  txtError = "";
  var totOpcion=f1.totOpciones.value; selecciono=0;
  for (i=0; i<totOpcion; i++)  {
    if (f1.opcion[i].checked == true)	selecciono =1;
}
  if (selecciono == 0) txtError += "Debe selecciona una opción";
  if (txtError) alert('Corrija lo siguiente:\n'+txtError);
  else f1.submit();
}
function votarTrivia() {
  var f1 = document.frmTrivia;  txtError = "";
  var totOpcion=f1.totOpciones.value; selecciono=0;
  for (i=0; i<totOpcion; i++)  {
    if (f1.opcion[i].checked == true)	selecciono =1;
}
  if (selecciono == 0) txtError += "Debe selecciona una opción";
  if (txtError) alert('Corrija lo siguiente:\n'+txtError);
  else f1.submit();
}

//-->