
function clearInfoBox(){
	var b = document.getElementById('infoBox');
	while( b.firstChild ){ b.removeChild(b.firstChild);}		    
}

function working( txt ){
	clearInfoBox();
	document.body.style.cursor='wait';
	buildContainer('workingmsgcontainer','busy', txt );
}		
	
function stoppedworking(){
	document.body.style.cursor='default';
	clearInfoBox();
}	
		
function buildContainer(id,icon,txt){
	var img = new Image();
		img.src = '/lefthandpath/images/icons/'+ icon +'.gif';
		img.hspace = 4;
		img.align = 'absmiddle';
	var h2 = document.createElement('h2');
		h2.innerHTML = txt;
	var container = document.createElement('div');
		container.id = id;
		container.appendChild(img);
		container.appendChild(h2);			
	var b = document.getElementById('infoBox');
		b.appendChild(container);
}
