var XmlValidation = {
        IsValid: function(xml) {

			if (xml.getElementsByTagName("status")[0] == null) {return false;}
			var status=xml.getElementsByTagName("status")[0].firstChild.nodeValue;
			if (status != 'success') {return false;}
			return true;
        },
        getErrorMessage: function(xml) {
			if (xml.getElementsByTagName("message")[0] == null) {return false;}
			var status=xml.getElementsByTagName("status")[0].firstChild.nodeValue;
			if (status != 'success') {
				return error_message;
				return xml.getElementsByTagName("message")[0].firstChild.nodeValue;
			}
        }
}
