//javascript functions used in project
function update(item) {
	itemCode = item.name;
	quantity = item.options[item.selectedIndex].value;

	document.location.href = 'index.php?cart=update&item='+itemCode+'&quantity='+quantity;
}

function showDiv(divID) {
	var div = document.getElementById(divID);
	div.style.visibility = "visible";
}

function hideDiv(divID) {
	var div = document.getElementById(divID);
	div.style.visibility = "hidden";
}

function clearBox(box) {
	if(box.value==box.defaultValue) {
		box.value = "";
	}
}