/* Copyright (c) 2008 Thomas M. Vaht. @version 1.03 */
var Ajax={Request:null,Data:new String(),Handlers:new Object(),RequestList:new Array(),Init:function(){if(window.XMLHttpRequest){try{Ajax.Request=new XMLHttpRequest()}catch(a){return false}}else{try{Ajax.Request=new ActiveXObject("Msxml2.XMLHTTP")}catch(a){try{Ajax.Request=new ActiveXObject("Microsoft.XMLHTTP")}catch(a){Ajax.Request=false}}}return},Encode:function(a){return escape(encodeURI(a))},Get:function(a){if(Ajax.Request==null){Ajax.Init()}Ajax.Request.open("GET",a,true);Ajax.Request.onreadystatechange=function(){switch(Ajax.Request.readyState){case 4:if(Ajax.Handlers.after!==undefined){Ajax.Handlers.after()}break;case 2:if(Ajax.Handlers.before!==undefined){Ajax.Handlers.before()}break}};Ajax.Request.send(null);return},Set:function(a){if(Ajax.Request==null){Ajax.Init()}Ajax.Request.open("POST",a,true);Ajax.Request.setRequestHeader("Content-type","application/x-www-form-urlencoded");Ajax.Request.send(Ajax.Data);Ajax.Request.onreadystatechange=function(){switch(Ajax.Request.readyState){case 4:if(Ajax.Handlers.after!==undefined){Ajax.Handlers.after()}break;case 2:if(Ajax.Handlers.before!==undefined){Ajax.Handlers.before()}break}};return}};
