function open_new_window(url, windowname)
{
	debug("entering onw");
	window.open(url, windowname, 'width=300,height=200,menubar=yes,status=yes,location=yes,toolbar=yes,scrollbars=yes,resizable=yes');
	debug("window=" + windowname);
	debug("leaving onw");
}
