/*
	DHTML Debug Console
	(c) 2004 Andrew Romashkin /andrew@advanware.com/

	Use debug('message') for output.
*/
var debugWindow;
function debug(message)
{
	if (!debugWindow || debugWindow.closed)
	{
		var w = 800;
		var h = 400;
		var l = 10;
		var t = 38;
		debugWindow = window.open("", "debug_window", "resizable=yes, scrollbars=yes, titlebar=no, location=no, menubar=no, toolbar=no, height=" + h + ", width=" + w + ", top=" + t + ", left=" + l);
		debugWindow.document.writeln('<TITLE>Debug Console - &copy; 2005 Sharm hardcoding</TITLE><STYLE type="text/css">body {margin:0; padding:4px; font-family:Tahoma,Arial,sans-serif; font-size:12px}</STYLE>');
	}
	var now = new Date();
	var timestamp = now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds();
	debugWindow.document.writeln("<BR> " + message + "<BR>");
	debugWindow.scrollBy(0, 600)
	debugWindow.focus();
}

