//ContextMenu.pjs T=46 var cmv=0;var cmpv=-1;function GCCME(c){var CM=document.getElementById("CME");if(CM==null&&c){var CM=document.createElement("table");CM.id="CME";CM.style.visibility="hidden";CM.style.position="absolute";CM.style.left="0px";CM.style.top="0px";CM.cellPadding="2";CM.cellSpacing="0";CM.border="0";CM.style.borderStyle="solid";CM.style.borderColor="#c0c0c0";CM.style.borderWidth="1px";CM.style.padding="2px";CM.bgColor="#ffffff";CM.style.zIndex="2";document.body.appendChild(CM);var CMS=document.createElement("div");CMS.id="CMS";CMS.style.backgroundColor="#808080";CMS.style.visibility="hidden";CMS.style.position="absolute";CMS.style.top="0px";CMS.style.left="0px";CMS.style.zIndex="1";document.body.appendChild(CMS);}return CM;}function BCM(DA,CB){var CM=GCCME(1);if(CM==null){return;}if(CM.style.visibility=="visible"){HCM();}CM.CMCB=CB;while(CM.rows.length){CM.deleteRow(0);}var hi=0;for(var i=0;hi==0&&i";}else{C=R.insertCell(0);C.width="11";C.innerHTML=(DA[i][1]==0?"":"\"\"");C=R.insertCell(1);C.innerHTML=(DA[i][2]==null?"":"\""+DA[i][3]+"\"");C=R.insertCell(2);C.className="cmenu";C.noWrap=true;C.innerHTML=DA[i][3];C=R.insertCell(3);C.width="5";R.id="CMC"+DA[i][0];R.style.cursor="default";R.onclick=dCMIC;R.onmousedown=dCMIMD;R.onmouseover=dCMIMOv;R.onmouseout=dCMIMOt;}}}function SCM(x,y){var CM=GCCME(0);var CMS=document.getElementById("CMS");if(CM&&CM.rows.length){if(x+CM.offsetWidth>document.body.clientWidth+document.body.scrollLeft-22){x=document.body.clientWidth+document.body.scrollLeft-CM.offsetWidth-22;}if(x<0){x=0;}if(y+CM.offsetHeight>document.body.clientHeight+document.body.scrollTop-22){y=document.body.clientHeight+document.body.scrollTop-CM.offsetHeight-22;}if(y<0){y=0;}if(CMS){CMS.style.width=(CM.offsetWidth-3)+"px";CMS.style.height=(CM.offsetHeight-3)+"px";CMS.style.left=(x+5)+"px";CMS.style.top=(y+5)+"px";CMS.style.visibility="visible";}CM.style.left=x+"px";CM.style.top=y+"px";CM.style.visibility="visible";cmv=1;cmpv=-1;}}function HCM(){var CM=GCCME(0);if(CM){CM.style.visibility="hidden";cmv=0;}var CMS=document.getElementById("CMS");if(CMS){CMS.style.visibility="hidden";}}function dCMMD(event){event.stopPropagation();event.preventDefault();return false;}function dCMIMD(event){event.stopPropagation();event.preventDefault();return false;}function dCMIC(event){var T=event.target;var CM=GCCME(0);while(T!=null&&(T.nodeType!=1||T.tagName!="TR")){T=T.parentNode;}if(T&&CM){CM.CMCB(T.id.substr(3,T.id.length));}HCM();event.stopPropagation();event.preventDefault();return false;}function dCMIMOv(event){var T=event.target;while(T!=null&&(T.nodeType!=1||T.tagName!="TR")){T=T.parentNode;}if(T){T.style.backgroundColor="#c0c0c0";if(cmpv!=-1){T.offsetParent.rows[cmpv].style.backgroundColor="#ffffff";}cmpv=T.rowIndex;}event.stopPropagation();event.preventDefault();return false;}function dCMIMOt(event){var T=event.target;while(T!=null&&(T.nodeType!=1||T.tagName!="TR")){T=T.parentNode;}if(T){T.style.backgroundColor="#ffffff";if(cmpv==T.rowIndex){cmpv=-1;}}event.stopPropagation();event.preventDefault();return false;}function dCMKD(event){var a=0;if(cmv){var CM=GCCME(0);var R=CM.rows[cmpv==-1?0:cmpv];switch(event.keyCode){case 27:a=1;HCM();break;case 38:case 40:if(cmpv!=-1){CM.rows[cmpv].style.backgroundColor="#ffffff";}do{cmpv-=(39-event.keyCode);}while(cmpv>=0&&cmpv=CM.rows.length){cmpv=CM.rows.length-1;}CM.rows[cmpv].style.backgroundColor="#c0c0c0";a=1;break;}}if(a){event.stopPropagation();event.preventDefault();return false;}return true;}function dCMKP(event){var a=0;if(cmv){var CM=GCCME(0);var R=CM.rows[cmpv==-1?0:cmpv];switch(event.keyCode){case 10:case 13:if(R.id.substr(0,3)=="CMC"){CM.CMCB(R.id.substr(3,R.id.length));HCM();}a=1;break;case 27:a=1;HCM();break;}}if(a){event.stopPropagation();event.preventDefault();return false;}return true;} //*ContextMenu T=46