1 var debugWindow = null;
2 function debug(text, reverse) {
6 time = "-"; //new Date();
9 $('debug').innerHTML = time + " " + text + "<br>"+ $('debug').innerHTML;
11 $('debug').innerHTML += time + " " + text + "<br>";
14 function hideDebug() {
16 debugWindow.destroy();
20 function showDebug() {
21 if (debugWindow == null) {
22 debugWindow = new Window('debug_window', {height:100, top:300, left:500, zIndex:1000, opacity:0.6, showEffect: Element.show, resizable: true, title: "Debug"})
23 debugWindow.getContent().innerHTML = "<div id='debug' style='padding:3px'></div>";
28 function clearDebug() {
31 $('debug').innerHTML = "";