function sack(file){this.AjaxFailedAlert="Your browser does not support the enhanced functionality of this website, and therefore you will have an experience that differs from the intended one.\n";this.requestFile=file;this.method="POST";this.URLString="";this.encodeURIString=true;this.execute=false;this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(t){this.xmlhttp=null}}if(!this.xmlhttp&&typeof XMLHttpRequest!="undefined")this.xmlhttp=new XMLHttpRequest;if(!this.xmlhttp){this.failed=true}};this.setVar=function(e,t){if(this.URLString.length<3){this.URLString=e+"="+t}else{this.URLString+="&"+e+"="+t}};this.encVar=function(e,t){var n=encodeURIComponent(e)+"="+encodeURIComponent(t);return n};this.encodeURLString=function(e){varArray=e.split("&");for(i=0;i<varArray.length;i++){urlVars=varArray[i].split("=");if(urlVars[0].indexOf("amp;")!=-1){urlVars[0]=urlVars[0].substring(4)}varArray[i]=this.encVar(urlVars[0],urlVars[1])}return varArray.join("&")};this.runResponse=function(){eval(this.response)};this.runAJAX=function(e){this.responseStatus=new Array(2);if(this.failed&&this.AjaxFailedAlert){alert(this.AjaxFailedAlert)}else{if(e){if(this.URLString.length){this.URLString=this.URLString+"&"+e}else{this.URLString=e}}if(this.encodeURIString){var t=(new Date).getTime();this.URLString=this.encodeURLString(this.URLString);this.setVar("rndval",t)}if(this.element){this.elementObj=document.getElementById(this.element)}if(this.xmlhttp){var n=this;if(this.method=="GET"){var r=this.requestFile+"?"+this.URLString;this.xmlhttp.open(this.method,r,true)}else{this.xmlhttp.open(this.method,this.requestFile,true)}if(this.method=="POST"){try{this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(i){}}this.xmlhttp.send(this.URLString);this.xmlhttp.onreadystatechange=function(){switch(n.xmlhttp.readyState){case 1:n.onLoading();break;case 2:n.onLoaded();break;case 3:n.onInteractive();break;case 4:n.response=n.xmlhttp.responseText;n.responseXML=n.xmlhttp.responseXML;n.responseStatus[0]=n.xmlhttp.status;n.responseStatus[1]=n.xmlhttp.statusText;n.onCompletion();if(n.execute){n.runResponse()}if(n.elementObj){var e=n.elementObj.nodeName;e.toLowerCase();if(e=="input"||e=="select"||e=="option"||e=="textarea"){n.elementObj.value=n.response}else{n.elementObj.innerHTML=n.response}}n.URLString="";break}}}}};this.createAJAX()}