

function ajax(ajax_file,func) {

	this.ajax_file = ajax_file;
	xml_obj = null ;
	
	this.handler = function () {
		if ( xml_obj.readyState != 4 ) return ;
		//run the result function
		//var result = xml_obj.responseText ;
		func(xml_obj.responseText);
	}

	if (typeof window.ActiveXObject != 'undefined' ) {	// if IE
		xml_obj = new ActiveXObject("Microsoft.XMLHTTP");
		xml_obj.onreadystatechange = this.handler ;
	} else {			// not IE
		xml_obj = new XMLHttpRequest();
		xml_obj.onload = this.handler ;
	}
	
	xml_obj.open( "GET", this.ajax_file, true );
	xml_obj.send( null );
	
} // of ajax
