$.fn.ajaxSubmit = function(e) {
	this.submit(function(){
		var joined = '';
		$(this)
		.find("input[@checked], input[@type='text'], input[@type='submit'], input[@type='hidden']")
		.filter(":enabled")
		.each(function(){
			joined += this.name || this.id || this.parentNode.name || this.parentNode.id;
			joined += '=';
			joined += this.value + '&';
		});
		
		$("#searchword").attr({ disabled: 'disabled' });

		$.ajax({
			type: "GET",
			url: 'ajax.filter.file.php?' + joined,
			success: function(html){
				$("#filtercontent").html(html);
				$("#searchword").removeAttr('disabled');
				detail_view_init();
			}
		});

		return false;
	});
	return this;
}
