var IE = document.all?true:false if (!IE) document.captureEvents(Event.MOUSEMOVE) var tmpMouseX = 0 var tmpMouseY = 0 var MouseX = 0 var MouseY = 0 var clickX = 0 var clickY = 0 var scrnX = 0 var scrnY = 0 document.onmousemove = getMouseXY; function getMouseXY(e) { if (IE) { tmpMouseX = event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft tmpMouseY = event.clientY + document.body.scrollTop + document.documentElement.scrollTop scrnX = event.screenX; scrnY = event.screenY; } else { tmpMouseX = e.pageX tmpMouseY = e.pageY scrnX = e.screenX; scrnY = e.screenY; } if (scrnX < 0){scrnX = 0} if (scrnY < 0){scrnY = 0} if (tmpMouseX < 0){tmpMouseX = 0} if (tmpMouseY < 0){tmpMouseY = 0} MouseX = parseInt(tmpMouseX) MouseY = parseInt(tmpMouseY) return true } function ShowPopup(hoverPopupID) { hp = document.getElementById(hoverPopupID); if(clickX==0) clickX = MouseX; if(clickY==0) clickY = MouseY; var tmpClickX = clickX; var tmpClickY = clickY; hp.style.top = (tmpClickY - 10) + "px"; hp.style.left = (tmpClickX + 10) + "px"; hp.style.visibility = "Visible"; if(ajxTrList!='') { document.getElementById(ajxTrList).style.backgroundColor = "#CCCCCC"; } } function HidePopup(hoverPopupID) { hp = document.getElementById(hoverPopupID); hp.style.visibility = "Hidden"; if(ajxTrList!='') { document.getElementById(ajxTrList).style.backgroundColor = "#FFFFFF"; } } //*********** AJAX Object *************// var ajxReq, ajxVarHandleHttpResponse; var ajxDivID, ajxListName, ajxFrmName, ajxModuleDir; var ajxTrList = ''; var globalUrl = "http://www.openroadhire.co.uk/Global"; function DsAjax() { var ajxUrl, ajxMethod, ajxParams, varHandleHttpResponse; this.initAjaxRequest = function () { this.ajxUrl = ""; this.ajxMethod = "GET"; this.ajxParams = ""; ajxVarHandleHttpResponse = eval("this.defaultGetResponseData"); if(window.XMLHttpRequest) ajxReq = new XMLHttpRequest(); else if (window.ActiveXObject) ajxReq = new ActiveXObject("Microsoft.XMLHTTP"); else alert("Your browser does not support XmlHttp"); }; this.setAjaxUrl = function (ajxUrl) {this.ajxUrl = ajxUrl;}; this.setAjaxMethod = function (ajxMethod) {this.ajxMethod = ajxMethod;}; this.setAjaxParams = function (ajxParams) {this.ajxParams = ajxParams;}; this.setQueryString = function (queryString) {this.ajxParams = queryString;}; this.setFinalReadyStateFunction = function (varHandleHttpResponse) {ajxVarHandleHttpResponse = eval(varHandleHttpResponse)}; this.setDivID = function (divID) {ajxDivID = divID;}; this.setAjaxParamsByForm = function (frm) { var params = ""; var paramArr = "document." + frm + ".elements"; paramArr = eval(paramArr); paramArrLen = paramArr.length; for(var i=0; i