function HandlePhotosData(xTxt){
		xXML = xConvert(xTxt);
		GlArrPhotos = new Array();
		GlPhotos = 0;
		if(xXML.length > 0)
		{
			GlPhotos = xXML.length;
			for(x=0;x<xXML.length;x++)
			{
				GlArrPhotos[x] = new Array();
				GlArrPhotos[x][0] = xmlDoc.getElementsByTagName("photo_id")[x].childNodes[0].nodeValue;
				GlArrPhotos[x][1] = xmlDoc.getElementsByTagName("book_id")[x].childNodes[0].nodeValue;
				GlArrPhotos[x][2] = xmlDoc.getElementsByTagName("photo_name")[x].childNodes[0].nodeValue;
				GlArrPhotos[x][3] = xmlDoc.getElementsByTagName("photo_desc")[x].childNodes[0].nodeValue;
				GlArrPhotos[x][4] = xmlDoc.getElementsByTagName("small")[x].childNodes[0].nodeValue;
				GlArrPhotos[x][5] = xmlDoc.getElementsByTagName("large")[x].childNodes[0].nodeValue;
				GlArrPhotos[x][6] = xmlDoc.getElementsByTagName("photo_x")[x].childNodes[0].nodeValue;
				GlArrPhotos[x][7] = xmlDoc.getElementsByTagName("photo_y")[x].childNodes[0].nodeValue;
			}
		}
}
function HandleBooksData(xTxt){
		xXML = xConvert(xTxt);
		GlArrBooks = new Array();
		GlBooks = 0;
		if(xXML.length > 0)
		{
			GlBooks = xXML.length;
			for(x=0;x<xXML.length;x++)
			{
				GlArrBooks[x] = new Array();
				GlArrBooks[x][0] = xmlDoc.getElementsByTagName("book_id")[x].childNodes[0].nodeValue;
				GlArrBooks[x][1] = xmlDoc.getElementsByTagName("book_desc")[x].childNodes[0].nodeValue;
				GlArrBooks[x][2] = xmlDoc.getElementsByTagName("book_image")[x].childNodes[0].nodeValue;
				GlArrBooks[x][3] = xmlDoc.getElementsByTagName("book_group")[x].childNodes[0].nodeValue;
				GlArrBooks[x][4] = xmlDoc.getElementsByTagName("book_name")[x].childNodes[0].nodeValue;
				GlArrBooks[x][5] = xmlDoc.getElementsByTagName("book_folder")[x].childNodes[0].nodeValue;
			}
		}
}

function HandleUsersData(xTxt){
		xXML = xConvert(xTxt);
		GlArrBooks = new Array();
		GlBooks = 0;
		if(xXML.length > 0)
		{
			GlBooks = xXML.length;
			for(x=0;x<xXML.length;x++)
			{
				GlArrBooks[x] = new Array();
				GlArrBooks[x][0] = xmlDoc.getElementsByTagName("book_id")[x].childNodes[0].nodeValue;
				GlArrBooks[x][1] = xmlDoc.getElementsByTagName("book_desc")[x].childNodes[0].nodeValue;
				GlArrBooks[x][2] = xmlDoc.getElementsByTagName("book_image")[x].childNodes[0].nodeValue;
				GlArrBooks[x][3] = xmlDoc.getElementsByTagName("book_group")[x].childNodes[0].nodeValue;
				GlArrBooks[x][4] = xmlDoc.getElementsByTagName("book_name")[x].childNodes[0].nodeValue;
				GlArrBooks[x][5] = xmlDoc.getElementsByTagName("book_folder")[x].childNodes[0].nodeValue;
			}
		}
}
