$.fn.includeForm = function(url, callback) {
	var obj = null;
		
	var e = function() {
		form = obj.find('form');
		form.submit(function() {
			$.post(url, form.serialize(), v);
			return false;
		});
	};
	
	var v = function(text) {
		text = text.split('<!--includeForm-->');
		if (text.length == 3) {
			obj.html(text[1]);
			setTimeout(e, 10);
			try{ 
			    if(callback)callback();
			}catch(e){;}
		}
		else alert('<!--includeForm--> missing');
	};
	
	obj = $(this);
	$.get(url, null, v);
};


