<!--
var rpcCall = function(url) {
	this.init(url);
};

rpcCall.prototype.onSuccess = function() {
	return false;  
}

rpcCall.prototype.call = function(url) {
	this.init(url);
}

rpcCall.prototype.init = function(url){
	var xmlObj = {};
	var obj = this;
	var process = function() {
		if ( xmlObj.readyState !=4 ) return;
		xmlObj.waiting = false;
		var result = false;
		try{
			if (xmlObj.status == "200") {
				var result = xmlObj.responseText;
			} else {
				var result = "<div class='D_error'><p>An error has occured. Please try again in a few minutes.</p>" + 
					         "<p>If this problem persists, please contact support@meetupalliance.com.</p>" +
							 "<p>Error: " + xmlObj.status + " " + xmlObj.statusText + "</p></div>";
			}
		}catch (e){
			return;
		}
		obj.onSuccess( result );
	}

	var call = function(){
		if (xmlObj.waiting) return;
		xmlObj.open( "GET", xmlObj.url, true );
		xmlObj.send( null );
		xmlObj.waiting = true;
		var obj = this;
		window.setTimeout( function() {
				if (!xmlObj.waiting) return;
				xmlObj.abort();
				}, "30000");
	}
	if (typeof window.ActiveXObject != 'undefined' ) {
		xmlObj = new ActiveXObject("Microsoft.XMLHTTP");
		xmlObj.onreadystatechange = process;
	}
	else {
		xmlObj = new XMLHttpRequest();
		xmlObj.onload = process;
	}      
	xmlObj.url = url;
	call();
}

-->
