var GLOB_DEBUG_NONE=0;var GLOB_DEBUG_ERROR=1;var GLOB_DEBUG_WARN=3;var GLOB_DEBUG_NOTICE=5;var GLOB_DEBUG_TRACE=9;var GLOB_DEBUG_LEVEL=GLOB_DEBUG_NONE;var m_TaskList=new Array();var m_TaskIndex=0;var m_bLive=new Boolean(true);var myBackgroundColour='transparent';var m_MouseDownPos=new Object;m_MouseDownPos.X=0;m_MouseDownPos.Y=0;var m_SubmitReloadPending=new Boolean(false);var m_JobTitles=new Array('Manager','Accounts Manager','Marketing Manager', 'Sales Manager','Director','Accounts Director', 'Marketing Director','Sales Director','CEO','Clerk', 'Engineer','Purchaser');var m_PersonTitles=new Array('Mr','Mrs','Miss','Ms','Dr','Prof','Fr','Br','President');var m_CityNames=new Array('London','Glasgow','Edinburgh','Birmingham','Exeter', 'Okehampton','Coventry','Warwick','Bovey Tracy','Bodmin', 'Weymouth','Weston-Super-Mare', 'Plymouth','Truro','Falmouth','St Austell','Newton Abbot', 'Torquay','Painton','Teignbridge');var m_CountryNames=new Array('UK','England','Scotland','Wales','USA','Canada','France', 'Spain', 'Germany','Italy','Austria','Sweden','Estonia','Hungary', 'Poland','Slovenia','Czech Republic');var glob_bFirstException=true;function catchException(strMsg,e){if (glob_bFirstException) {alert(strMsg + e); glob_bFirstException=false; } } function jjDbgOut(level,strReporter,strMsg){if (level<=GLOB_DEBUG_LEVEL) {alert('DEBUG: ' + strReporter + ': ' + strMsg); } } function inspect(objTgt){var strVal=''; if(objTgt) {for(var Y1516088768 in objTgt) {strVal +=Y1516088768 + "\n" } } else {strVal='Not an object'; } alert(strVal); } function inspectAvailable(objTgt){var strVal=''; if(objTgt) {for (var Y1516088768 in objTgt) {if(objTgt.getAttribute&&objTgt.getAttribute(Y1516088768)) {strVal +=Y1516088768 + ": " + objTgt.getAttribute(Y1516088768) + "\n"; } } } else {strVal='Not an object'; } alert(strVal);}function getObject(objectId) {if(document.getElementById&&document.getElementById(objectId)) {return document.getElementById(objectId); } else if (document.all&&document.all(objectId)) {return document.all(objectId); } else if (document.layers&&document.layers[objectId]) {return document.layers[objectId]; } else {return false; }} function getChildWindow(rootWin,strName){var result=false; if(rootWin.name&&rootWin.name==strName) {result=rootWin; } else {if(rootWin.frames&&rootWin.frames.length&&rootWin.frames.length>0) {for(var i=0;i=0&&num0 &&obj.prevValue.length &&obj.value.length) {if(obj.prevValue.lengthiLength) {obj.value=obj.prevValue; } } obj.prevValue=obj.value; }}function viewPortHeight() {var hgt=0; if (typeof(window.innerHeight)=='number') {hgt=window.innerHeight; } else {if (document.documentElement&& document.documentElement.clientHeight) {hgt=document.documentElement.clientHeight; } else {if (document.body&&document.body.clientHeight) {hgt=document.body.clientHeight; } } } return hgt; }function getElementAttribute(obj,strAttrib){var result=null; if(obj) {if (eval ('obj.' + strAttrib) ) {eval ('result=obj.' + strAttrib); } else if (obj.getAttribute) {result=obj.getAttribute(strAttrib); } return result; }}function setElementAttribute(obj,strAttrib,attribValue){if(obj) {if (eval ('obj.' + strAttrib) ) {eval ('obj.' + strAttrib + '=' + attribValue + ';'); } else if (obj.setAttribute) {result=obj.setAttribute(strAttrib,attribValue); } }}function replaceElementClass(obj,strOld,strNew){if(obj) {if (!obj.className) {obj.className=strNew; } else if (strOld.length>0) {obj.className=obj.className.replace(new RegExp(strNew,'g'),''); } obj.className +=' ' + strNew; obj.className=obj.className.replace(/^\s*|\s*$/g,''); }}