// Simple browser sniffing needed here
var isNav = (navigator.appName == "Netscape");
// Output list of properties for the object
//
// invocation, in the "location" field:
//	javascript:dumpProps("document.layers.ltbluebox")
function dumpProps(objName) {
   var obj = eval(objName);
   var msg = "";
   var count = 0;
   var maxProps = 10;
   // Loop through properties of the object
   for (var i in obj) {
      if (i != "outerHTML" && i != "outerText" && i != "innerHTML" && i != "innerText" && i != "domain") {
         msg += objName + "." + i + "=" + obj[i] + "\n";
         if (count > maxProps) {
            // Output a batch
            if (isNav) java.lang.System.out.println(msg);
            else alert(msg);
            msg = "";
            count = 0;
            continue;
         }
         count++;
      }
   }
   // Output any leftovers
   if (isNav) {
      java.lang.System.out.println(msg);
   } else {
      alert(msg);
   }
}

