function addItem(strItem, strAuthor, strCost) {
		document.AddToCartForm.item.value="b-8818^"+strItem+"^"+strAuthor+"^"+strCost+"^1";
		document.AddToCartForm.submit();
}
function goPrevious() {
	strCatIndex = document.NavigationForm.Category.selectedIndex;
	intPosition = document.NavigationForm.Position.value;
	document.NavigationForm.CurrentCategory.value = strCatIndex;
	document.NavigationForm.MoveAction.value="MovePrev";
	document.NavigationForm.submit();
}

function goNext() {
	box = document.NavigationForm.Category.selectedIndex;
	intPosition = document.NavigationForm.Position.value;
	intPageCount = document.NavigationForm.PageCount.value;
	document.NavigationForm.CurrentCategory.value = box;
	document.NavigationForm.MoveAction.value="MoveNext";
	document.NavigationForm.submit();
}

function ChooseCategory() {
		box = document.NavigationForm.Category;
		box.selectedIndex = document.NavigationForm.CurrentCategory.value;
}
function FilterCategory() {
	box = document.NavigationForm.Category.selectedIndex;
	if (box > 0) {
		document.NavigationForm.CurrentCategory.value = box;
		document.NavigationForm.Position.value = "1";
		document.NavigationForm.MoveAction.value = "";
		document.NavigationForm.submit();
	}
}
function storeCookie(strItemID,intQty){
	if (document.cookie.indexOf("testcookie")>=0) {
		var old_cookie = document.cookie;
		old_cookie = old_cookie.split(";")
		var fresh_data = intQty + "|" + strItemID + "|";
		document.cookie= old_cookie[2] + escape(fresh_data); //old_cookie[0] is sessionid, [1] is userid
	}
	else {
		fresh_data = intQty + "|" + strItemID + "|";
		document.cookie = "testcookie=" + escape(fresh_data);
	}
}
