
    var inputs = new Object();
    inputs["nombre"]    = {name:"Name", type:"text", field:"nombre", allownull:false, expresion:/^[A-Za-zÀ-ÖØ-öø-ÿ ]{3,}$/};
    inputs["email"]     = {name:"E-mail", type:"text", field:"email", allownull:false, expresion:/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/};
    inputs["telefono"]  = {name:"Telephone or Mobile Phone", type:"text", field:"telefono", allownull:false, format:"Only introduce numbers and letters", expresion:/^[0-9 \-\/]{9,30}$/};
    inputs["comentarios"] = {name:"Description of the property", type:"text", field:"comentarios", allownull:false};

    //Halo al campo
    style_memory = new Object();
    style_focus  = {borderStyle: "solid",
                    borderColor: "#ff0000",
                    borderWidth: 2};

    function checkInput(input) {
        deletemsg();

        unfocused_all(inputs);
        validateInput(input.name,inputs);
    }


    function sendForm(f, d) {

        if (validateForm(f, d)) {
			//Creamos el objeto de petición
			$.ajax({url:f.action,
				   	type: 'post',
					data: $('#' + f.id).serialize(),
					success: function(data) {
							$('#items_pedir').html(data);
						}
					});
        }
	}

