
function changeText(formSection, text_id)
{
	if (document.getElementById(formSection).style.display == 'block')
	{
		
	    document.getElementById(text_id).innerHTML = '&raquo; Expand Details';
	}
	else
	{
	    document.getElementById(text_id).innerHTML = '&raquo; Collapse Details';
	}
} 

function changeImageFull(formSection, img_id)
{
	if (document.getElementById(formSection).style.display == 'block')
	{
		
	    document.getElementById(img_id).src = '../images/bar.full.collapse.gif';
	}
	else
	{
	    document.getElementById(img_id).src = '../images/bar.full.expand.gif';
	}
}

function displayOrHideFormSection(formSection)
{
	if (document.getElementById(formSection).style.display == 'block')
	{
		hideFormSection(formSection);
	}
	else
	{
		displayFormSection(formSection);
	}
}

function hideFormSection(formSection)
{
	document.getElementById(formSection).style.display = 'none';
}

function displayFormSection(formSection)
{
	document.getElementById(formSection).style.display = 'block';
}