var addressDisplayDivId = "busy_indicator";

function insertText(_message)
{

	var divElt = document.getElementById(addressDisplayDivId);
	var childDiv = document.createElement("div");
	var textNode = document.createTextNode(_message);
        childDiv.style.backgroundColor = "red";
        childDiv.style.fontFamily = "monospace";
 
	childDiv.appendChild(textNode);
	divElt.appendChild(childDiv);
}

function displayImage(_divID)
{
	var divElt = document.getElementById(_divID);
        var childDiv = document.createElement("img");
        childDiv.src = "/images/indicator.white.gif";
        divElt.appendChild(childDiv); 
}


function insertTextByDiv(_divID,_message)
{

	var divElt = document.getElementById(_divID);
	var childDiv = document.createElement("div");
	var textNode = document.createTextNode(_message);
        //childDiv.style.backgroundColor = "red";
        //childDiv.style.fontFamily = "monospace";
 
	childDiv.appendChild(textNode);
	divElt.appendChild(childDiv);
}

function clearByDiv(_divID)
{
	var divElt = document.getElementById(_divID);
        var childDiv = divElt.childNodes.item(0);
        divElt.removeChild(childDiv); 
}


function clearData()
{
	var divElt = document.getElementById(addressDisplayDivId);
        var childDiv = divElt.childNodes.item(0);
        divElt.removeChild(childDiv); 
}
		
