

	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	// COMMON LIBRARY / NEGORA © 2008
	//
	// Description: Functions to perform common tasks.
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
	
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	// GENERAL
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
		/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		// COMMON INITIALIZATION
		/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
		function initCommon () {
			
		}
		
		
		/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		// IT TRANSFORMS A SIMPLE ERROR / OK XML OBJECT INTO A LIST
		//
		// _xml								XML object																		O
		/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		
		function xmlResponseToList (_xml) {
			
			var list_ans = new Array ();
			var node = XGET (_xml, "/ php [1] / * [1]") [0];
			
			list_ans ["type"] = node.tagName;
			list_ans ["msg"] = node.firstChild.nodeValue;
			
			if (node.tagName == "error" && node.getAttributeNode ("field") != null) list_ans ["field"] = GET (node.getAttribute ("field"));
			return list_ans;
			
		}
	
	
	
	
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	// SPECIFIC
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
			
	