function Form_Validator2(theForm)
{

 if (theForm.nombre.value == "")
  {
    alert("Escriba un valor para el campo \"Nombre\".");
    theForm.nombre.focus();
    return (false);
  }
  
  else if (theForm.apellidos.value == "")
  {
    alert("Escriba un valor para el campo \"Apellidos\".");
    theForm.apellidos.focus(); 
    return (false);
  }
    	
  else if (theForm.voucher.value == "")
  {
    alert("Escriba un valor para el campo \"VOUCHER\".");
    theForm.voucher.focus(); 
    return (false);
  }
  
  else if (theForm.voucher.value == "INTRODUCE TU NÚMERO VOUCHER")
  {
    alert("Escriba un valor correcto para el campo \"VOUCHER\".");
    theForm.voucher.focus(); 
    return (false);
  }

  else if (theForm.email.value == "")
  {
    alert("Escriba un valor para el campo \"e-mail\".");
    theForm.email.focus();
    return (false);
  }
  
  else if (theForm.valido.checked == false)
  {
    alert("Debe aceptar las condiciones.");
    theForm.valido.focus();
    return (false);
  }
  
  return (true);
}


function habilita(form)

{ 
form.voucher.disabled = true;
form.voucher.value="PAGO APLAZADO EN SEDE DE MADRID";
form.boton_tienda.disabled = true;

}

function deshabilita(form)
{ 
form.voucher.disabled = false;
form.voucher.value="INTRODUCE TU NÚMERO VOUCHER";
form.boton_tienda.disabled = false;
}
