function openImage(url) {
	zoom = open("","","width=740,height=580,resizable=yes,scrollbars=yes")
	zoom.document.location.href = url
}
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
}
function addToBasket2() {
	if (document.variants.var1.options[document.variants.var1.selectedIndex].value == "" || document.variants.var2.options[document.variants.var2.selectedIndex].value == "") {
		alert("Please select product options.")
		return false
	}
	return true
}
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")
}

