public void LoadMarkers() {  // loads a marker-file and generates a new set of marker list from it
            URL myurl=null;
	try {
			if (markerInfilename == null)
				System.out.println("Markerfile == null  !?\n");
			
            //if (applet instanceof View5D)
	        //myurl = new URL(((View5D) applet).getDocumentBase(), markerInfilename);
            //else
	     {
 	    if (markerInfilename.startsWith("http:") || markerInfilename.startsWith("file:") || markerInfilename.startsWith("ftp:")) 	    	
	        myurl = new URL(markerInfilename);
 	    else
            //if (applet instanceof View5D)
            // 	myurl = new URL(((View5D) applet).getDocumentBase(), markerInfilename);
 	    	// OLD: if (System.getProperty("os.name").startsWith("Windows"))
 	    		// OLD: myurl = new URL(protocol+":////"+markerInfilename);
 	    	//else // This is in ImageJ
 		    myurl = new URL("file:///"+markerInfilename);
 	    	// myurl = new URL(protocol+"://"+markerInfilename);

	    }
            System.out.println("Opening Markerfile "+myurl+"\n");
	    InputStream ifs=myurl.openStream();
            StreamTokenizer is = new StreamTokenizer(new BufferedReader(new InputStreamReader(ifs)));
	    is.commentChar('#');
	    is.slashSlashComments(true);
	    is.slashStarComments(true);
	    is.parseNumbers();
	    MyMarkers.ListOffset=MyMarkers.NumLists;
	    while (MyMarkers.readline(is,this))   // reads a line and inserts/updates the appropriate marker
	    	;
	    MyMarkers.DeleteDublicateMarkerLists();
	    ifs.close();
	} catch(MalformedURLException e)
	    {
            	System.out.println("In Markerfile "+myurl+"\n");
		System.out.println("reading markers, URLException:"+e);
		applet.add("South",new Label ("URLException:"+e +"\n"));
                e.printStackTrace();
		applet.setVisible(true);
		// System.exit(1);
	    }
	catch(IOException e)
	    {
            	System.out.println("In Markerfile "+myurl+"\n");
		System.out.println("reading markers, URLException:"+e);
		applet.add("South",new Label ("IOException: "+e +"\n"));
		//applet.add("South",new Label ("Error: Unable to load file  "+markerInfilename));
                e.printStackTrace();
		applet.setVisible(true);
		// System.exit(1);
	    }
	catch(Exception e)
	    {
            	System.out.println("In Markerfile "+myurl+"\n");
		applet.add("South",new Label ("Exception appeared during load! \n"+e+"\n"));
                System.out.println("reading markers, Memoryexception! "+e + "\n");
                e.printStackTrace();
		applet.setVisible(true);
	    }
}