var RequestUser = $.inherit(Request, {
	__constructor : function() {
		this.__base();
		this._data.name = 'user';
	},
	info : function(){
		alert("Objet fils : " + this.getParam());
	},
	check : function(value, type, htmlTarget, callback, response) {
		if(!response) {
			response = "html";
		}
		$.ajax({
			type	: 'POST',
			cache	: false,
			url		: '/ajax.php',
			data	: 'action=check&type='+type+'&value='+value + '&response=' + response,
			complete: function(data) {
       
				if(htmlTarget) {
					document.getElementById(htmlTarget).innerHTML = data.responseText;
				}
                
                try
                {
                    if( /^\s\*bfunction\b/.test(callback) )
                    {
                        callback.call(data.responseText);
                    }
					else if(typeof(callback) == "function") {
						callback(data.responseText);
					}
                }
                
                catch (x) { }
			}
		});
	}
});

