﻿var gtObjPopUp=null;var gtPopMenuOn=0;function gtPopUp(evt,objectID){if(gtPopMenuOn==1)gtPopHide();document.onclick=gtPopHide;var evt=(evt)?evt:((window.event)?event:null);gtObjPopUp=document.getElementById(objectID);xPos=evt.clientX
yPos=evt.clientY;if(xPos+gtObjPopUp.offsetWidth>Geometry.getViewportWidth())xPos=xPos-gtObjPopUp.offsetWidth;if(yPos+gtObjPopUp.offsetHeight>Geometry.getViewportHeight())yPos=yPos-gtObjPopUp.offsetHeight;if(xPos<0)xPos=0;if(yPos<0)yPos=0;xPos+=Geometry.getHorizontalScroll();yPos+=Geometry.getVerticalScroll();gtObjPopUp.style.left=xPos+'px';gtObjPopUp.style.top=yPos+'px';gtObjPopUp.style.visibility='visible';}
function gtPopHide(){if(gtPopMenuOn==0){gtPopMenuOn=1;return}else{gtObjPopUp.style.visibility='hidden';gtObjPopUp=null;gtPopMenuOn=0;document.onclick=null;}}
