+
+function plc_debug (txt,value) {
+ window.console.log (txt + ' => ' + value);
+}
+
+function plc_element (txt,elem) {
+ var message=txt + ':';
+ message += ' type=' + elem.nodeName;
+ message += ' id=' + elem.id;
+ message += ' cls=' + elem.className;
+ window.console.log (message);
+}
+
+/* lists all attributes - or the specified one -
+ * verbose means the attribute value gets printed as well */
+function plc_introspect (txt,obj,verbose,attribute) {
+ window.console.log ('=== beg intro ' + txt);
+ for (var prop in obj) {
+ if ( (attribute === undefined) || ( prop == attribute ) )
+ if (verbose)
+ window.console.log (prop + '=' + obj[prop]);
+ else
+ window.console.log (prop);
+ }
+ window.console.log ('=== end intro ' + txt);
+}
+