var win = null; var theCallendar=null; function NewWindow(mypage,w,h) { TopPosition = Math.floor(Math.random()*25); LeftPosition = Math.floor(Math.random()*25); settings = 'height='+(h==''?getAvaibleHeight(100):h)+',width='+(w==''?'1024':(w=='fullscreen'?getAvaibleWidth(50):w))+',top='+TopPosition+',left='+LeftPosition+',menubar=yes,scrollbars=yes,resizable=yes,status=no'; win = window.open(mypage,'_blank',(isMobile()?null:settings)) if(win.window.focus){win.window.focus();} } function getAvaibleHeight(theMargin) { if (screen.availHeight&&!isNaN(parseInt(screen.availHeight))&&parseInt(screen.availHeight)>0) return parseInt(screen.availHeight)-theMargin; else return 700; } function getAvaibleWidth(theMargin) { if (screen.availWidth&&!isNaN(parseInt(screen.availWidth))&&parseInt(screen.availWidth)>0) return parseInt(screen.availWidth)-theMargin; else return 1024; } function doClock() { window.setTimeout( "doClock()", 500); self.status = "ITCube Software 2000-2023. All rights reserved."; } doClock(); function hidecallendar() { if (theCallendar) theCallendar.style.visibility="hidden"; } function openCallendar(e,type) { document.onclick=hidecallendar; parent.document.onclick=hidecallendar; theCallendar=eval(document.getElementById(type)); if (theCallendar.style.visibility=="visible") { theCallendar.style.visibility="hidden"; } else { theBody=document.body; themenuoffsetX=theBody.scrollLeft; themenuoffsetY=theBody.scrollTop; theCallendar.style.left=themenuoffsetX + e.clientX-(getIEVersionNumber()>0?e.offsetX:5)-5; theCallendar.style.top=themenuoffsetY + e.clientY-(getIEVersionNumber()>0?e.offsetY:10)+15 theCallendar.style.visibility="visible"; } return false; } function getIEVersionNumber() { if (/MSIE (\d+\.\d+);/.test(navigator.userAgent) || /Trident.+rv:(\d+\.\d+)/.test(navigator.userAgent)) return parseFloat(new Number(RegExp.$1)); else return 0; } function getAjaxResponse(theUrl) { var oReq; if (window.XMLHttpRequest) { // IE7 or Mozilla oReq = new XMLHttpRequest(); } else { // IE6 oReq = new ActiveXObject("MSXML2.XMLHTTP.3.0"); } oReq.open("GET", theUrl.replace(/!URL!/, "itcubeSQL.jsp"),false); oReq.send(null); if (oReq.status&&oReq.status=='200') return oReq.responseText; else return ""; } function isMobile() { var uagent = navigator.userAgent.toLowerCase(); var ismobile = false; var list = ['blackberry','nokia','panasonic','sharp','sie-','sonyericsson','symbian','windows ce','philips','pocket pc','sagem','samsung','iphone','ipod','ipad','android']; for(var d=0;d