function GetXCoord(sel) {
  var X=0;
  do {X+=sel.offsetLeft} while ((sel=sel.offsetParent)!=null);
  return(X);
}

function GetYCoord(sel) {
  var Y=0;
  do {Y+=sel.offsetTop} while ((sel=sel.offsetParent)!=null);
  return(Y);
}

function ShowDiv(DivID, AnchorID)
{
	var N = document.getElementById(DivID);
	var P = document.getElementById(AnchorID);
	N.style.left = GetXCoord(P) + P.width;
	N.style.top = GetYCoord(P);
	N.style.visibility='visible';
}

function ShowDivUnder(DivID, AnchorID)
{
	var N = document.getElementById(DivID);
	var P = document.getElementById(AnchorID);
	N.style.left = GetXCoord(P);
	N.style.top = GetYCoord(P) + P.offsetHeight ;
	N.style.visibility='visible';
}

function HideDiv(DivID)
{
	document.getElementById(DivID).style.visibility='hidden';
}
