
function CMsgResponse(aObj)
{
	var Obj = aObj;
	this.mainNode = null;
	
	if ( aObj && aObj.responseXML ) this.mainNode = aObj.responseXML.getElementsByTagName("response").item(0);
	
	// ==========================================================================================
	// getMessage function
	// ==========================================================================================
	this.getMessage = function()
	{
		return this.getParam("text");
	}
	
	// ==========================================================================================
	// getParam function
	// ==========================================================================================
	this.getParam = function(aParamName)
	{
		var msgNode = this.mainNode.getElementsByTagName("message")[0];
		if ( msgNode ) return msgNode.getAttribute(aParamName);
			else return "";
	}	
	
	// ==========================================================================================
	// isOk function
	// ==========================================================================================
	this.isOk = function()
	{
		return this.getMessage() == "ok";
	}
	
	


}


