


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);

}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);

}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function abrir_ventana(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



function enviar(form) {
   
   var error=0;
   
   if (form.nombre.value.length==0) {
		alert ("Introduzca su Nombre");
		form.nombre.focus();
		error=1;
		 }
		if (form.tlf.value.length==0) {
		alert ("Introduzca su Telefono");
		form.tlf.focus();
		error=1;
		}
	if (form.mail.value.length==0) {
		alert ("Introduzca su email");
		form.mail.focus();
		error=1;
		}
		
		if (error==0)
		{
         	vals = "";
         	vals=vals+"?nombre="+form.nombre.value;
         	
         	vals=vals+"&mail="+form.mail.value;
         	vals=vals+"&telefono="+form.tlf.value;
            vals=vals+"&cliente="+form.cliente.value;
            vals=vals+"&emto="+form.emto.value;
         	vals=vals+"&observaciones="+form.observaciones.value;
         	url="modulos/ayuntamientos/mailrespuesta.php"+vals;
         	abrir_ventana(url,'','scrollbars=yes,width=512,height=432')
   }
}

