public void formAndCallURL(int URLid)//location
    {  
      String location=null;
      
      if(URLid == 0) //Stereograhic projection
        {
            //Get location from html file
            location = getParameter("location0");
        }
        
        if(URLid == 1) //Lamber Conformal Conic
        {          
            //Get location from html file
            location = getParameter("location1");
        }
        
        if(URLid == 2) //Mercator
        {
            //Get location from html file
            location = getParameter("location2");
        }
        
        if(URLid == 3) //Lambert Azimuthal Equal Area
        {                        
            //Get location from html file
            location = getParameter("location3");
        }
        
        if(URLid == 4) //Albers Equal Area Conic
        {                         
            //Get location from html file
            location = getParameter("location4");
        }
        
        if(URLid == 5) //Any Equal Area or Cylindrical Equal Area
        {                          
            //Get location from html file
            location = getParameter("location5");
        }
        
        if(URLid == 6) //Transverse Mercator
        {                          
            //Get location from html file
            location = getParameter("location6");
        }
        
        if(URLid == 7) //Any Cylindircal Equal Area
        {                          
            //Get location from html file
            location = getParameter("location7");
        }
        
        try
            {
                URL url;
                url = new URL(getDocumentBase(), location);
                //url = new URL(url,location);
                                                      
                AppletContext browser = getAppletContext();
            
                //browser.showDocument(url);
                browser.showDocument(url,"_blank");
            }
            
            //Handle malformed url exception in connection attempt
            catch(MalformedURLException urlException)
            {
                urlException.printStackTrace();
            }
    }