function setInquiry(productID) {
	var cartContent;
	var shoppingCart = new Cookie(document, "ProductInquiry", 1);
	var itemFound, itemCount, tempContent;
	if(!shoppingCart.load()||!shoppingCart.productID) {
		shoppingCart.productID = productID;
		msg = "Item \"" + productID + "\" has been added to your inquiry list,\ndo you want to send inquiry now?\n\nClick OK to go to the contact form now\nor Click Cancel to send later";
		shoppingCart.store();
		if (confirm(msg)) document.location="contact.html";
	} else {
		tempContent=shoppingCart.productID.replace(productID, "");
		tempContent=tempContent.replace(/^\|\|/, "");
		tempContent=tempContent.replace(/\|\|$/, "");
		tempContent=tempContent.replace(/\|\|\|\|/, "||");
		if (tempContent==shoppingCart.productID) {
			shoppingCart.productID += "||" + productID;
			msg = "Product \"" + productID + "\" has been added to your inquiry list,\ndo you want to send inquiry now?\n\nClick OK to go to the contact form now\nor Click Cancel to send later";
			shoppingCart.store();
			if (confirm(msg)) document.location="contact.html";
		} else {
			shoppingCart.productID=tempContent;
			msg = "Product \"" + productID + "\" has been removed from your inquiry list.";
			shoppingCart.store();
			alert(msg);
		}			
	}
}

function displayInquiry() {
	var cartContent;
	var shoppingCart = new Cookie(document, "ProductInquiry", 1);
	var itemFound, itemCount, tempContent;
	if(shoppingCart.load()&&shoppingCart.productID) {
		tempContent=shoppingCart.productID.replace(/\|\|/g, "\n");
		document.forms[0].form_Comments.value="I would like to inquire information of the following item(s):\n\n" + tempContent + "\n";
	}
}

function clearInquiry() {
	var shoppingCart = new Cookie(document, "ProductInquiry", 1);
	shoppingCart.load();
	shoppingCart.productID="";
	shoppingCart.store();
	document.forms[0].reset();
}