﻿if ( !window.Utils )
    window.Utils = {};
    
Utils.XMLUtil = function() {}
Utils.XMLUtil.prototype.getResponseDocument = function(str)
{
    var doc = null;
    // create appropiate XML document
    if (window.ActiveXObject)
    {
        // IE 6 (and 7)
        doc = new ActiveXObject("Microsoft.XMLDOM");
        doc.loadXML(str);
    }
    else
    {
        // Firefox and others
        var parser = new DOMParser();
        doc = parser.parseFromString(str, "text/xml");
    }
    return doc;
}