// Show the debug window
function showDebug()
{
	window.top.debugWindow =
	window.open("", "Debug", "left=0,top=0,width=300,height=700,scrollbars=yes,"+"status=yes,resizable=yes");
	window.top.debugWindow.opener = self;
// open the document for writing
	window.top.debugWindow.document.open();
	window.top.debugWindow.document.write("<html><head><title>Debug Window</title></head><body><pre>\n");
}