function sack(file){this.xmlhttp=null;this.resetData=function(){this.method="POST";this.queryStringSeparator="?";this.argumentSeparator="&";this.URLString="";this.encodeURIString=true;this.execute=false;this.element=null;this.elementObj=null;this.requestFile=file;this.vars=new Object();this.responseStatus=new Array(2);};this.resetFunctions=function(){this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.onError=function(){};this.onFail=function(){};};this.reset=function(){this.resetFunctions();this.resetData();};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e1){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e2){this.xmlhttp=null;}}
if(!this.xmlhttp){if(typeof XMLHttpRequest!="undefined"){this.xmlhttp=new XMLHttpRequest();}else{this.failed=true;}}};this.setVar=function(name,value){this.vars[name]=Array(value,false);};this.encVar=function(name,value,returnvars){if(true==returnvars){return Array(encodeURIComponent(name),encodeURIComponent(value));}else{this.vars[encodeURIComponent(name)]=Array(encodeURIComponent(value),true);}}
this.processURLString=function(string,encode){encoded=encodeURIComponent(this.argumentSeparator);regexp=new RegExp(this.argumentSeparator+"|"+encoded);varArray=string.split(regexp);for(i=0;i';ajaxURL=url
ajaxDIV=div
ajax(url,'GET',callBack);}
function ajax(url,method,functionName){ajaxObject=null
ajaxObject=new sack();ajaxObject.method=method;ajaxObject.onLoading=whenLoading;ajaxObject.onLoaded=whenLoaded;ajaxObject.onInteractive=whenInteractive;ajaxObject.onCompletion=whenCompleted;ajaxObject.onError=whenError;ajaxObject.onFail=whenError;ajaxObject.OnCompleteFunctionCall=functionName;ajaxObject.runAJAX(url);}
function wOpen(urlVar,optionsVar){var newWindow=window.open(urlVar,'',optionsVar)}
function textFunctions(obj,Command){obj=findObject(obj)
obj.setActive()
callCmd(Command)}
function callCmd(sFormatString){document.execCommand(sFormatString)}
function setValue(obj,value){obj=findObject(obj)
obj.value=value}
function setHTML(obj,value){obj=findObject(obj)
obj.innerHTML=value}
function preg_replace(tsearch,treplace,text){var t=text.toString()
var sch=new RegExp(tsearch,'gi')
return t.replace(sch,treplace)}
function d(_name,_str){obj=findObj('debug'+_name)
if(obj){if(is_ie)obj.innerText=_str
if(is_op)obj.innerText=_str
if(is_ff)obj.textContent=_str}}
function dp(_name,_str){obj=findObj('debug'+_name)
if(obj){if(is_ie)obj.innerText+=_str
if(is_op)obj.innerText+=_str
if(is_ff)obj.textContent+=_str}}
function findObj(n,d){var p,i,x;x=null
if(!d)d=document;if(!x&&d.getElementById)
x=d.getElementById(n);return x;}
function findObject(n,d){var p,i,x;x=null
if(!d)d=document;if(!(x=d[n])&&d.all)
x=d.all[n];for(i=0;!x&&i=c.x&&l<=c.x+c.w)&&(t>=c.y&&t<=c.y+c.h))return true;else return false;}
function box(obj){if(obj==null)return false
var c={}
c.x=getx(obj)
c.y=gety(obj)
c.w=getw(obj)
c.h=geth(obj)
return c;}
function getwx(obj){if(obj==null)return 0;var x=0;do{x+=obj.offsetLeft;obj=obj.offsetParent;}while(obj);x-=scrollLeft();return x;}
function getwy(obj){if(obj==null)return 0;var y=0;do{y+=obj.offsetTop;obj=obj.offsetParent;}while(obj);y-=scrollTop();return y;}
function getcx(obj){if(obj==null)return 0;var x=0;do{x+=obj.offsetLeft;obj=obj.offsetParent;}while(obj);return x;}
function getcy(obj){if(obj==null)return 0;var y=0;do{y+=obj.offsetTop;obj=obj.offsetParent;}while(obj);return y;}
function getx(obj){if(obj==null)return 0;var x=0;do{x+=obj.offsetLeft;obj=obj.offsetParent;}while(obj);return x;}
function gety(obj){if(obj==null)return 0;var y=0;do{y+=obj.offsetTop;obj=obj.offsetParent;}while(obj);return y;}
function getw(obj){if(obj==null)return 0;var width=obj.offsetWidth;if(width>0)return width;if(!obj.firstChild)return 0;return obj.lastChild.offsetLeft-obj.firstChild.offsetLeft+getw(obj.lastChild);}
function geth(obj){if(obj==null)return 0;var height=obj.offsetHeight;if(height>0)return height;if(!obj.firstChild)return 0;return obj.firstChild.offsetHeight;}
function SetEvent(object,event,functionName){var func=null
eval("func = function anonymous()\n{\n"+functionName+"\n}")
object[event]=func}
function s(str){window.status=str;}
function allCheckBox(form,cbs,stat){var cbs=findObject(cbs)
if(cbs.length>0){for(i=0;i0){for(box in cbs)
cbs[box].checked=self.checked}else
cbs.checked=self.checked}}}
function isCheckedBox(form,cbs){if(form[cbs].length>0){for(i=0;i