
function displayWaitBanner(message) {
	
	document.body.style.cursor = 'wait';

	var newSpan = document.createElement('div');
	var newSpan1 = document.createElement('div');
	newSpan.appendChild(newSpan1);
	var newSpanText = document.createTextNode(message);
	newSpan1.appendChild(newSpanText);
	document.body.appendChild(newSpan);

	newSpan.setAttribute('id','waitBanner');
	newSpan.style.display = "block";
	newSpan.style.position = "absolute";
	newSpan1.style.position = "absolute";

	newSpan.className = "waitbanner";
	newSpan.style.verticalAlign = "bottom";
 
  var frameWidth =0 ;
  var frameHeight =0;   
	if (self.innerWidth)
        {
		 frameWidth = self.innerWidth;
		 frameHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		 frameWidth = document.documentElement.clientWidth;
		 frameHeight = document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		 frameWidth = document.body.clientWidth;
		 frameHeight = document.body.clientHeight;
	}
	else 
	{
	return;
	}

         var bannerWidth = frameWidth*0.5;
         var bannerHeight = frameHeight*0.5;

	newSpan.style.width = ""+(bannerWidth)+"px";
	newSpan.style.height = ""+(bannerHeight)+"px";

	newSpan.style.left = ""+(frameWidth/4)+"px";
	newSpan.style.top = ""+(frameHeight/4)+"px";
	newSpan1.style.top = "45%";
        newSpan1.style.left = 0;
        newSpan1.style.width = ""+(bannerWidth-5)+"px";
        newSpan1.style.textAlign = "center";

//	alert (newSpan.outerHTML);
	
}


