<!--
if(typeof(CQL)=='undefined')CQL={};CQL.OC=[];CQL.GetElementById=function(id){return document.getElementById(id);};CQL.GetXMLHttpRequest=function(){try{req=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{req=new ActiveXObject("Microsoft.XMLHTTP");}catch(oc){req=null;}}if(!req&&typeof XMLHttpRequest!="undefined"){req=new XMLHttpRequest();}return req;};CQL.GenerateUniqueObjectID=function(){var uid=0;while(uid==0){uid=Math.random()*1000000;if(typeof(CQL.OC[uid])!='undefined')uid=0;}CQL.OC[uid]=null;return uid;};CQL.CRect=function(left,top,right,bottom){if(top==null){this.left=CQL.GetRealLeft(left);this.top=CQL.GetRealTop(left);this.right=this.left+left.offsetWidth;this.bottom=this.top+left.offsetHeight;}else{this.left=left;this.top=top;this.right=right;this.bottom=bottom;}this.width=right-left;this.height=bottom-top;this.intersect=function(rect){if(this.bottom<rect.top)return false;if(this.top>rect.bottom)return false;if(this.right<rect.left)return false;if(this.left>rect.right)return false;return true;};this.toString=function(){return"left: "+this.left+"; "+"top: "+this.top+"; "+"right: "+this.right+"; "+"bottom: "+this.bottom+";";};};CQL.GetRealTop=function(el){yPos=el.offsetTop;tempEl=el.offsetParent;while(tempEl!=null){yPos+=tempEl.offsetTop;tempEl=tempEl.offsetParent;}return yPos;};CQL.GetRealLeft=function(el){xPos=el.offsetLeft;tempEl=el.offsetParent;while(tempEl!=null){xPos+=tempEl.offsetLeft;tempEl=tempEl.offsetParent;}return xPos;};CQL.ToggleDDLsOverlappingDIV=function(div,bShow){if(typeof(document.getElementsByTagName)=='undefined')return;var divrect=new CQL.CRect(div);eSelects=document.getElementsByTagName("SELECT");for(var i=0;i<eSelects.length;i++){var rec=new CQL.CRect(eSelects[i]);if(!bShow&&divrect.intersect(rec)){eSelects[i].style.visibility="hidden";}else{eSelects[i].style.visibility="visible";}}};CQL.AddEvent=function(objSource,strEventName,fncFunction){var objOldEvent=objSource[strEventName];if(typeof objOldEvent!="function"){objSource[strEventName]=fncFunction;}else{objSource[strEventName]=function(e){objOldEvent(e);fncFunction(e);};}};CQL.MakeStringJSSafe=function(str){return str.replace(/\\/ig,'\\\\').replace(/\'/ig,"\\'").replace(/\"/ig,'\\"');};CQL.IsEnter=function(keyCode){return(keyCode==13);};