Parse XmlHttp Response

// Parse XmlHttp Response
function parseResponse(responseXML, attributename) {

    debugger;
    xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.async = "false";
    xmlDoc.loadXML(responseXML);
    x = xmlDoc.getElementsByTagName("a:KeyValuePairOfstringanyType");
    for (i = 0; i < x.length; i++) {
        if (x[i].childNodes[0].text == attributename) {
            //we decode the base 64 contents and alert the HTML of the Iframe
            alert(x[i].childNodes[1].text);
        }

    }
}