function getXML(pId){
	var url = "_csoAjax.jsp";
	var params = "id="+pId;
	new Ajax.Request(url, {method: 'get', parameters: params, onComplete: parseXML, onError: ajStat('show', 'ÎØÈÁÊÀ'),onLoading: ajStat('show', 'ÇÀÃÐÓÇÊÀ')});
}

function parseXML(originalRequest) {
	ajStat('hide');
	var response = originalRequest.responseXML.documentElement;
	headerTags = response.getElementsByTagName('headerTags')[0].firstChild.data;
	innerTags = response.getElementsByTagName('innerTags')[0].firstChild.data;
	$('infoHdr').innerHTML=headerTags;
	$('infoCnt').innerHTML=innerTags;
	$('infoBox').style.top=document.body.scrollTop+250;
	Element.show('infoBox');
}

function ajStat(action, text) {
	var stat = document.getElementById('ajstat');
	switch (action) {
		case "show" :
			stat.innerHTML = text;
			stat.style.top = document.body.scrollTop;
			stat.style.visibility = 'visible';
			break;
		case "hide" : stat.style.visibility = 'hidden'; break;
	}
}

function closeInfoBox(pId) {
	Element.hide('infoBox');
	Element.removeClassName($('row'+pId), 'over');
}
