pyujax = new function(){
	function createXMLHttpRequest( obj ){
		var AjaxObj = null;
		try{
			AjaxObj = new XMLHttpRequest();
		}catch( e ){
			try{
				AjaxObj = new ActiveXObject("Msxml2.XMLHTTP");
			}catch( e ){
				try{
					AjaxObj = new ActiveXObject("Microsoft.XMLHTTP");
				}catch( e ){
					return null;
				}
			}
		}
		if( AjaxObj ){
			AjaxObj.onreadystatechange = function(){
				if( httpObj.readyState == 4 && httpObj.status == 200 ){
					obj.innerHTML = httpObj.responseText;
				}
			};
		}
		return AjaxObj;
	}
	this.onGetData = function( obj, _url, _query, _method ){
		httpObj = createXMLHttpRequest( obj );
		if( httpObj ){
			if( _method.toUpperCase() == "GET" ){
				httpObj.open( "GET", _url + "?" + _query, true );
				httpObj.send( null );
			}else{
				httpObj.open( "POST", _url, true );
				httpObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
				httpObj.send( _query );
			}
		}
	}
};

