///////////////////////////////////
/////// PLAIN TEXT EXAMPLE  ///////
///////////////////////////////////
function getPlainInfoGetMethod(){
	sendRequest('ajax.php', 'm=plain&a=getinfo', 'infoPlainGot', 'GET', 'An error occured while trying to get plain info text with GET method. Please inform admin staff.')
}

function getPlainInfoPostMethod(){
	sendRequest('ajax.php', 'm=plain&a=getinfo', 'infoPlainGot', 'POST', 'An error occured while trying to get plain info text with POST method. Please inform admin staff.')
}

function infoPlainGot(request){
	alert(request.responseText);
}

///////////////////////////////////
////////// XML EXAMPLE  ///////////
///////////////////////////////////
function getXMLInfoGetMethod(){
	sendRequest('ajax.php', 'm=xml&a=getinfo', 'infoXMLGot', 'GET', 'An error occured while trying to get info. Please inform admin staff.')
}

function getXMLInfoPostMethod(){
	sendRequest('ajax.php', 'm=xml&a=getinfo', 'infoXMLGot', 'POST', 'An error occured while trying to get info. Please inform admin staff.')
}

function infoXMLGot(request){
	alert(request.responseXML.getElementsByTagName('info')[0].firstChild.data);
}
