/**
 * Show the progress indicator
 *
 * @param	string	msg
 */
function showProgressIndicator(msg)
{
//	/* next Ajax call: no error */
//	if ($('error'))
//	{
//		$('error').innerHTML = '';
//	}

	/* hide original button */
	hideElement("reserve-submit");

	/* check if the progress indicator exists */
	if ($("bastion-progress-indicator"))
	{
		/* if so, update the message */
		$$("#bastion-progress-indicator span")[0].innerHTML = msg;

		/* show progress indicator */
		showElement("bastion-progress-indicator");
//		if (document.all)
//		{
//			/* IE only works with display: block */
//			$("bastion-progress-indicator").style.display = 'block';
//		}
//		else
//		{
//			$("bastion-progress-indicator").style.display = 'table';
//		}
	}
	else
	{
		/* if not, create it */
		var pi = DIV({"id": "bastion-progress-indicator"}, SPAN(null, msg));

		/* add it to the DOM */
		$("reserve-submit").parentNode.insertBefore(pi, $("reserve-submit"));
	}
} // function showProgressIndicator

/**
 * Hide the progress indicator.
 */
function hideProgressIndicator()
{
	/* hide progress indicator */
	if ($("bastion-progress-indicator"))
	{
		hideElement("bastion-progress-indicator");
	}

	/* show original button */
	showElement("reserve-submit");
} // function hideProgressIndicator
