private void mapTypeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mapTypeActionPerformed

       /*////////////////////////////////////////////////
        Relative Address Changes where made here. The folder
        depth denoted by relative addressing "../", in the
        genaration of a "new URL". These changes were made in
        DSSApplet.java, DSSContinet.java, and 
        DSSRegional.java and coresponding HTML files
        **Important Note: When making changes to these files
        they must be recompiled with javac, and browser cache
        must be cleared to reflect changes!!!!
        ///////////////////////////////////////////////*/
       /////////////////////////////////////////////////
        /*try
        {
        //this.Appbase = new URL(this.getCodeBase(),"../"); 
        }
        catch(MalformedURLException urlException)
        {
            urlException.printStackTrace();
        }/**/

        ////////////////////////////////////////////////
        //Get selected index of map type box
        int i = mapType.getSelectedIndex();
        
        //If invalid selection, set to default value and set all following
        //gui components to disabled
        if(i < 2)
        {
            //INSERTTUT
            mapType.setSelectedIndex(0);
            preserveWhat.setEnabled(false);
            dataType.setEnabled(false);
            rasterDataType.setEnabled(false);
            submitButton.setEnabled(false);
        }
        
        //If Global, set preserve box enabled
        if(i == 2)
        {
            //INSERTTUT
            //If "compromise" missing from preserve box, add it back
            Gname = 1;//let 3 generate Global Visualization
            if(preserveWhat.getItemCount() < 5)
            {
                preserveWhat.addItem("Compromise");
            }
            //changed  =true;
            preserveWhat.setEnabled(true);
            DSSUpdater.setHighLight(1);
            HighLight = 1;
            DSSUpdater.setGraphName(1);
            HighPathAr = new int[] {0,1};
            changed  =true;
           
        }
        
        //If Continental, transfer to Continental web page
        if(i == 3)
        {
            String location;
            Gname = 2;//let 3 generate Continental Visualization
             changed  =true;
            //Get location from html file
            location = getParameter("location1");
             DSSUpdater.setHighLight(2);
              HighLight = 2;
            DSSUpdater.setGraphName(2);
             HighPathAr = new int[] {0,2};
            
            //Try to make connection to new web page
            try
            {
                URL url;
                //url =new URL(this.Appbase,location);
                url = new URL(this.getCodeBase(),location);
                //"this.Appbase" added 6/2004 for portability
                           
                AppletContext browser = getAppletContext();
            
                browser.showDocument(url);
            }
            
            //Handle malformed url exception in connection attempt
            catch(MalformedURLException urlException)
            {
                urlException.printStackTrace();
            }
        }
        
        //If regional, transfer to Regional page
        if(i == 4)
        {
            String location;
            Gname = 3;//let 3 generate Regional Visualization
             changed  =true;
            //Get location from html file
            location = getParameter("location0");
             DSSUpdater.setHighLight(3);
              HighLight = 3;
            DSSUpdater.setGraphName(3);
           HighPathAr = new int[] {0,3};
            
            //Try to make connection to new web page
            try
            {
                URL url;
                url =new URL(this.getCodeBase(),location);
                //"this.Appbase" added 6/2004 for portability
                           
                AppletContext browser = getAppletContext();
            
                browser.showDocument(url);
            }
            
            //Handle malformed url exception in connection attempt
            catch(MalformedURLException urlException)
            {
                urlException.printStackTrace();
            }
        }
        
        //Set following gui components to default values
        preserveWhat.setSelectedIndex(0);
        dataType.setSelectedIndex(0);
        rasterDataType.setSelectedIndex(0);
    }//GEN-LAST:event_mapTypeActionPerformed