function iterProps(ObjRef) {
    try {
    		if (ObjRef === null || "" == ObjRef) { throw -1; }
    		//var propVal = "";
    		//alert("In iterProps!\n" + ObjRef);
    		
    		var dispHTML = "<table>";
    		for (var property in ObjRef) {
    			dispHTML += "<tr>";
    			dispHTML += "<td>" + property + "</td>";
    			dispHTML += "<td>" + ObjRef[property] + "</td>";
    			dispHTML += "</tr>";
    		}
    		dispHTML += "</table>";
    		
    		popInfoWindow("DeeBug JS Object Properties",dispHTML);
    } catch(errNbr) {
		 switch(errNbr) {
			 case -1: alert("(-1): iterProps(): person__Array is null."); break;
			 default: alert("(DfltErr): iterProps(): " + errNbr.description);
		 }
	}
}


function popInfoWindow(title,innerStuff){
	try {
    		if (innerStuff === null || "" == innerStuff) { throw -1; }
    		if (title === null || "" == title) { throw -2; }
    		
    		//---- ARGs descript: ----- URL, window name, features string
    		var testwindow = window.open("", title,"resizable=1,scrollbars=1,width=800,height=500");
		testwindow.moveTo(400,200);
		testwindow.document.write('<H1>DeeBug Output:</H1><hr/>' + innerStuff + '<hr/>');  
    
    } catch(errNbr) {
		 switch(errNbr) {
			 case -1: alert("(-1): popInfoWindow(): innerStuff arg null or empty"); break;
			 case -2: alert("(-2): popInfoWindow(): title arg null or empty"); break;
			 default: alert("(DfltErr): popInfoWindow(): " + errNbr.description);
		 }
	}
}
