  var IntervalViewer = new Array();
  function FlipImages( ImageID, ImageString, Index, IntervalTimer )
  {
    window.clearInterval(IntervalViewer[ImageID]);
    
    MyImage      = document.getElementById(ImageID);
    Images       = ImageString.split("||");
    MyImage.src  = "produktbilder/icons/"+Images[Index];
    
    if( Index == (Images.length-1) )
      Index = 0;
    else
      Index++;
       
    if( Images.length > 1 )
      IntervalViewer[ImageID] = window.setInterval("FlipImages( \""+ ImageID +"\", \""+ ImageString +"\", "+ Index +", 3000 )", IntervalTimer);
  }
  
  function check_price(MINMENGE)
  {
    if(document.artform.print.checked == true)
    {
      MENGE = document.artform.menge.value;
      if( MENGE < MINMENGE )
      {
        document.artform.menge.value      = MINMENGE;
        document.artform.subbtn.disabled  = true;
      } else {
        document.artform.menge.value      = MENGE;
        document.artform.subbtn.disabled  = false;
      }
    }
  }

   function winOpen(url, breite, hoehe) {
      // Errechnet Koordinaten, um das Popup zentriert zu platzieren
      links = (screen.width/2)-(breite/2);
      oben = (screen.height/2)-(hoehe/2);
      window.open(url,"popup","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ="+oben+",left ="+links);
   } 
    
   
