var obj_xmlhttp;

/*@cc_on @*/
/*@if (@_jscript_version >= 5)
	try {
		obj_xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
	try {
		obj_xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	} catch (e) {
		obj_xmlhttp = false;
	}
}
@else
	obj_xmlhttp = false;
@end @*/

if(!obj_xmlhttp && typeof(XMLHttpRequest) != "undefined") {
	try {
		obj_xmlhttp = new XMLHttpRequest();
	} catch (e) {
		obj_xmlhttp = false;
	}
}

Array.prototype.inArray = function(value) {
	for(var i = 0; i < this.length; i++) {
		if(this[i] === value) return true;
	}
	return false;
};













function getElementTextNS(prefix, local, parentElem, index) {
    var result = "";
    if (prefix && isIE) {
        // IE/Windows way of handling namespaces
        result = parentElem.getElementsByTagName(prefix + ":" + local)[index];
    } else {
        // the namespace versions of this method 
        // (getElementsByTagNameNS()) operate
        // differently in Safari and Mozilla, but both
        // return value with just local name, provided 
        // there aren't conflicts with non-namespace element
        // names
        result = parentElem.getElementsByTagName(local)[index];
    }
    if (result) {
        // get text, accounting for possible
        // whitespace (carriage return) text nodes 
        if (result.childNodes.length > 1) {
            return result.childNodes[1].nodeValue;
        } else {
            return result.firstChild.nodeValue;    		
        }
    } else {
        return "n/a";
    }
}