/**
 * Function: toggleElement
 *	Toggle the visibility of any html element.
 *
 * @param hideMe - The element to hide, div, form etc.
 * @param clickMe - The element you want to trigger the function.
 */
function toggleElement(hideMe)
{
	if(document.getElementById && document.createTextNode)
	{
		var h = document.getElementById(hideMe); // element to hide
		var d = h.style.display; // display type
		
		try // use the try statement in case strSubSection does not exists
		{
			if(strSubSection == "applications")
			{
				h.style.display = "block"; // toggle the element
				return;
			}
		}
		catch(e){}
		
		if(d == "" || d == "block")
		{ // hide
			d = "none";
		}
		else if (d == "none")
		{ // show
			d = "block";
		}
		
		//h.style.display = d; // toggle the element
		return false;			
	}
};

/**
 * Function: assignToggle
 *	Assigns the click
 */
function assignToggle(clickMe, hideMe)
{
	var e = document.getElementById(clickMe); // element to click
	e.onclick = function()
	{
		toggleElement(hideMe);
		return false;
	};
};