<!--
function findLivePageWidth() {
   if (window.innerWidth !=null) return window.innerWidth;
   if (document.body.clientWidth !=null) return document.body.clientWidth;
   return (null);
}

var timID=0;
//function popUp(eee,oID){
//	if(isDHTML){
//		if(timID==0){ timID=setTimeout('popUp2(eee,oID)',600); } // about a half-second delay
//		else {
//			clearTimeout(timID);
//			domStyle=findDOM(oID,1);
//			state=domStyle.visibility;
//			if(state=="visible" || state=="show") popUp2(eee,oID); //assumes timID is still set!
//			timID=0; //this must stay at end of this if() block!
//		}
//	}
//}

function popUp(evt,objectID){ //popUp2
   if(isDHTML){
//alert("evt="+evt);
//alert("evt.type="+evt.type);
//alert("evt.clientY="+evt.clientY);
//alert("evt.pageY="+evt.pageY);
//alert("evt.y="+evt.y);
      var livePageWidth = findLivePageWidth();
	  var sct = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop; // [TV]
      domStyle = findDOM(objectID,1);
      dom = findDOM(objectID,0);
      state = domStyle.visibility;
      if(dom.offsetWidth) elemWidth = dom.offsetWidth; //ie
      else{ if(dom.clip.width) elemWidth=dom.clip.width; } //moz
      if((state=="visible" || state=="show")){  //  && timID!=0
      	  domStyle.visibility="hidden";
      }else{
         if(evt.pageY){ // mozilla, et al
            topVal = evt.pageY + 20; //move 20px further down from cursor // [TV] move above input field  -85
            leftVal = evt.clientX - (elemWidth / 2);
         }else{
            if(evt.y){ // ie, et al
               topVal = evt.clientY + 20 + sct; //move 20px further down from cursor  // [TV] move above input field  -85
               leftVal = evt.clientX - (elemWidth / 2) + 4;
            }
         }
         if(leftVal < 2){ leftVal = 2; } 
         else{ if((leftVal + elemWidth) > livePageWidth){ leftVal = leftVal - (elemWidth / 2); }
         }
	  domStyle.top = topVal + 'px'; // Positions the element from the top 
	  domStyle.left = leftVal + 'px'; // Positions the element from the left
	  domStyle.visibility = "visible"; // Makes the element visible
      }
   }
}
//-->

