	function SubmitForm()
          {
           if (document.forms['Upload'].elements['userfile'].value!="")
            {
             document.forms['Upload'].submit();
             document.getElementById('UploadForm').style.display='none';
             document.getElementById('Waiting').style.display='block';
            }
          }

         function Refresh_Format(addurl)
          {
           if (document.forms.Auswahl_Format.elements['Format'].value!="")
            {
               if (addurl!=undefined)
                {
                 document.forms.Auswahl_Format.action=document.forms.Auswahl_Format.action + addurl;
                }
               document.getElementById('Format').style.display='none';
               document.getElementById('Waiting').style.display='block';
               document.forms.Auswahl_Format.submit();
            }
          }

         function WK_Lieferung(url)
          {
           if (document.forms['Warenkorb'].elements['Selbstabholer'])
            {
               if (document.forms['Warenkorb'].elements['Selbstabholer'].checked==true)
                {
                 document.getElementById('WK_Versandland1').style.display='none';
	             document.getElementById('WK_Versandland2').style.display='none';
                 document.location.href=url+"&neues_land=sA";
                }
               else
                {
                 document.location.href=url+"&neues_land="+document.forms['Warenkorb'].elements['Versandland'].value;
                }
            }
           else
            {
                 document.location.href=url+"&neues_land="+document.forms['Warenkorb'].elements['Versandland'].value;               
            }
          }

         function Check_UStIdentNr()
          {
             var land = document.forms['Bestelldaten'].elements['Land'].value;
             if (document.forms['Bestelldaten'].elements['check_ustid_'+land].value=="1")
              {
               document.getElementById('mwst_abzug').style.display="block";
              }
             else
              {
               document.getElementById('mwst_abzug').style.display="none";
              }
          }

         function Check_Lieferanschrift()
          {
           var disp;
           disp="none";           
           for (i=0;document.Bestelldaten.Lieferung[i];i++)
            {
             if (document.Bestelldaten.Lieferung[i].value=='Lieferanschrift' && document.Bestelldaten.Lieferung[i].checked)
              {
               disp="block";
              }
            }
           document.getElementById('LieferAdresse').style.display=disp;
          }

         function Bestellen_zurueck(url)
          {
           document.forms['Bestelldaten_pruefen'].action=url;
           document.forms['Bestelldaten_pruefen'].submit();
          }

         function Bestellen(agb_text)
          {
           var ok=true;
           if (document.forms['Bestelldaten_pruefen'].elements['AGBs'])
            {
             if (document.forms['Bestelldaten_pruefen'].elements['AGBs'].checked==false)
              {
               alert(agb_text);
               ok=false;
              }
            }
           if (ok==true)
            {
             document.forms['Bestelldaten_pruefen'].submit();
             document.getElementById('bestellleiste').style.display='none';
             document.getElementById('bestellleiste_warten').style.display='block';
            }
          }

         function AGBs(link)
          {
           var win;
	   if (link==undefined) link='html/AGBs.htm';
	   win = open(link,'artido_agbs','width: 550px, height: 325px, scrollbars=yes, toolbar=no');
           win.focus();
          }

	function nav(from)
	 {
	  document.forms['Navigation'].action=document.forms['Navigation'].action+"&from="+from;
	  document.forms['Navigation'].submit();
	 }

         function check_login()
          {
           if (document.getElementById('login_block').style.display=='block')
            {
             document.getElementById('login_block').style.display='none';
             document.getElementById('login_button').src='img/mehr.gif';
            }
           else
            {
             document.getElementById('login_block').style.display='block';
             document.getElementById('login_button').src='img/weniger.gif';
            }
          }

         function Dateiname_angeben()
          {
           if (document.forms['Upload'].elements['Dateiname'].value=="")
            {
             alert('Bitte geben Sie erst einen Dateinamen ein.');
            }
           else
            {
             document.forms['Upload'].submit()
            }
          }

         function Sonderformat(url)
          {
           var win;
           win = open(url,'artido_sonderformat','width=650, height=235, scrollbars=auto, toolbar=no, adressbar=no');
           win.focus();
          }

function Auftrag_drucken(url)
 {
  dlg = window.showModalDialog(url,"staples_leinwand_auftrag","dialogHeight: 450px; dialogWidth: 650px; edge: Raised; center: Yes; help: No; resizable: No; status: No;");
  if (confirm('Klicken Sie im folgenden Fenster auf - Jetzt bestellen! -, wenn der Auftrag korrekt ausgedruckt und vom Kunden unterschrieben wurde.'))
   {
    document.forms['Bestelldaten_pruefen'].elements['auftrag_gedruckt'].value=="1";
    document.getElementById('Bestellbutton').style.display='block';
   }
  else
   {
    document.forms['Bestelldaten_pruefen'].elements['auftrag_gedruckt'].value=="0";
    document.getElementById('Bestellbutton').style.display='none';
   }
 }
