$.fn.includeForm = function(url) {
	var obj = null;
	var u = '';
	if (url.split('?').length == 2) u = url + '&rnd=' + new Date().getTime();
	else u = url + '?rnd=' + new Date().getTime();
		
	var e = function() {		
		form = obj.find('form');
		
		form.find('input').each(function() {
			var o = $(this);
			if (o.val() == '') {
				o.val(o.attr('title'));	
			}
		});
		
		form.submit(function() {
			form.find('input').each(function() {
				var o = $(this);
				if (o.attr('title') == o.val()) {
					o.val('');	
				}							 
			});
			$.post(u, form.serialize(), v);
			return false;
		});
	}
	
	var v = function(text) {
		text = text.split('<!--includeForm-->');
		if (text.length == 3) {
			obj.html(text[1]);
			e();
		}
		else alert('<!--includeForm--> missing');
	}
	
	obj = $(this);
	$.get(u, null, v);
}
