function loginFacilityCartPrompt(itemsInCart, relocationURL, optionalConfirmWindowMessage) {

	var proceedWithRelocation = true;
	var confirmWindowMessage = "Please note that by Logging In/Out, all items will be removed from your shopping cart. Click OK if you wish to continue.";

	/*		this function supports an optional attribute "optionalConfirmWindowMessage"
			when supplied, this will overwrite the message hard coded in the variable "confirmWindowMessage"
	*/
	if (optionalConfirmWindowMessage != undefined) {
		confirmWindowMessage = optionalConfirmWindowMessage;
	}

	/*		the only event in which a user is NOT relocated, is when there are 
			items in their cart, and they click cancel on the confirm window
	*/
	if ( (itemsInCart > 0) && (!confirm(confirmWindowMessage)) ) {
		proceedWithRelocation = false;
	}

	if (proceedWithRelocation) {
		window.location = relocationURL;
	}

}
