function showAjaxLoading(left){
	if ( left === undefined ) left="50%";
	document.body.style.cursor = 'wait';
	l=document.createElement("div");
	l.setAttribute("id","ajaxLoading");
	l.setAttribute("style","position:absolute; left:"+left+"; top:50%; z-index=1000;");
	l.innerHTML="<table border='0' height='100%'><tr><td style='vertical-align:middle'><img src='/images/ajax-loader.gif'/></td></tr><tr><td><span style='margin-left:10px; font-weight:bold; color: grey'>Loading...</span></td></tr></table>";
	document.body.appendChild(l);
};
function hideAjaxLoading(){
	if (document.getElementById("ajaxLoading") !== undefined) {
        try {
    		document.body.removeChild(document.getElementById("ajaxLoading"));
        } catch(err) {
        };
	};
	document.body.style.cursor = 'default';
};

