function openNW(url, Wname) {
	var Wwidth = Math.floor(screen.width*0.6);
	var Wheight = Math.floor(screen.height*0.5);
	var Nw = window.open(url, Wname, "width="+Wwidth+",height="+Wheight+",scrollbars=yes,status=yes,resizable=yes");
	Nw.focus();
	return false;
}
function printNW() {
	var url = self.location.protocol+"//"+self.location.host+self.location.pathname+self.location.search;
	if (self.location.search != '') {
		url += '&print=on';
	} else {
		url += '?print=on';
	}
	var wname = 'Print';
	Wheight = Math.floor(screen.height*0.6);
	Nw = window.open(url, wname, "width=700,height="+Wheight+",scrollbars=yes,menubar=yes,status=yes,resizable=yes");
	Nw.focus();
	return false;
}
