function gotoProfile(profileURL)
{
	window.location=profileURL;
}

function divSwap( div, arDiv ) 
{
	for( var i = 0; i < arDiv.length; i++ ) 
	{
		document.getElementById( arDiv[i] ).style.display = 'none';
	}
		document.getElementById( div ).style.display = 'block';
}

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 changeImageAssoc(formSection, img_id)
{
	if (document.getElementById(formSection).style.display == 'block')
	{
		
	    document.getElementById(img_id).src = '../images/bar.assoc.collapse.gif';
	}
	else
	{
	    document.getElementById(img_id).src = '../images/bar.assoc.expand.gif';
	}
}

function changeImageAssist(formSection, img_id)
{
	if (document.getElementById(formSection).style.display == 'block')
	{
		
	    document.getElementById(img_id).src = '../images/bar.assist.collapse.gif';
	}
	else
	{
	    document.getElementById(img_id).src = '../images/bar.assist.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';
}