function showDiv(theDiv){
	if (document.getElementById) {
		var theContent = document.getElementById(theDiv);
		theContent.style.display = "block";
	}
	return;
} 

function hideTime(theDiv){
	theTime = setTimeout("hideDiv('" + theDiv + "');",2000);
}

function hideDiv(theDiv){
	if (document.getElementById) {
		var theContent = document.getElementById(theDiv);
		theContent.style.display = "none";
	}
	return;
}

function showOrHideDiv(theDiv)
{

   if (document.getElementById) 
   {
		var theContent = document.getElementById(theDiv);
		//alert(":" + theContent.style.display + " : " + theDiv);
		if (theContent.style.display == "none" || theContent.style.display == " " || theContent.style.display == null )
		{
		 //alert(1);
		    theContent.style.display = "block";
		}
		else
		{
		 //alert(2);
		   theContent.style.display = "none";
		}
		
		//alert(theContent.style.display + " : " + theDiv);
	}
	
	return false;

}

function showDivAtAnchor(divID, anchorID)
{
	if (document.getElementById) {
		var anchor = document.getElementById(anchorID);
		var left = anchor.offsetLeft;
		
		while ((anchor = anchor.offsetParent) != null) {
			left += anchor.offsetLeft;
		}
		
		anchor = document.getElementById(anchorID);
		var top = anchor.offsetTop;

		while ((anchor = anchor.offsetParent) != null) {
			top += anchor.offsetTop;
		}

		var div = document.getElementById(divID);
		
		div.style.top = top + "px";
		div.style.left = left + "px";
		div.style.display = "block";
	}
	return;
}