function loadAjax(loadIntoElID, page) {
	 var completeURL = jQuery('base').attr('href') + page; //NOTE THAT jQuery('base').attr('href') should work as the base tag should be included in your header.
	 var imgHtml = '<img src="mysite/javascript/loading.gif" alt="loading . . ." />';
	 jQuery("#" + loadIntoElID).html(imgHtml);
	 jQuery("#" + loadIntoElID).load(URL, {}, function() {});
	 return true;
}


function showResponseMessage(e)
{
	alert(e);
	jQuery('#response').html(e);
}

/* Not working properly...
jQuery.fn.initAjaxForm = function() {
	this.submit(function(){
		jQuery.post(this.getAttribute("action"),jQuery(this).serialize(),function(data,status){
		if(data.result == 'success' || data.result == 'fail')
			showResponseMessage(data.message);
		else
			showResponseMessage('Oops... something went wrong');
		}, 'json');
		return false;
	});
	return this;
}
*/
jQuery.fn.updateStatus = function(e) {
	alert(jQuery(this)[0].id);
	return this;	
}