function deleteIt() {
	return confirm("Are you sure you want to delete this item?");
}

function cartFunc(sCart) {
	document.cart.Action.value = sCart;
	document.cart.submit();
}

function changeBook(iBID) {
	document.cart.BID.value = iBID;
	document.cart.Action.value = 'UpdateCart';
	document.cart.submit();
}

function changeWish(iBID) {
	var formName = getElement(iBID);
	formName.Action.value = 'UpdateWishlist';
	formName.submit();
}

function getFocus(formField) {
	var focusField = getElement(formField);
	if (focusField != null) {
		focusField.focus();
		focusField.select();
	}
}

function getElement(id){
	if (document.all) return document.all[id];
	if (document.getElementById) return document.getElementById(id);
}

function disableButton(id) {
	var buttonName = getElement(ID);
	buttonName.disabled = true;
}

function openWin(id,url,width,height) {
	var win;
	win = window.open(url + "?Field=" + id, "win", "innerHeight=" + height + ",height=" + height + ",innerWidth=" + width + ",width=" + width + ",status=no,resizable=no,menubar=no,toolbar=no,center=yes,scrollbars=no", false);
}
