function debug( aStr ) {
//	document.getElementById("debug").innerHTML=aStr;
//	document.body.innerHTML="<PRE>" + aStr + "<PRE>";
	var w = window.open("Authenticating.asp");
	w.document.write(aStr);
}
function show_props(obj, obj_name) {
	var result = "props:<BR>";
	for (var i in obj) {
		try {
			if( typeof obj[i] == "object" ) {
				result += obj_name + "." + i + " = Nested OBject <BR>\n";
			}
			else {
				result += obj_name + "." + i + " = " + obj[i] + "<BR>\n" ;
			}
		}catch(e) {
			result += i + " = Security Exception<BR>\n";
		}
	}

	return result;
}



// Jeff G.  2003-04-20.  Used to read menu from wei-pipeline or from XML file on LINK server.
function readURL(targetURL) {
    var xmlHttpMenu = new ActiveXObject("Microsoft.XMLHTTP");

    xmlHttpMenu.open("GET", targetURL, false);
    xmlHttpMenu.send();
    return xmlHttpMenu.responseText;
}

// Test if browser is blocking popups
function testPopup() {

		viewit="";
		win = window.open(viewit,"ViewWindow","toolbar=0,menubar=0,height=1,width=1,resizeable=0,scrollbars=0,left=1200,top=1200");

		if (!win) {
			alert("It appears that you have your browser set to block popup windows. In order to use the LINK System please set your browser to allow popup windows from this site.")
			}
		else {
			win.close()
			}
	}