var ErduAjax = new Object();
ErduAjax.createRequest = function() {
	if (window.XMLHttpRequest) {
	    this.ajax = new XMLHttpRequest();
	    if (this.ajax.overrideMimeType) {
			this.ajax.overrideMimeType('text/plain');
	    }
	} else if (window.ActiveXObject) {
	    try {
			this.ajax = new ActiveXObject("Msxml2.XMLHTTP");
	    } catch (e) {
			try {
			    this.ajax = new ActiveXObject("Microsoft.XMLHTTP");
			
			} catch (e1) {}
	    }
	}
};

ErduAjax.submit = function(url, methord, isAsync) {
	/*this.createRequest();
	this.ajax.onreadystatechange = this.callback;
	this.ajax.open(methord, url, isAsync);
	this.ajax.send(null);*/
	if(methord && methord.toLowerCase() == 'post'){
		this.ajax = $.post(url, null, this.callback, 'html');
	} else {
		this.ajax = $.get(url, null, this.callback, 'html');
	}
	/*alert(Ajax.Request);
	this.ajax = Ajax.Request( url, { method: methord, parameters: null, onComplete: function(){alert('f');} });*/
};
ErduAjax.callback = function(req) {
	if(!ErduAjax.ajax){
		ErduAjax.ajax = req;
	}
	if (ErduAjax.ajax.readyState == 4) {
        if (ErduAjax.ajax.status == 200) {
            ErduAjax.modifyDom();
        }
    }
};

