/**
 * Wrap propotype Ajax.Request
 */
function ajaxInvoke(url, params) {
	var myAjax = new Ajax.Request(url, params );
}

/**
 * Convert XML JSON Response to JavaScript object
 */
function extractAJAXObject(originalRequest) {
	if(originalRequest.responseXML != null){
		var childs = originalRequest.responseXML.documentElement.childNodes;
		for (i=0 ; i<childs.length ; i++) {
			if (childs[i].nodeName == 'body') {
				var body = "(" + XmlUtils.getContentAsString(childs[i]) + ")";
				return eval(body.unescapeHTML());
//				return eval('(' + XmlUtils.getContentAsString(childs[i]) + ')');
			}
		} 
	}
	return;
}
