	spzzchn=  "*+-./_@";

  function ersetze(text,find,repl)
  {
      var found = text.indexOf(find);
      var retVal= ""; var start = 0;
      while(found != -1)
      {
           retVal +=text.substring(start,found) +repl;
           start = found+find.length;
           found =text.indexOf(find,start);
       }
       retVal +=text.substring(start,text.length);
       return retVal;
  }

  function WertSpeichern(eingabe) 
  {
     var a=escape(eingabe);
     for(var i=0;i<spzzchn.length;i++)
         a=ersetze(a,spzzchn.charAt(i),"%X"+i);
         a=ersetze(a,"%","_");
     return a;
  }

  function WertAusgeben() 
  {
     var b=""+self.name;
     b=ersetze(b,"_","%");
     for(var i=0;i<spzzchn.length;i++)
        b=ersetze(b,"%X"+i,spzzchn.charAt(i));
        b=unescape(b);
     return b;
   }


    function openPopup(dmpic)
    {   
        dmpic = WertSpeichern(dmpic);
        dmvar="http://www.icura.de/grafikpopup.htm";
        iX=window.screen.availWidth-800;if(iX<=0)iX=0;else iX=iX/2;
		iY=window.screen.availHeight-600;if(iY<=0)iY=0;else iY=iY/2;
        wTemp=window.open(dmvar, dmpic, 'width=800,height=600,screenX='+iX+',screenY='+iY+',left='+iX+',top='+iY+',scrollbars=yes,resizable=yes,status=no,toolbar=no');
		WertSpeichern("images/"+dmpic);
        wTemp.focus();
    }
   
    function Bildwechsel() 
    {  
      if (Normal1.src != dmtest)
         {exit;}
      else
      {
         Normal1.src = WertAusgeben();
         window.document.images[0].src = Normal1.src;
      }
    }
