function popUp(object,what,e,s) {
var lead = (document.layers) ? "<TABLE CELLPADDING='2' BORDER='0' ID='pT'><TR><TD CLASS='pink' width='300'>" : "<TABLE CELLPADDING='2' ID='pT'><TR><TD CLASS='pink' width='300'>" ;
if (object == 'pU2') var lead = (document.layers) ? "<TABLE CELLPADDING='2' BORDER='0' ID='pT'><TR><TD CLASS='pink2'>" : "<TABLE CELLPADDING='2' ID='pT'><TR><TD CLASS='pink'>";
var tail="</TD></TR></TABLE>";
var d = (document.layers) ? "document.layers[" + object + "]":"document.all[" + object +"]";
//what = "xPos>[" + event.x + "] yPos>[" + event.y + "]</TD></TR><TR><TD CLASS='pink'  WIDTH='100%' NOWRAP>scrollTop>[" + document.body.scrollTop + "] scrollLeft>[" + document.body.scrollLeft.y + "]";
// create document
 if (document.layers){
  document.layers[object].document.open();
  document.layers[object].document.write(lead+what+tail);
  document.layers[object].document.close();
 }
 if (document.all){
  document.all[object].innerHTML=lead+what+tail;
 }
//set position for NS and IE pop-up and display
 if (document.layers && document.layers[object] != null) {
  xPos=e.pageX + 10;
  yPos=e.pageY - 2;
  if (yPos + document.layers[object].document.height - self.pageYOffset > self.innerHeight){yPos = yPos - document.layers[object].document.height - 2}
  if (xPos + document.layers[object].document.width - self.pageXOffset > self.innerWidth){xPos = xPos - document.layers[object].document.width - 10}
   document.layers[object].moveTo(xPos,yPos);
   document.layers[object].visibility = 'visible';
 }
 else  {
  if (document.all) {
   xPos=event.x + 20;
   yPos=event.y  - 10;
   if (yPos + document.all['pT'].clientHeight - document.body.scrollTop > document.body.offsetHeight){yPos = yPos - (document.all['pT'].clientHeight - 10)}
   if (xPos + document.all['pT'].clientWidth - document.body.scrollLeft > document.body.offsetWidth){xPos = xPos - (document.all['pT'].clientWidth + 30)}
   document.all[object].style.pixelLeft = xPos + document.body.scrollLeft;
   document.all[object].style.pixelTop = yPos + document.body.scrollTop;
   document.all[object].style.visibility = 'visible';
  }
 }
 return true;
}
function hide(object)
{
 if (document.layers && document.layers[object] != null)
 document.layers[object].visibility = 'hidden';
 else if (document.all && document.all[object]){
  if (object == 'pU1'){document.all[object].innerHTML="";}
  document.all[object].style.visibility = 'hidden';
 }
}

