// JavaScript Document

function mb_window(URLnormal) {
		window.open(URLnormal,'zoom','height=' + screen.height + ',width=' + screen.width + ',fullscreen=yes,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=0,top=0');	
}


function deleteItem(ID) {
/********************************************
DESCRIPTION: updates action and submits page
DATE ADDED: 5th April 2007
DATE UPDATED: -
*********************************************/
	
	document.frm_item.a.value = 3; //delete
	document.frm_item.step.value = 1; //wizard start
	document.frm_item.remove.value = ID;
	if (confirm("You are about to delete this item.\n\nAre you sure you want to continue?")) {
		document.frm_item.submit();
	}
}

function doItem(action) {
/********************************************
DESCRIPTION: updates action and submits page
DATE ADDED: 5th April 2007
DATE UPDATED: -
*********************************************/
	
	document.frm_item.a.value = action;
	document.frm_item.step.value = 1;
	document.frm_item.submit();
}

function selectItem(pID, ID, nID, stepID) {
/********************************************
DESCRIPTION: updates action and submits page
DATE ADDED: 6th April 2007
DATE UPDATED: -
*********************************************/
	document.frm_item.prev_id.value = pID;
	document.frm_item.item_id.value = ID;
	document.frm_item.next_id.value = nID;
	document.frm_item.step.value = stepID;
	document.frm_item.submit();
}

function selectItemExtra(pID, ID, nID, stepID, extraID) {
/********************************************
DESCRIPTION: updates action and submits page
DATE ADDED: 6th April 2007
DATE UPDATED: -
*********************************************/
	document.frm_item.prev_id.value = pID;
	document.frm_item.item_id.value = ID;
	document.frm_item.next_id.value = nID;
	document.frm_item.step.value = stepID;
	document.frm_item.extra_id.value = extraID;
	document.frm_item.submit();
}
