function processPayment() {
	if(!document.getElementById('pageNotice')) return false;
	if(!document.getElementById('processingNotice')) return false;

	document.getElementById('pageNotice').style.display = "none";
	document.getElementById('paymentButtons').style.display = "none";
	document.getElementById('processingNotice').style.display = "";
}

function cancelRegistration(url) {
	if(confirm("Are you sure you wish to cancel?")) {
		window.location=url;
		return false;
	} else {
		return false;
	}
}
function displaySession(action) {
	if(!document.getElementById('regSession')) return false;
	if(action=="show")
	 	document.getElementById('regSession').style.display = "";
	else
	 	document.getElementById('regSession').style.display = "none";
}
function displayTranslation(action) {
	if(!document.getElementById('regTranslation')) return false;
	if(action=="show")
		document.getElementById('regTranslation').style.display = "";
	else
		document.getElementById('regTranslation').style.display = "none";
}
function displayPayment(element,action) {
	if(!document.getElementById('billPayment' + element)) return false;
	if(action=="show")
	 	document.getElementById('billPayment' + element).style.display = "";
	else
	 	document.getElementById('billPayment' + element).style.display = "none";
}
function hideElement(id) {
	if(!document.getElementById(id)) return false;
	document.getElementById(id).style.display = "none";
}
function showElement(id,target) {
	if(!document.getElementById(id)) return false;
	document.getElementById(id).style.display = "";
	if(document.getElementById(target))
		document.getElementById(target).focus();
}