function showProdpics(linkElement) {
	openPW(
		linkElement.href,
		"BestingolfDetailPopup",
		690, 635
	);
}

function showProdpic(artno) {
	openPW(
		"/templates/content/product/prodPicPopup.html?artno=" + artno.replace("#", "%23"),
		"BestingolfDetailPopup",
		690, 635
	);
}

function showAvailability(linkElement) {
	openPW(
		linkElement.href,
		"AvailPopup",
		260, 280
	);
}

function showAvailability(artno) {
	openPW(
		"/templates/content/product/availPopup.html",
		"AvailPopup",
		260, 280
	);
}

function showGloveSize() {
	openPW(
		"/html/product/gloveSize.html",
		"GloveSize",
		560, 360
	);
}

function showColor() {
	openPW(
		"/html/product/color.html",
		"Color",
		670, 400
	);
}

function showPrint(url) {
	openPWResize(
		url,
		"PRINT",
		670, 450, true
	);

	return false;
}

function openPW(href, title, width, height) {
	var x = (screen.availWidth - width)/2;
	var y = (screen.availHeight - height)/2;
	var w = window.open(href, title, "width=" + width + ",height=" + height + ",top=" + y + ",left=" + x);
	w.focus();
}

function openPWResize(href, title, width, height,menubar) {
	var x = (screen.availWidth - width)/2;
	var y = (screen.availHeight - height)/2;
	menubar2 = (menubar) ? ',menubar=yes':'';
	var w = window.open(href, title, "width=" + width + ",height=" + height + ",top=" + y + ",left=" + x + ",scrollbars=yes,resizable=yes"+menubar2);
	w.focus();
}

function closePW() { self.close(); }
