
    var inputs = new Object();
    inputs["nombre"]    = {name:"Nombre y apellidos", 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:"Teléfono y/o Móvil", type:"text", field:"telefono", allownull:false, format:"Introduzca sólo números y espacios", expresion:/^[0-9+ ]{9,}$/};
    inputs["comentarios"] = {name:"Comentarios", 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(_form_,_data_,_url_,_receiveFunction_) {

        vform = $('#' + _form_)[0]; //document.forms[_form_]; //$(_form_);
        if (vform == null) {
            alert('ERROR Parámetro '+_form_+' incorrecto');
            return false;
        }

        if (!validateForm(_form_, _data_)) {
			return false;
		}

		//Creamos el objeto de petición
		$.ajax({url:_url_,
				type: 'post',
				data: $('#' + _form_).serialize(),
				success: function(data) {
						$('#items_pedir').html(data);
					}
				});

	
	}
