function formulario(frm){
	
		
		if (frm.txtSMin.value.esNumeroEntero()==false && frm.txtSMin.value !== "" )
		{
			alert("Introduzca Superficie minima correcta");
	    	frm.txtSMin.focus();
			return;

		}
		
  		if (frm.txtSMax.value.esNumeroEntero()==false && frm.txtSMax.value !== "")
		{
			alert("Introduzca Superficie maxima correcta");
	    	frm.txtSMax.focus();
			return;

		}
		
//	  	if (frm.txtSMin.value !== "" && frm.txtSMax.value == "" )
	//  		{ 
		//		alert("Introduzca Superficie maxima, Por favor");
	    	//	frm.txtSMin.focus(); 
			// return;
			//}
		
		
//	 	 if (frm.txtSMin.value == "" && frm.txtSMax.value !== "")
//	  		{ 
//				alert("Introduzca Superficie minima, Por favor");
//	    		frm.txtSMin.focus();
//				return; 
//			}
		 
		if (parseInt(frm.txtSMin.value) > parseInt(frm.txtSMax.value))
	  		{ 
				alert("La superficie minima no puede ser mayor que la superficie maxima, Por favor");
	    		frm.txtSMin.focus(); 
				return;
			}
			
		if (frm.txtPVPmin.value.esPrecio()==false && frm.txtPVPmin.value !=="")
	  		{ 
	  			alert("Introduzca un precio minimo correcto, Por favor");
	    		frm.txtPVPmin.focus();
				return; 
			}
			else
			{
				var Precio
				
				Precio=frm.txtPVPmin.value;
				Precio=Precio.replace(".","");
				Precio=Precio.replace(",",".");
				frm.txtPVPmin.value=Precio;
			}
		
		if (frm.txtPVPmax.value.esPrecio()==false && frm.txtPVPmax.value !=="")
	  		{ 
	  			alert("Introduzca un precio maximo correcto, Por favor");
	    		frm.txtPVPmax.focus();
				return; 
			}
			else
			{
				var Precio
				
				Precio=frm.txtPVPmax.value;
				Precio=Precio.replace(".","");
				Precio=Precio.replace(",",".");
				frm.txtPVPmax.value=Precio;
			}
		
//		 	if (frm.txtPVPmin.value !== "" && frm.txtPVPmax.value == "" )
//	  		{ 
//				alert("Introduzca Precio maximo, Por favor");
//	    		frm.txtPVPmax.focus(); 
//				return;
//			}

//	 	 if (frm.txtPVPmin.value == "" && frm.txtPVPmax.value !== "")
//	  		{ 
//				alert("Introduzca Precio minimo, Por favor");
//	    		frm.txtPVPmin.focus();
//				return; 
//			}
		 
		if (parseInt(frm.txtPVPmin.value) > parseInt(frm.txtPVPmax.value))
	  		{ 
				alert("El precio minimo no puede ser mayor que el precio maximo, Por favor");
	    		frm.txtApellido2.focus(); 
				return;
			}
	frm.submit();	  
  }

