function hl1on(tdCell) { tdCell.style.backgroundColor = '#D7D7D7' }
function hl1off(tdCell) { tdCell.style.backgroundColor = '#F7F7F7' }
function hl2on(tdCell) { tdCell.style.backgroundColor = '#C1BDB4' }
function hl2off(tdCell) { tdCell.style.backgroundColor = '#E9E7E0' }

function highlightMenuGo(tdCell, onOff, url) {
	highlightMenu(tdCell, 0, onOff)
	window.location.href = url
}
function bookmark(url, description) {
	netscape="Netscape User's hit CTRL+D to add a bookmark to this site."
	if (navigator.appName=='Microsoft Internet Explorer') {
		window.external.AddFavorite(url, description);
	} else if (navigator.appName=='Netscape') {
		alert(netscape);
	}
}
function tellFriend(url, uid) {
	open("/cic/tellFriend.php?url="+url+"&uid="+uid,"","width=550,height=510")
}
function addToBasket(form) {
	var isEmpty = true
	var isNumber = true
	for (i=0; i<form.elements.length; i++) {
		if (form.elements[i].name.substr(0, 3) == "qty") {
			if (form.elements[i].value != "") isEmpty = false
			if (form.elements[i].value != "" && !form.elements[i].value.match(/^\d+$/)) isNumber = false
		}
	}
	if (isEmpty) {
		alert("Please enter a quantity for items you need.")
		return false
	}
	if (!isNumber) {
		alert("Quantity field is not a number.\nPlease enter proper value.")
		return false
	}
	return true
}

