/*DEBUG*/

var dwin = null;
function debug(msg) {
if ((dwin == null) || (dwin.closed)) {
dwin = window.open("","debugconsole","scrollbars=yes,resizable=yes,height=100,width=300");
dwin.document.open("text/html", "replace");
}
dwin.document.writeln(''+msg+'<br />');
dwin.scrollTo(0,10000);
dwin.focus();
// dwin.document.close();  // uncomment this if you want to see only last message , not all the previous messages
}
