


	function topMenuItemSelect(item)
	{
	//fires before the menu item's NavigateURL is executed
		
		try{
					
			switch(item.ID)
			{
				case 'i_logout':
					window.location='./VVLogin.aspx?action=logout';
					return false;
					break;	
				case 'i_projects':
					window.location='./projectadmin.aspx?tab=tabDocuments&Status=Open';
					return false;
					break;		
				case 'i_projectOpen':
					window.location='./projectadmin.aspx?tab=tabDocuments&Status=Open';
					return false;
					break;
				case 'i_newProject':
					window.location='./New_Project_Wizard1.aspx?Caller=~/ProjectAdmin.aspx';
					return false;
					break;	
				case 'i_ohsasSubmitIncident':
					window.open('./form_details.aspx?FormID=e352ccaa-10ef-4ffb-b88a-fe639c3121bb&hidemenu=true');
					return false;
					break		
				case 'i_ISOSubmitCAR':
					window.open('./form_details.aspx?FormID=349bb748-fb4a-484c-8fee-b18887a99b27&hidemenu=true');
					return false;
					break						
				default:
					//don't handle the menu click in this function and if there is a 
					//NavigateURL property defined for the menu item in the TopMenuData.xml file then
					//it will be used if true is returned from this function
					return true;
					break;			
			}
			
		}
		catch(e){
		}			
	}
