	function InvokeAction(Element, A)
	{
		if (Element.form)
		{
			document.forms[Element.form.name].action += A;
			document.forms[Element.form.name].submit();
		}
		else
		{
			document.forms[Element].action += A;
			document.forms[Element].submit();
		}
	}

	var Opened
	function ToggleMenu(ItemId)
	{
		if (document.getElementById('SubMenu' + ItemId))
		{
			if (Opened)
			{
				document.getElementById('SubMenu' + Opened).style.display = 'none';
			}

			var IsOpen = 'block' == document.getElementById('SubMenu' + ItemId).style.display;
			document.getElementById('SubMenu' + ItemId).style.display = IsOpen ? 'none' : 'block';
			Opened = ItemId;
		}
	}


	function EditProfile()
	{
		location.href = 'EditProfile.asp';
	}

	function SetPassword()
	{
		location.href = 'SetPassword.asp';
	}

	function ViewProfile()
	{
		location.href = 'ViewProfile.asp';
	}
	
	function ViewDocument(LocationId, DocumentId)
	{
		location.href = 'ViewLocatie.asp?LocationId='+LocationId + '&DocumentId=' + DocumentId;	
	}
