				var elem = document.createElement("div"); 
				elem.style.position = 'absolute';				
				elem.style.height = 17; 
				elem.style.paddingLeft = "3px"; 
				elem.style.paddingRight = "3px"; 
				elem.style.fontSize = "11px"; 
				elem.style.fontFamily = 'Arial, Verdana, Tahoma';
				elem.style.left = "350px"; 
				elem.style.top = "350px"; 
				//elem.style.border = "#000000 1px solid"; 
				//elem.style.backgroundColor = "Green"; 
				
				elem.style.color = "Red"; 
				elem.innerHTML = '<strong>Loading Data..</strong><br><img src="images/loader.gif" border="0" >';	
				//elem.innerHTML = 'Loading Data...';  //add your message here 
				elem.style.visibility = 'hidden'; 
				document.body.insertBefore(elem, document.body.firstChild); 
				waitElement = elem; 
				
				waitElement.style.top="350px";
				
				function MoveWaitElement() 
				{

					var scrollYT, scrollXT;

					if (!waitElement)

						CreateWaitElement();

				if (typeof(window.pageYOffset) == "number") 
				{

					scrollYT = window.pageYOffset;
					scrollXT = window.pageXOffset;

				}

				else if (document.body && document.documentElement && document.documentElement.scrollTop) 
				{

					scrollYT = document.documentElement.scrollTop;
					scrollXT = document.body.scrollLeft;

				}

				else if (document.body && typeof(document.body.scrollTop) == "number") 
				{

				scrollYT = document.body.scrollTop;
				scrollXT = document.body.scrollLeft;

				}

				if (scrollX != scrollXT || scrollY != scrollYT) 
				{

					scrollX = scrollXT;
					scrollY = scrollYT;

					var width = document.body.clientWidth;
					waitElement.style.left = (document.body.clientWidth) ? (document.body.clientWidth-(waitElement.clientWidth))/2 : 0;
					waitElement.style.top = (document.body.clientHeight) ? (document.body.clientHeight-(waitElement.clientHeight))/2 + document.body.scrollTop : 0;

				}

			}
		
