function confirmURL(confirmMessage, url) {
	if (confirm(confirmMessage)) { location.href = url; }
	return false;
}
function productImage(url, name, extra) {
	attributes = "toolbar=no, location=no, directories=no, menubar=no, copyhistory=no";
	if (extra != "") {
		attributes = attributes + ", " + extra;
	}
	window.open(url, name, attributes);
	
	return false;
}
function confirmPopup(url, name, extra) {
	if (confirm("A new window is about to open.")) { 
		attributes = "toolbar=no, location=no, directories=no, menubar=no, copyhistory=no";
		if (extra != "") {
			attributes = attributes + ", " + extra;
		}
		window.open(url, name, attributes);
	}
	return false;
}

function hideUnhide(fieldID) {
	field = document.getElementById(fieldID);
	if (field.style.display == 'block') { 
		field.style.display = 'none';
	}
	else {
		field.style.display = 'block';
	}
}
