function importXML()
    {

        if (document.implementation && document.implementation.createDocument)
	{
		var xmlhttp = new window.XMLHttpRequest();
		xmlhttp.open("GET", 'preise/fahrtpreise.xml', false);
		xmlhttp.send(null);
		xmlDoc = xmlhttp.responseXML.documentElement;
		read();
	}
	else if (window.ActiveXObject)
	{
		xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc.onreadystatechange = function () {
			if (xmlDoc.readyState == 4) read();
		};
		xmlDoc.load('preise/fahrtpreise.xml');
 	}
	else
	{
		alert('Your browser can\'t handle this script');
		return;
	}

        //

	
    }
    
    function read()
    {

       select = document.getElementById('selCtrl');
            if(!select) return;
       var items = xmlDoc.getElementsByTagName('Anfahrt');       
       
       for(var i=0;i<items.length;i++)
       {
         option = document.createElement('option');
	 ort = items[i].attributes[1].nodeValue;
         option.appendChild(document.createTextNode(ort));
         option.setAttribute('value', 
             '<font size=\"2\" face=\"Arial, Helvetica, sans-serif\"> F&uuml;r die Anfahrt nach '+ort+' entstehen Ihnen<br>Kosten in H&ouml;he von '+items[i].attributes[2].nodeValue
              +'</font>');
         select.appendChild(option);
       }
       
      
    }

    function selected()
    {
      writer('label','PREIS');
    }

    function writer(arg1,arg2)
    {

      o = false;

      if (document.getElementById)
      {
        o = document.getElementById(arg1); 
      }
      else if (document.all)
      {
        o = document.all[arg1];
      }

      if (o)
      {
        o.innerHTML = arg2;
      }
      else if (document.layers)
      {
        with (document.layers[arg1].document)
        { 
          open();
          write(arg2);
          close();
        }
      }
    }     