// Functions to control the behavior of a multi-section form

function showFormSection(frm)
{
	document.getElementById(frm).style.display = "block";
}

function hideFormSection(frm)
{
	document.getElementById(frm).style.display = "none";
}

function swapFormSections(off, on)
{
		hideFormSection(off);
		showFormSection(on);
}

function showMessage(txt)
{
	var msgarea = document.getElementById('msgarea');
	msgarea.innerHTML = txt;
	msgarea.style.display = 'block';
}