function log_out(username)
{
	var overlayer = document.getElementById('disable-page');
	overlayer.style.display = "block";
	if (username == '') var text = 'Are you sure you want to log out?';
	else var text = username + ', are you sure you want to log out?';

	if (confirm(text))
	{
		return true;
	}
	else
	{
		overlayer.style.display = "none";
		return false;
	}
}

function confirmDecline()
{
	text = "Are you sure you want to decline the Terms of Use?\nClick Cancel to continue with registration."; 
	if (confirm(text))
	{
		window.location='/'; 
	}
}

function CancelReservationConfim()
{
	text = "Are you sure you want to cancel the selected registration?\nThe registration will be deleted."; 
	if (confirm(text))
	{
		return true;
	}
	else
	{
		return false;
	}
}