	var tm1;
	var tm2;
	var status;
	status = false;
	
	function Trace(message)
	{
		dbox = document.getElementById('debugLog');
		dbox.innerHTML += message + '<br />'; 
	}
	
	function doShow(objid)
	{
//		Trace('show');
		clearTimeout(tm1);
		clearTimeout(tm2);		
		document.getElementById('popup').style.display='block'; 
		list = document.getElementById('companylist_temp');
		tlist = document.getElementById('companylist');		
		
		Move('companylist_temp','companylist', 50);
	}
	
	function Move(from, to, speed)
	{
		flist = document.getElementById(from);
		tlist = document.getElementById(to);		

		var childrens = flist.childNodes;
		var len = childrens.length;
		if (len > 0)
		{
			var child = childrens.item(0);
       		var newNode = tlist.appendChild(child);
       		tm = setTimeout('Move( \'' + from + '\', \'' + to + '\', ' + speed + ')', speed);       				
		}
	}
	
	function doHide(objid)
	{	
//		Trace('hide');
		tm1 = setTimeout("document.getElementById('popup').style.display='none'",500); 	
		tm2 = setTimeout('Move(\'companylist\',\'companylist_temp\', 0)',1000);
	}
