var menuOptions = {
         "ISP/DSL Speed/Package changes" : [ "--Please select a Sub-category--", "Change Service", "Account Upgrade", "Other" ],
         "Networking - Multiple computers connected" : [ "--Please select a Sub-category--", "Adding computer(s) to network", "File/Printer Sharing", "Firewall Settings", "Parental Control Settings", "Setting up Remote Access", "Configuring Wireless adapters", "Other" ],
         "Wireless - Modem to computer connection" : [ "--Please select a Sub-category--", "Turning Wireless on in Modem", "Security Settings for Wireless", "Configuring Wireless adapters", "Other" ],
         "General connection problems" : [ "--Please select a Sub-category--", "Can't connect", "Disconnects", "Connection Speed", "Busy Signals", "Authentication", "Downloading Files", "Change PPP Password", "Change PPP Username", "Other" ],
         "Other ISP" : [ "--Please select a Category--", "General connection problems", "Wireless - Modem to computer connection", "Networking - Multiple computers connected", "ISP/DSL Speed/Package changes", "Other" ],
         "Windows Live" : [ "--Please select a Category--", "General connection problems", "Wireless - Modem to computer connection", "Networking - Multiple computers connected", "ISP/DSL Speed/Package changes", "Other" ],
         "qwestoffice.net" : [ "--Please select a Category--", "E-mail", "Domain Name", "Personal Web Pages", "General connection problems", "Wireless - Modem to computer connection", "Networking - Multiple computers connected", "ISP/DSL Speed/Package changes", "Other" ],
         "Windows Live" : [ "--Please select a Category--", "General connection problems", "Wireless - Modem to computer connection", "Networking - Multiple computers connected", "ISP/DSL Speed/Package changes", "Other" ],
         "MSN Premium" : [ "--Please select a Category--", "E-mail", "Account Info changes", "Internet Software problems", "Security Software", "Addt'l software problems", "General connection problems", "Wireless - Modem to computer connection", "Networking - Multiple computers connected", "ISP/DSL Speed/Package changes", "Other" ],
         "qwest.net" : [ "--Please select a Category--", "E-mail", "Account Info changes", "Static IP's", "Domains/DNS issues", "Personal Web Pages", "Internet Software problems", "Account Info changes", "Security Software", "General connection problems", "Wireless - Modem to computer connection", "Networking - Multiple computers connected", "ISP/DSL Speed/Package changes", "Other" ],
         "Domain Name" : [ "--Please select a Sub-category--", "New", "Modify Existing", "None of the Above" ],
         "E-mail" : [ "--Please select a Sub-category--", "Can't Send", "Can't Receive", "Set-up/Settings", "Add/Delete Sub-account", "Account Information", "Slow Response", "Vanity emails", "Other" ],
         "Personal Web Pages" : [ "--Please select a Sub-category--", "Uploading Web Files", "Deleting / Modifying Files", "Creating Web Space", "Link Domain to Web Space", "Other" ],
         "Static IP's" : [ "--Please select a Sub-category--", "How to Obtain", "Configuration", "Reverse DNS Entries", "Other" ],
         "Internet Software problems" : [ "--Please select a Sub-category--", "Installation", "Home Page", "Bookmarks/Favorites", "Settings/Optimizing", "Other" ],
         "Security Software" : [ "--Please select a Sub-category--", "Qwest.net ISS", "McAfee Antivirus", "McAfee Firewall", "Webroot SpySweeper", "LiveOne Care", "Other" ],
         "Addt'l software problems" : [ "--Please select a Sub-category--", "MSN Messenger", "Digital Photo/Photo Email", "Calendar", "Parental Controls/Family Safety", "Other" ],
         "Domains/DNS issues" : [ "--Please select a Sub-category--", "New Domain/Linking to account", "Modify Existing", "New DNS record (A, PTR, MX)", "Other" ],
		 "Account Info changes" : [ "--Please select a Sub-category--", "Change Password", "Change User ID", "Registered Name", "Account Security - PIN", "Other" ],
		 "Other" : [ "--Please select a Sub-category--", "Other" ]
      };

function setSubMenu(menuId, subMenuId)
{
   var Menu = document.getElementById(menuId);
   var subMenu = document.getElementById(subMenuId);
   subMenu.options.length=0;
   for(i=0; i<Menu.length; i++)
   {
      if( Menu.options[i].selected )
	  {
	     var key = Menu.options[i].text;
		 if(menuOptions[key])
		 {
		    var menuLength = menuOptions[key].length;
			
			enableSubmit(menuOptions[key][menuLength-1]);
		    for(j=0; j<menuLength; j++)
			{
			   subMenu.options.add(new Option(menuOptions[key][j],menuOptions[key][j]));
			}
         }
      }
   }
}

function enableSubmit(menuOpt)
{
   if(menuOpt == '')
   {
      document.getElementById('FormSubmit').disabled = false;
   }
}
