/* 
I find a lot of this AJAX stuff a bit of a hype.  Lots of people have
been using similar things long before it became "AJAX".  And it really
isn't as complicated as a lot of people make it out to be.  Here is a
simple example from one of my apps.  First the Javascript:*/



// function for dynamic prototypal Inheritance
function object(o) {
			
			function F() {}
			F.prototype = o;
			return new F();
			
			}


// gets an XMLHTTP request object
function createRequestObject() {
    var ro;
    var browser = navigator.appName;
    if(browser == "Microsoft Internet Explorer"){
        ro = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
        ro = new XMLHttpRequest();
    }
    return ro;
}



function AjaxObject(id) 
{


 return {
         
         //properties
         http: createRequestObject(),

         //Methods
         sndReq: function(url,func) {    
          	 this.http.open('get', url);
	         this.http.onreadystatechange = func;     
	         this.http.send(null);
         }

   };

}