
$(document).ready(function(){
	$('.ajaxify').each(function(ind,el){
		"#" + $(el).parent().append('<div class="results"></div>');
		var options = {
			target: "#" + $(el).parent().attr("id") + " .results",
			beforeSubmit: showRequest,
			success: showResponse
		};

		$(el).ajaxForm(options);

	});
});

function showRequest(formData, jqForm, options){
	$(options["target"]).parent().children("form").hide();
	$(options["target"]).fadeIn("slow");
	return true;
}

function showResponse(responseText,statusText){
	return true;
}
