
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);

/* 	var bannerDiv = document.createElement('span');

	var newTable = document.createElement('table');
	newTable.style.display = "block";

	newTable.style.border="2px solid #dddddd";
	newTable.style.width="100%";
	var newRow = document.createElement('tr');

	newRow.style.height="100%";

	var newCell = document.createElement('td');
	newCell.style.backgroundColor="#ff0000";
	var bannerText = document.createTextNode(message);
	newCell.appendChild(bannerText);

	newRow.appendChild(newCell);
	newTable.appendChild(newRow);

	bannerDiv.appendChild(newTable);

	document.body.appendChild(bannerDiv);

*/

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

	newSpan.className = "waitbanner";
	newSpan.style.verticalAlign = "bottom";

	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;

        bannerWidth = frameWidth*0.5;
        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);
	
}

