function showLoadingMessage() {
	var div = document.getElementById("messageDiv");

	if (div == null) {
	    div = document.createElement("div");
	    document.body.appendChild(div);
	    div.id = "messageDiv";
	    div.style.cssText='width:140px; z-index:9999; background-color: #FFFF00; layer-background-color: #FFFF00';	    
	    div.style.position = "absolute";

	    div.innerHTML='<table cellspace="2" width="100%"><tr><td  style="font-size: 12px" width="100%" nowrap="nowrap">'+loadingMessage+'</td></tr></table>';
	}
	
    //div.style.top = ((document.body.scrollHeight+ document.body.scrollTop)/2)+"px";
    //div.style.left = ((document.body.scrollWidth+ document.body.scrollLeft-140)/2)+"px";
    div.style.top=document.body.scrollTop+"px";
    div.style.left=document.body.scrollLeft+"px";
    div.style.display = "";

	var iFrame=getIframe();
	divBlock(div, iFrame);

}
function getIframe(){
	var iFrame=document.getElementById("divIframe");
	if(iFrame==null){
		iFrame=document.createElement("iframe");
		document.body.appendChild(iFrame);
		iFrame.id="divIframe";
		iFrame.setAttribute("src", "javascript:;");

		iFrame.setAttribute("frameborder","0");
		iFrame.setAttribute("scrolling","no");

		iFrame.style.position = "absolute";
	}

	return iFrame;
}
function hideMessage(){
	if(document.getElementById("messageDiv")){
		document.getElementById("messageDiv").style.display='none';
		document.getElementById("divIframe").style.display='none';
	}
}
