// 10x FOR THIS SCRIPT TO CBFL ;-)
//LOADER
//document.write("<div id='loader' style='display:none;background:#CC0000;color:#FFFFFF;position:absolute;right:0px;top:0px;padding:5px;'><b>Loading...</b></div>");

//DA FOKIN' CLASS :)

var buffer = new Array();
//-----------------------------------------------------------------
function getHttp(){
	var xmlHttp = null;
	try {
		xmlHttp = new XMLHttpRequest();
	} catch (e) {
		var progIds = ['MSXML2.XMLHTTP', 'Microsoft.XMLHTTP', 'MSXML2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0'];
		var success = false;
		for (var iterator = 0; (iterator < progIds.length) && ( ! success); iterator ++) {
			try {
				xmlHttp = new ActiveXObject(progIds[iterator]);
				success = true;
			} catch (e) {}
		}
		if ( ! success ) {
			return null;
		}
	}
	return xmlHttp;	
}
//-----------------------------------------------------------------
function call(url,handler,data){
	//document.getElementById('loader').style.display = 'block';
	http = this.getHttp();
	if(!http) alert('No HTTP Object');
	http.onreadystatechange = function(){							
		if (http.readyState == 4) {					
			if (http.status == 200) {
				if (http.responseXML != null) {
					//document.getElementById('loader').style.display = 'none';
					return eval(handler+'(http.responseXML)');					
				}
			}
		}
		return false;
	};
	http.open("POST", url, true);
	http.send("");		
}	
//-----------------------------------------------------------------		



