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 search(category,personality,query,productid) {
	document.search.category.value = category;
	document.search.personality.value = personality;
	document.search.query.value = query;
	document.search.productid.value = productid;
	document.search.submit();
}

function s(category,personality,query,productid) {
	document.search.category.value = category;
	document.search.personality.value = personality;
	document.search.query.value = query;
	document.search.productid.value = productid;
	document.search.submit();
}

function remove_item(id) {
	document.remove.id.value = id;
	document.remove.submit();
}

function g_checkout() {
	if (document.tc.tc.checked) {
		document.gco.submit();
	} else {
		alert('You must agree to the Terms & Conditions before proceeding');
	}
}

function pp_checkout() {
	if (document.tc.tc.checked) {
		alert('Once you have made your payment please ensure that you either wait for the page to refresh back to our website, or click the link to return to merchant. Failure to do this could result in your order being delayed. Thank you.');
		document.paypal.submit();
	} else {
		alert('You must agree to the Terms & Conditions before proceeding');
	}
}

function tc() {
	termsWindow = window.open('/terms.html','terms','scrollbars=yes,toolbars=no,status=yes,width=600,height=600');
}

function pp() {
	privacyWindow = window.open('/pp.html','privacy','scrollbars=yes,toolbars=no,status=yes,width=600,height=600');
}

function makeoffer(id) {
	document.makeoffer.productid.value = id;
	document.makeoffer.submit();
}

function image(name) {
	var img = '/product_images/' + name;
	imageWindow = window.open(img,'image','scrollbars=yes,toolbars=no,status=yes,width=400,height=400');
}

function moreinfo(id) {
	var div = document.getElementById(id);
	var formname = document.getElementById('mi_' + id);
	less = unescape(formname.less.value);
	more = unescape(formname.more.value);
	if (div.innerHTML == less) {
		div.innerHTML = more;
	} else {
		div.innerHTML = less;
	}
}
