// JavaScript Document
var isNS = (navigator.appName == "Netscape");
function getIEXCoord(imgElem) {
        xPos = eval(imgElem).offsetLeft;
        tempEl = eval(imgElem).offsetParent;
        while (tempEl != null) {
                xPos += tempEl.offsetLeft;
                tempEl = tempEl.offsetParent;
        }
        return xPos;
}

function getIEYCoord(imgElem) {
        yPos = eval(imgElem).offsetTop;
        tempEl = eval(imgElem).offsetParent;
        while (tempEl != null) {
                yPos += tempEl.offsetTop;
                tempEl = tempEl.offsetParent;
        }
        return yPos;
}
function getXCoord(imgID) {
		if (isNS) xPos = imgID.x;
        else xPos = getIEXCoord(imgID)
		return xPos;
}

function getYCoord(imgID) {
  if (isNS) yPos = imgID.y;
  else yPos = getIEYCoord(imgID);
  return yPos;
}
/*
function show_xy(e,n,w,h)
{
		
		document.getElementById('layer1').style.left = getXCoord(document.getElementById(n))-w;
		document.getElementById('layer1').style.top = getYCoord(document.getElementById(n));
		document.getElementById('layer1').style.width = w;
		document.getElementById('layer1').style.height = h;
}
*/