/***********************************************
* Floating DIV - Get the absolute posistion of the object
***********************************************/
function findPosX(obj)
{
	var curleft = 0; 
	if(obj.offsetParent)
			while(1) 
			{
				curleft += obj.offsetLeft;
				if(!obj.offsetParent)
					break;
				obj = obj.offsetParent;
			}
	else if(obj.x)
			curleft += obj.x;
	return curleft;
}
	
function findPosY(obj)
{
	var curtop = 0;
	if(obj.offsetParent)
			while(1)
			{
				curtop += obj.offsetTop;
				if(!obj.offsetParent)
					break;
				obj = obj.offsetParent;
			}
	else if(obj.y)
			curtop += obj.y;
	return curtop;
}

function ShowPopupDiv(strDiv,strCont)
{
	var obj, cObj;
	cObj = document.getElementById(strCont);
	obj = document.getElementById(strDiv);
	var x = new String();
	var y = new String();
	x = findPosX(cObj) - obj.offsetWidth + cObj.offsetWidth + 17;
	y = findPosY(cObj) - obj.offsetHeight;
	x+="px";
	y+="px";
	obj.style.left = x;
	obj.style.top= y;

	obj.style.visibility = "visible"
}

function HidePopupDiv(strDiv)
{
	var obj;
	obj = document.getElementById(strDiv);
	obj.style.visibility = "hidden"
}


