<!-- *******************	lenguage="JavaScript"	******************************** -->
 <!-- --------------------------------------------------- -->
function enviapedido()
 { document.miFormu.submit()
 //method="POST" action="http://cgi.casarural-lapergola.com/FormMail.pl"
 //<INPUT name=redirect type=hidden value=http://www.solytierra.com/gracias.htm> 
	return true;
	}
<!-- --------------------------------------------------- -->
<!-- --------------------------------------------------- -->
function desactivacompleta() {  <!-- --------------------------------------------------- -->
	document.miFormu.completa.checked = false
	return true;
	}
<!-- --------------------------------------------------- -->
<!-- --------------------------------------------------- -->
function activacompleta() {  <!-- --------------------------------------------------- -->
if (document.miFormu.completa.checked)   {
	window.alert("Ha seleccionado alquilar la casa completa") ;
	//document.miFormu.habitaciones[0].text = 7;
	document.miFormu.personas.selectedIndex = 7;
		document.miFormu.habitaciones.selectedIndex = 6;
		//document.miFormu.personas[0].text = 14;
	return true;
	}}
<!-- --------------------------------------------------- -->
<!-- --------------------------------------------------- -->
function revisapedido() {  
var micadena = "";
if (document.miFormu.contacto.value == "" && document.miFormu.telefono.value == "")   {
	window.alert("Debe rellenar al menos uno de los campos de contacto : correo electrónico o teléfono.") ;
	return false;
	}else{
	//if (document.miFormu.contacto.value == "" && document.miFormu.telefono.value = "" )   {
	//	window.alert("Por favor, rellene el campo de correo electrónico") ;
	//	return false;Ç
	//}else{
	//	if (document.miFormu.contacto.value != "")   {
		//	if (indexOf ("@",document.miFormu.contacto.value) != 1) 
		//	{window.alert("Por favor, ponga una dirección de correo electrónico correcta. ") ;
			//return false;}
	//}
	var contacto = "\nContacto: " + document.miFormu.contacto.value;
	if (document.miFormu.telefono.value != "")   {
		 if (isNaN(document.miFormu.telefono.value))   {
			window.alert("Por favor, ponga sólo números en el campo telefono. ") ;
			return false;
			}
	//window.alert(document.miFormu.telefono.value.length)
		if (document.miFormu.telefono.value.length < 9)   {
			window.alert("Un número de teléfono debe tener 9 dígitos. ") ;
			return false;
			//break;
			}
	}
			var telefono = "\nTeléfono: " + document.miFormu.telefono.value;
}	
	
var comentarios = "\nComentarios:" + document.miFormu.comentarios.value;
var formu = document.miFormu;
var FechaIni = "Fecha inicio: " + formu.diaini.options[formu.diaini.selectedIndex].text  + "-" + formu.mesini.options[formu.mesini.selectedIndex].text + "-" + formu.anoini.options[formu.anoini.selectedIndex].text;
	

var personas = "\nNº personas: " + formu.personas.options[formu.personas.selectedIndex].text;
var habitas = "\nNº habitaciones: " + formu.habitaciones.options[formu.habitaciones.selectedIndex].text;
var supletorias = "\nNº supletorias: " + formu.supletorias.options[formu.supletorias.selectedIndex].text;
if (formu.completa.checked){
var valorcasacompleta = "Sí"
}else{
valorcasacompleta = "No"
}
var casacompleta = "\nCasa completa: " + valorcasacompleta
var desayuno = document.miFormu.desayuno[0].checked;
if   (desayuno == false) {
var xdesayuno = "\nDesayuno: No";
}else{
var xdesayuno = "\nDesayuno: Sí";
}
var xcomida = document.miFormu.comida[0].checked;
if   (xcomida == false) {
var comida = "\nComida: No";
}else{
var comida = "\nComida: Sí";
}
var pago = ""
for (i = 0; i < document.miFormu.length ; i++) {

		if (document.miFormu.pago[i].checked != false) {
			pago = "\nEl modo de pago elegido es: " + document.miFormu.pago[i].value + "\t\t";
			break;			}			}
var xfinde = ""
for (i = 0; i < document.miFormu.length ; i++) {
	if (document.miFormu.finreserva[i].checked != false) {
		xfinde = document.miFormu.finreserva[i].value;
		break;			}			}
if (xfinde == "hasta") {
var FechaFin = "\nFecha fin: " + formu.diafin.options[formu.diafin.selectedIndex].text  + "-" + formu.mesfin.options[formu.mesfin.selectedIndex].text + "-" + formu.anofin.options[formu.anofin.selectedIndex].text;}
else {
var FechaFin = "\nFecha fin: " + xfinde }
			
if (confirm ("POR FAVOR, REVISE LOS DATOS." +  "\n\n" + FechaIni + FechaFin + personas + habitas + supletorias + casacompleta + xdesayuno + comida + pago + comentarios + contacto + telefono))
{	
enviapedido();
	return false;
}else{
	alert ("Ha cancelado el envío de los datos.");
	return false;}
} 	
 
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function disableRightClick(e)
{ var message = "Right click disabled";
  if(!document.rightClickDisabled) // initialize
  {   if(document.layers) 
    { document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {    if (e.which==2||e.which==3)
    {     // alert(message);
      return false;
    }  }
  else
  {    //alert(message);
    return false;
  }}
  
  function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}