function delayedHide(id) {
	var theDiv = "deleteContainerContents" + id;
	hideIt = new Array();
	hideIt[id] = setTimeout("document.getElementById('" + theDiv + "').style.display='none'",3000);
	}
	
function clearHide(eventCode) {
	clearTimeout(hideIt[eventCode]);
	}
	
function showOpsButtons(eventCode) {
	var divToShow = 'deleteContainerContents' + eventCode;
	document.getElementById(divToShow).style.display='block'; 
	
	if (typeof hideIt != "undefined") {
		clearHide(eventCode);
		}
	}
	
function deleteConfirm(orderID,eventCode,eventName) {
	var clearit = confirm('Are you sure you want to delete this event?\n\n'  + eventName );
	
	if (clearit) {
		location.href = 'includes/inc.eventDelete.php?orderID=' + orderID + '&eventCode=' + eventCode;
		//new Ajax.Request('includes/inc.eventDelete.php',{ postBody: 'orderID=' + orderID + '&eventCode=' + eventCode });
		//new Ajax.Updater('nothingToSee','includes/inc.eventDelete.php',{ postBody: 'orderID=' + orderID + '&eventCode=' + eventCode });
		//window.location.href='getEventsOnHold.php';
		
		}
	else {
		return false;
		}
	}	
	
function updateTotals(eventCode,orderID) {
	lineTotalID = 'subTotal' + eventCode;
	warningDiv = 'warning' + orderID;
	
	// updateLineTotal
	new Ajax.Updater(lineTotalID,'includes/inc.getLineTotal.php', { postBody: 'orderID=' + orderID + '&eventCode=' + eventCode });
	
	// update SubTotal
	new Ajax.Updater('subTotalAll','includes/inc.getSubTotal.php', { postBody: 'orderID=' + orderID  });
	
	// fade out the warning div if it exists...
	if (document.getElementById(warningDiv)) {
		setTimeout("Effect.Fade(warningDiv)",3000);
		}
	}