function getPos(inputElement) {
    var coords =  new Object();
    coords.x = 0;
    coords.y = 0;
    try {
        targetElement = inputElement;
        if(targetElement.x && targetElement.y) {
            coords.x = targetElement.x;
            coords.y = targetElement.y;
        } else {
            if(targetElement.offsetParent) {
                coords.x += targetElement.offsetLeft;
                coords.y += targetElement.offsetTop;
                while(targetElement = targetElement.offsetParent) {
                    coords.x += targetElement.offsetLeft;
                    coords.y += targetElement.offsetTop;
                }
            } else {
                //alert(\"Could not find any reference for coordinate positioning.\");
            }
        }
        return coords;
    } catch(error) {
        //alert(error.msg);
        return coords;
    }
}

var old,skn,iex=(document.all),yyy=-1000;
var ns4=document.layers
var ns6=document.getElementById&&!document.all
var ie4=document.all

function popupThumbnailComments(elementId,msg){
  imgElement = document.getElementById(elementId);
  var content="<div class=boxpopup>"+msg+"</div>";

  document.getElementById("pdq").innerHTML=content;
  document.getElementById('pdq').style.position = 'absolute';
  document.getElementById('pdq').style.left = getPos(imgElement).x + 138 + 'px';
  document.getElementById('pdq').style.top = getPos(imgElement).y + 'px';

  hideshow('pdq',1);
}

function remove_popup(){
  hideshow('pdq',0);
}

