var hwnd;
function openwin( img , w , h , title ) {
	if( hwnd != null )
	hwnd.close();
	hwnd = window.open( img , "" , "toolbar=no , location=no , directories=no , resizable=no , width=" + w + " , height=" + h );
	hwnd.document.open();
	hwnd.document.write("<html>");
	hwnd.document.write("<head>");
	hwnd.document.write("<title>" + title + "</title>");
	hwnd.document.write("</head>");
	hwnd.document.write("<body bgcolor=#ffffff bottommargin=0 leftmargin=0 marginheight=0 marginwidth=0 rightmargin=0 topmargin=0 style='border:0px;'>");
	hwnd.document.write("<table align=center width=100% height=100% cellspacing=0 cellpadding=0 border=0>");
	hwnd.document.write("<tr><td><img src='" + img + "' border=0></td></tr>");
	hwnd.document.write("</table></body></html>");
	hwnd.document.close();
}
function __debug(arr,level) {var dumped_text = "";if(!level) level = 0;var level_padding = "";for(var j=0;j<level+1;j++) level_padding += "    ";if(typeof(arr) == 'object') { for(var item in arr) {var value = arr[item];if(typeof(value) == 'object') { dumped_text += level_padding + "'" + item + "' ...\n";dumped_text += dump(value,level+1);} else {dumped_text += level_padding + "'" + item + "' => \"" + value + "\"\n";}}} else { dumped_text = "===>"+arr+"<===("+typeof(arr)+")";}return dumped_text;}
