function popWin(url, width, height, name, properties) {
	var winProperties = properties;
	if (!winProperties) winProperties = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes';
	if (width > 0) winProperties = winProperties + ',width=' + width;
	if (height > 0) winProperties = winProperties + ',height=' + height;
	if(!name) name = "popWin";
	var win = window.open(url, name, winProperties);
	win.focus();
}

function help(url) {
	popWin(url, 675, 675, 'helpWin');
}

function printWindow() {
	var newLoc = document.location.href;
	newLoc = newLoc.replace(/#[A-Za-z0-9]*/ig, "");
	newLoc = newLoc + ((newLoc.indexOf("?") > -1) ? "&" : "?");
	newLoc = newLoc + "printable=true";
	popWin(newLoc, "_printWin", 700, 0, "toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes")
}
