function createInheritance(parent, child) {
	var item;
	for(item in parent) {
		if(!child[item]) {
			child[item] = parent[item];
			alert(item+"\n"+parent[item]);
		}else{alert(item);}
	}
}

function AjaxBase() {
	var xmlHttp = null;
	var dataXML = null;
	var dataText = null;
	var process = '';
	var processargs = '';

	if (window.ActiveXObject) {
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } else if (window.XMLHttpRequest) {
		xmlHttp = new XMLHttpRequest();
    }

    this.StateChange = function() {
		if(xmlHttp.readyState == 4) {
    		if(xmlHttp.status == 200) {
    			dataXML = xmlHttp.responseXML;
    			dataText = xmlHttp.responseText;
    			if (processargs != '') eval(processargs);
    			eval(process);
    		}
    	}
    }

    this.Read = function(url, method, query, onstatechange, args) {
    	process = onstatechange;
    	processargs = args;
    	if(method == 'get') {
    		url = url + query;
    	}
    	url = url +"&timeStamp=" + new Date().getTime();
    	xmlHttp.open(method, url, true);
    	xmlHttp.onreadystatechange = this.StateChange;
    	xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    	if(method=='post') {
    		xmlHttp.send(query);
    	}
    }

    this.getXML = function() {
    	return dataXML;
    }
}