    function lmatch1() {

     new Ajax.Updater({ success: 'lcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase4', hersteller:$F('lcode1')},
         onComplete: function() {
             Ajax.activeRequestCount++; 
         },
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase3'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase3', lcode3:''},
         onComplete:function(){
             document.druckerverwaltung.lcode3.focus();
         },
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function case4update() {

     new Ajax.Updater({ success: 'lcase6'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase61'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase4neu', hersteller:$F('lcode6')},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lcode3Clear() {

     new Ajax.Updater({ success: 'lcase1'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase1'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase3'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase3', lcode:''},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase4', hersteller:''},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lmatch2() {

     new Ajax.Updater({ success: 'lcase3'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase3', zahl:''},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase4', hersteller:$F('lcode1')},
         onComplete:function(){
             document.druckerverwaltung.lcode3.focus();
         },
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lmatch3() {

     new Ajax.Updater({ success: 'lcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase4', hersteller:$F('lcode1'), zahl:$F('lcode3')},
         onComplete:function(){
             document.druckerverwaltung.lcode3.focus();
         },
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lmatch4(daten) {

     var rat;
     var ratx;

     for(var j = 0; j < daten.length; j++)
     {
         if (j == 0) {
             rat  = daten[j].value;
             ratx = daten[j].selected;
         }
         if (j > 0) {
             rat  = rat + ',' + daten[j].value;
             ratx = ratx + ',' + daten[j].selected;
         }
     }

     new Ajax.Updater({ success: 'lcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase5', what:ratx, string:rat},
         onComplete:function(){
             document.druckerverwaltung.lcode3.focus();
         },
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lcode4teilentf(daten) {

     var rat;
     var ratx;

     for(var j = 0; j < daten.length; j++)
     {
         if (j == 0) {
             rat  = daten[j].value;
             ratx = daten[j].selected;
         }
         if (j > 0) {
             rat  = rat + ',' + daten[j].value;
             ratx = ratx + ',' + daten[j].selected;
         }
     }

     new Ajax.Request('./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'l4teilentf', what:ratx, string:rat},
         onComplete:function(){
             new Ajax.Updater({ success: 'lcase4'} ,'./../admin/sucherpc_post.php',{
                 method:'post',
                 parameters:{aktion:'lcase4'},
                 onerror:function(){
                     alert('DAT FEHLER...');
                 }
             }
         );
         },
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lmatch5() {

     new Ajax.Updater({ success: 'lcase3'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase3', zahl:''},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase4', hersteller:$F('lcode1')},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lcase6save(herst) {

     new Ajax.Request('./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase6hinzu', hersteller:herst},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase4neu'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );

     new Ajax.Updater({ success: 'lcase2'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase6'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lcaseopen() {

     new Ajax.Updater({ success: 'lcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase4neu', hersteller:''},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase3'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase6'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase6'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase61'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase1a'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase1a', hersteller:''},
         onComplete:function(){
             document.druckerverwaltung.lcode3.focus();
         },
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lcase1zruck() {


     new Ajax.Updater({ success: 'lcase1a'} ,'./../admin/./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase1b'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase3'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase3'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase6'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase3a'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase4',hersteller:''},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'lcase1'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase1'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }
    
    function d5mitl5voll(herst,daten) {

     var rat;
     var ratx;

     for(var j = 0; j < daten.length; j++)
     {
         if (j == 0) {
             rat  = daten[j].value;
             ratx = daten[j].selected;
         }
         if (j > 0) {
             rat  = rat + ',' + daten[j].value;
             ratx = ratx + ',' + daten[j].selected;
         }
     }

     new Ajax.Updater({ success: 'dcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase5vonl5', herstellery:herst, what:ratx, string:rat},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function l5mitd5voll(herst,daten) {

     var rat;
     var ratx;

     for(var j = 0; j < daten.length; j++)
     {
         if (j == 0) {
             rat  = daten[j].value;
             ratx = daten[j].selected;
         }
         if (j > 0) {
             rat  = rat + ',' + daten[j].value;
             ratx = ratx + ',' + daten[j].selected;
         }
     }

     new Ajax.Updater({ success: 'lcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase5vond5', herstellerz:herst, what:ratx, string:rat},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function verheiraten(herst,lcode,druck) {

     var lat;
     var latx;

     var rat;
     var ratx;

     for(var j = 0; j < lcode.length; j++)
     {
         if (j == 0) {
             lat  = lcode[j].value;
             latx = lcode[j].selected;
         }
         if (j > 0) {
             lat  = lat + ',' + lcode[j].value;
             latx = latx + ',' + lcode[j].selected;
         }
     }

     for(var y = 0; y < druck.length; y++)
     {
         if (y == 0) {
             rat  = druck[y].value;
             ratx = druck[y].selected;
         }
         if (y > 0) {
             rat  = rat + ',' + druck[y].value;
             ratx = ratx + ',' + druck[y].selected;
         }
     }
     new Ajax.Request('./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'verheiraten', herstellu:herst, what:ratx, string:rat, lhat:latx, ltring:lat},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({success:'lcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase5leer'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({success:'dcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase5leer'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({success:'heiratanzeige'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'heirat', herstellerz:herst, what:'Verheiratet'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({success:'heiratanzeige'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'heirat', what:''},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lcode5mit4voll(daten) {

     var rat;
     var ratx;

     for(var j = 0; j < daten.length; j++)
     {
         if (j == 0) {
             rat  = daten[j].value;
             ratx = daten[j].selected;
         }
         if (j > 0) {
             rat  = rat + ',' + daten[j].value;
             ratx = ratx + ',' + daten[j].selected;
         }
     }

     new Ajax.Updater({ success: 'lcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase5', what:ratx, string:rat},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lcodeloeschen(herst,daten) {

     var rat;
     var ratx;

     for(var j = 0; j < daten.length; j++)
     {
         if (j == 0) {
             rat  = daten[j].value;
             ratx = daten[j].selected;
         }
         if (j > 0) {
             rat  = rat + ',' + daten[j].value;
             ratx = ratx + ',' + daten[j].selected;
         }
     }

     new Ajax.Request('./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcodeloeschen', zahly:herst, what:ratx, string:rat},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'bestaetigung'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'bestaet', what:'Geloescht'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function druckerloeschen(herst,daten) {

     var rat;
     var ratx;

     for(var j = 0; j < daten.length; j++)
     {
         if (j == 0) {
             rat  = daten[j].value;
             ratx = daten[j].selected;
         }
         if (j > 0) {
             rat  = rat + ',' + daten[j].value;
             ratx = ratx + ',' + daten[j].selected;
         }
     }

     new Ajax.Request('./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'druckerloeschen', zahly:herst, what:ratx, string:rat},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'bestaetigung'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'bestaet', what:'Geloescht'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function druck5mit4voll(datex) {

     var rat;
     var ratx;

     for(var j = 0; j < datex.length; j++)
     {
         if (j == 0) {
             rat  = datex[j].value;
             ratx = datex[j].selected;
         }
         if (j > 0) {
             rat  = rat + ',' + datex[j].value;
             ratx = ratx + ',' + datex[j].selected;
         }
     }

     new Ajax.Updater({ success: 'dcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase5', what:ratx, string:rat},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function druck5mit4vollersatz(datex,daten) {

     var rat;
     var ratx;
     var dat;
     var datx;

     for(var j = 0; j < datex.length; j++)
     {
         if (j == 0) {
             rat  = datex[j].value;
             ratx = datex[j].selected;
         }
         if (j > 0) {
             rat  = rat + ',' + datex[j].value;
             ratx = ratx + ',' + datex[j].selected;
         }
     }

     for(var j = 0; j < daten.length; j++)
     {
         if (j == 0) {
             dat  = daten[j].value;
             datx = daten[j].selected;
         }
         if (j > 0) {
             dat  = dat + ',' + daten[j].value;
             datx = datx + ',' + daten[j].selected;
         }
     }

     new Ajax.Updater({ success: 'dcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase5neu', string:rat, what:ratx, dtring:dat, dhat:datx},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'control'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'contranz', string:rat, what:ratx, dtring:dat, dhat:datx},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     }

    function lcode5mit4volldemakiert(daten) {

     var rat;
     var ratx;

     for(var j = 0; j < daten.length; j++)
     {
         if (j == 0) {
             rat  = daten[j].value;
             ratx = daten[j].selected;
         }
         if (j > 0) {
             rat  = rat + ',' + daten[j].value;
             ratx = ratx + ',' + daten[j].selected;
         }
     }

     new Ajax.Updater({ success: 'lcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase5ohne', what:ratx, string:rat},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function druck5mit4volldemakiert(datex) {

     var rat;
     var ratx;

     for(var j = 0; j < datex.length; j++)
     {
         if (j == 0) {
             rat  = datex[j].value;
             ratx = datex[j].selected;
         }
         if (j > 0) {
             rat  = rat + ',' + datex[j].value;
             ratx = ratx + ',' + datex[j].selected;
         }
     }

     new Ajax.Updater({ success: 'dcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase5ohne', what:ratx, string:rat},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lcode4Makier(herst,drucker) {

     new Ajax.Updater({ success: 'lcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase4mit', hersteller:herst, zahl:drucker},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lcode45leer() {

     new Ajax.Updater({ success: 'lcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase5leer'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase5leer'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lcode4Demakier(herst,drucker) {

     new Ajax.Updater({ success: 'lcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lcase4', hersteller:herst, zahl:drucker},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function druck4makier(herst,drucker) {

     new Ajax.Updater({ success: 'dcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase4mit', herstellerx:herst, zahlx:drucker},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function druck4demakier(herst,drucker) {

     new Ajax.Updater({ success: 'dcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase4', herstellerx:herst, zahlx:drucker},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function dmatch6() {

     new Ajax.Updater({ success: 'dcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase4', herstellerx:$F('druck1')},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function dmatch6neu() {

     new Ajax.Updater({ success: 'dcase2'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase2neu'},
         onComplete:function(){
             document.druckerverwaltung.druck2.focus();
         },
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function dmatch7() {

     new Ajax.Updater({ success: 'dcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase4', herstellerx:$F('druck1'), zahlx:$F('druck2')},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function dmatch7neu() {

     new Ajax.Updater({ success: 'dcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase2neu', drucker:$F('druck2')},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function dmatch8() {

     new Ajax.Updater({ success: 'dcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase5neudruck', herstellere:$F('druck1'), zahle:$F('druck2')},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function dmatch80() {

     new Ajax.Updater({ success: 'dcase2'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'leer'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase1'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase1y'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase4neu'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase1a'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase1a'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase6a'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase6a'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'schickding'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'schickeding'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase5neu'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase5'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase5neu'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function dmatch8back() {

     new Ajax.Updater({ success: 'dcase2'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase2'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase1'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase1'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase4'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase1a'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase1x'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase6a'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase6'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'schickding'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'schickdingzruck'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function dmatch8clear() {

     new Ajax.Updater({ success: 'dcase1'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase1'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase2'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase2'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'dcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase4leer'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function dcode2hinzu(arr,dcode2) {

     var rat;
     var ratx;

     for(var j = 0; j < arr.length; j++)
     {
         if (j == 0) {
             rat  = arr[j].value;
             ratx = arr[j].selected;
         }
         if (j > 0) {
             rat  = rat + ',' + arr[j].value;
             ratx = ratx + ',' + arr[j].selected;
         }
     }

     if (rat[0] == "")
     {
         rat = 0;
     }
     new Ajax.Updater({ success: 'dcase4'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'dcase4neu', zahl:dcode2, string:rat, what:ratx},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function lmatchx1() {

     new Ajax.Updater({ success: 'checkprinter'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'print_control', pherst:$F('pherst')},
         onComplete: function() {
             Ajax.activeRequestCount++;
         },
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function Neu1() {

     new Ajax.Updater({ success: 'checkprinter'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'print_norm'},
         onComplete: function() {
             Ajax.activeRequestCount++;
         },
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function Aktu1(pherst) {

     new Ajax.Updater({ success: 'checkprinter'} ,'./../admin/sucherpc_post.php',{
         method:'post',

         parameters:{aktion:'print_control', pherst:$F('pherst')},
         onComplete: function() {
             Ajax.activeRequestCount++;
         },
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function kassolmatch1(kolcode1) {

     new Ajax.Updater({ success: 'kassolcase2'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'kassolcase2', hersteller:$F('kolcode1')}
     }
     );
    }

    function kassolmatch1x(kolcode1x) {

     new Ajax.Updater({ success: 'kassolcase2'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'kassolcase2', hersteller:$F('kolcode1x')}
     }
     );
    }

    function kassolmatch2(kolcode2) {

     new Ajax.Updater({ success: 'kassolcase3'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'kassolcase3', drucker:$F('kolcode2')}
     }
     );
    }

    function kassolmatch5() {

     new Ajax.Updater({ success: 'kassolcase3'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'kassolcase3', drucker:$F('kolcode5')}
     }
     );
    }

    function Datenanzeigen(hersteller,lcode) {

     new Ajax.Updater({ success: 'bildanzeige'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'kassolcase4', hersteller:hersteller, lcode:lcode }
     }
     );

     new Ajax.Updater({ success: 'Druckeranzeige'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'kassolcase5', lcode:lcode}
     }
     );

    }

    function emailsenden() {

     new Ajax.Updater({ success: 'mailfenster'} ,'./../shop/popinc.php',{
         method:'post',
         parameters:{aktion:'email', hersteller:$F('lcode1')},
         onComplete: function() {
             Ajax.activeRequestCount++;
         },
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function persospeichern() {

     new Ajax.Updater({ success:'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{
         aktion:'persospeichern',
         xanrede:$F('xanrede'),
         zweitxvorname:$F('zweitxvorname'),
         xgeburtstag:$F('xgeburtstag'),
         xadrzusatz:$F('xadrzusatz'),
         xfax:$F('xfax'),
         xhandy:$F('xhandy'),
         xvorname:$F('xvorname'),
         xname:$F('xname'),
         xstrasse:$F('xstrasse'),
         xhausnummer:$F('xhausnummer'),
         xPLZ:$F('xPLZ'),
         xOrt:$F('xOrt'),
         xtele:$F('xtele'),
         xto:$F('xto'),
         xText:$F('xText'),
         xbevorzugt:$F('xbevorzugt'),
         xfirma:$F('xfirma'),
         xcode:$F('xcode'),
         xkundennummer:$F('xkundennummer')},
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
    }

    function persombearbeiten() {

     new Ajax.Updater({ success:'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'persospeichern', REPOST:1},
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
     Ajax.Responders.register({ });
    }

    function persoaendern() {

     new Ajax.Updater({ success:'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'persospeichern', CHECK:1},
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
     Ajax.Responders.register({ });
    }

    function persoweiter() {

     new Ajax.Updater({ success: 'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'persoweiter'},
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
     Ajax.Responders.register({ });
    }

    function ansprechspeichern() {

     new Ajax.Updater({ success:'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{
         aktion:'ansprechspeichern',
         xaname:$F('xaname'),
         xavorname:$F('xavorname'),
         xaanrede:$F('xaanrede'),
         xaabteilung:$F('xaabteilung'),
         xato:$F('xato'),
         xafax:$F('xafax'),
         xatele:$F('xatele'),
         xahandy:$F('xahandy'),
         wie_addy:$F('wie_addy')
         },
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
    }

    function ansprechweiter() {

     new Ajax.Updater({ success: 'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'ansprechweiter'},
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
     Ajax.Responders.register({ });
    }

    function lieferadrspeichern() {

     new Ajax.Updater({ success:'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{
         aktion:'lieferadrspeichern',
         xaltanrede:$F('xaltanrede'),
         xaltname:$F('xaltname'),
         xaltvorname:$F('xaltvorname'),
         xaltzweitvorname:$F('xaltzweitvorname'),
         xaltadrzusatz:$F('xaltadrzusatz'),
         xaltstrasse:$F('xaltstrasse'),
         xalthausnummer:$F('xalthausnummer'),
         xaltPLZ:$F('xaltPLZ'),
         xaltOrt:$F('xaltOrt'),
         wie_addy:$F('wie_addy')
         },
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
    }

    function versandweiter() {

     new Ajax.Updater({ success: 'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'liefernweiter'},
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
     Ajax.Responders.register({ });
    }

    function versandspeichern() {

     new Ajax.Updater({ success:'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{
         aktion:'versandspeichern',
         lieferart:$F('lieferart')
         },
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
    }

    function zahlweiter() {

     new Ajax.Updater({ success: 'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'zahlweiter'},
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
     Ajax.Responders.register({ });
    }

    function zahldeteils() {

     new Ajax.Updater({ success:'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{
         aktion:'zahldeteils',
         zahlart:$F('zahlart')
         },
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
    }

    function zahleintrag() {

     new Ajax.Updater({ success:'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{
         aktion:'zahleinweiter',
         inhaber:$F('inhaber'),
         kartennummer:$F('kartennummer'),
         datumbis:$F('datumbis'),
         kontonummer:$F('kontonummer'),
         bankleitzahl:$F('bankleitzahl'),
         bankname:$F('bankname'),
         ktoid:$F('ktoid')
         },
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
    }

    function uebersichtweiter() {

     new Ajax.Updater({ success: 'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'uebersichtweiter'},
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
     Ajax.Responders.register({ });
    }

	function HilfeFenster() {
 	 POPUPFENSTER =
 	  window.open("popinc.php?aktion=suchen", "HilfeFenster", "width=500,height=400,scrollbars=no,resizable=no,status=yes,top=100,left=50");
 	 POPUPFENSTER.focus();
	}

    function tokenok(sessid,nummer,email,weiter) {

     POPUPFENSTER =
 	  window.open("validieren.php?body_id=m3s2&body_v=1&body_x=3&valid="+sessid+"&nummer="+nummer+"&email="+email+"&weiter="+weiter, "tokenok", "width=400,height=300,scrollbars=no,resizable=no,status=no,top=100,left=50");
  	 POPUPFENSTER.focus();
    }

    function neuanmelden() {

     new Ajax.Updater('index.php?body_id=m3s2&body_v=0&body_x=1');
     
    }

    function testeintrag(text) {

     new Ajax.Updater({ success:'testanzeige'} ,'../newfile.php',{
         method:'post',
         parameters:{
         akt:'zwei',
         test:text }
     }
     );
    }

    function allabschicken() {

     new Ajax.Updater({ success: 'abschickentun'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'abschickenmachen'}
     }
     );
     new Ajax.Updater({ success: 'shopzahlung'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'uebersichtende'},
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             window.scrollTo(0,0),
             completeAjaxElement();
         }
     }
     );
     Ajax.Responders.register({ });
    }

    function allbezahlen() {

     new Ajax.Updater({ success: 'shopzahlung'} ,'../shop/popinc.php',{
         method:'post',
         parameters:{
         aktion:'endlichbezahlen',
         sessid:$F('sessid')
         },
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
    }

    function updateagb() {

     new Ajax.Updater({ success: 'agbokanzeige'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{
         aktion:'updateagb',
         agbok:$F('agbok')
         },
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
    }

    function updatenews() {

     new Ajax.Updater({ success: 'newsokanzeige'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{
         aktion:'updatenews',
         newsok:$F('newsok')
         },
         onLoading:function(){
             loadAjaxElement();
         },
         onComplete:function(){
             completeAjaxElement();
         }
     }
     );
    }

		
    function loadElement() {
    
    	document.getElementById('druckerwahl').submit();
	    if(document.readyState != "1")
	    {
	        document.body.style.cursor = "wait";
			HtmlLoad(); 
	        return false;
	    }
	    
	    if(document.readyState == "4" || document.readyState == "2")
	    {
	        document.body.style.cursor = "default";
	        HtmlLoadBeenden();
	    }

    }

    function loadHerstellerElement() {
    
	    document.druckerwahl.drucker.value = '';
    	document.getElementById('druckerwahl').submit();
    	
	    if(document.readyState != "1")
	    {
	        document.body.style.cursor = "wait";
			HtmlLoad(); 
	        return false;
	    }
	    
	    if(document.readyState == "4" || document.readyState == "2")
	    {
	        document.body.style.cursor = "default";
	        HtmlLoadBeenden();
	    }

    }

    function loadAjaxElement() {
    
	    if(document.readyState != "1")
	    {
	        document.body.style.cursor = "wait";
			HtmlLoad(); 
	        return false;
	    }
	    
	    if(document.readyState == "4" || document.readyState == "2")
	    {
	        document.body.style.cursor = "default";
	        HtmlLoadBeenden();
	    }

    }

    function completeAjaxElement() {
    
	    document.body.style.cursor = "default";
	    HtmlLoadBeenden();

    }

	var Grafik1 =('<img src=\"ajax-loader.gif\">');
	var Anzeige =('<center><table width=250px style=\"border:1px dotted #000000;\" height=100px border=0 background-color=#ffffff><tr><td valign=middle align=center>... einen Moment bitte ...</td></tr></table></center>');
	
	function HtmlLoad()
	{         
		document.getElementById('GrafikCSS').innerHTML 			   = Grafik1;
		document.getElementById('GrafikCSS').style.visibility 	   = "visible";
		document.getElementById('GrafikCSS').style.top 	   	 	   = "270px";
		document.getElementById('GrafikCSS').style.left     	   = "480px";
		document.getElementById('GrafikBOX').innerHTML 			   = Anzeige;
		document.getElementById('GrafikBOX').style.visibility 	   = "visible";
		document.getElementById('GrafikBOX').style.top 	   		   = "250px";
		document.getElementById('GrafikBOX').style.left       	   = "360px";
		document.getElementById('GrafikBOX').style.backgroundColor = "#ffffff";
	}
	
	function HtmlLoadBeenden()
	{
	    document.getElementById('GrafikCSS').style.visibility = "hidden";
		document.getElementById('GrafikBOX').style.visibility = "hidden";
	}

	function InfoAnz(was)
	{
     new Ajax.Updater({ success: 'InfoBOX'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'infotexte',was:was}
     }
     );
    }

    var was = "";

	function Info(was)
	{
		document.getElementById('InfoBOX').innerHTML 			   = InfoAnz(was);
		document.getElementById('InfoBOX').style.position    	   = "absolute";
		document.getElementById('InfoBOX').style.visibility 	   = "visible";
		document.getElementById('InfoBOX').style.top 	   		   = "250px";
		document.getElementById('InfoBOX').style.left       	   = "260px";
		document.getElementById('InfoBOX').style.backgroundColor   = "#ffffff";
	}

	function InfoObenAnz(was)
	{
     new Ajax.Updater({ success: 'InfoBOX'} ,'shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'infotexte',was:was}
     }
     );
    }

    var was = "";

	function InfoOben(was)
	{
		document.getElementById('InfoBOX').innerHTML 			   = InfoObenAnz(was);
		document.getElementById('InfoBOX').style.position    	   = "absolute";
		document.getElementById('InfoBOX').style.visibility 	   = "visible";
		document.getElementById('InfoBOX').style.top 	   		   = "250px";
		document.getElementById('InfoBOX').style.left       	   = "260px";
		document.getElementById('InfoBOX').style.backgroundColor   = "#ffffff";
	}

	var InfoAnzeige =('<center><table width=450px style=\"border:1px dotted #000000;\" height=250px border=0 background-color=#ffffff><tr><td valign=middle align=center><li><b>Normale Suche</b> Eingabe eines oder mehrerer Zeichen der originalen Patronennummer. F&uuml;r eine HP Laserjet Patrone z.B. &quot;c4096&quot;. </li><li><b>Erweiterte Suche</b> Sie k&ouml;nnen auch den Hersteller und die Patronennummer eingeben. Beide Eingaben m&uuml;ssen durch das &quot;+&quot; getrennt sein, z.B. &quot;hp+27&quot;, &quot;Lexmark+16&quot;, &quot;Brother+lc900&quot;, ...</li></td></tr></table></center>');
	
	function InfoText()
	{         
		document.getElementById('InfoBOX').innerHTML 			   = InfoAnzeige;
		document.getElementById('InfoBOX').style.visibility 	   = "visible";
		document.getElementById('InfoBOX').style.top 	   		   = "200px";
		document.getElementById('InfoBOX').style.left       	   = "360px";
		document.getElementById('InfoBOX').style.backgroundColor   = "#ffffff";
	}
	
	function InfoTextBeenden()
	{
	    document.getElementById('InfoBOX').style.visibility = "hidden";
	}

	function fertigBestell()
	{
	  	function seiteoffen(){
	  		window.location.href = "http://www.printor.de/shop/";
	  	}
		window.setTimeout("seiteoffen()", 5000);
	}

    function ZahlenOK() {

     new Ajax.Request('../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'zahlenokschalter'}         
     }
     );
    }

    function ZahlenOKschalter() {

     new Ajax.Updater({ success: 'abschickentun'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'abschickenmachen'}
     }
     );
    }

	function BildAnz(was)
	{
     new Ajax.Updater({ success: 'InfoBOX'} ,'../shop/zahlung/zahlung_rpc.php',{
         method:'post',
         parameters:{aktion:'Bilder',was:was}
     }
     );
    }

    var was = "";
/*function Bild(was)
	{
    	Ereignis = window.event;
    
    	var klickpos = Ereignis.offsetY + Ereignis.clientY;  // Auslesen der Mausposition (top) beim klicken
    	var gesammtanzeige = document.getElementById('gesammteseite').offsetHeight; //anzeigegröße
		var picpos   = 0;                        //init der Bildposition
		
    	if (klickpos > (gesammtanzeige - 100)) { // wenn mauspos unter aktuelle untere höhe minus 100 (max pic größe)
        	picpos = (gesammtanzeige - 101);     
    	} else if (klickpos < 20) {				 // wenn mauspos über oberen bildrand minus 20
    	    picpos = klickpos + 20;
    	} else {								 // sonst standart maushöhe
    	    picpos = klickpos;
    	}
    
		document.getElementById('InfoBOX').innerHTML 			   = BildAnz(was);
		document.getElementById('InfoBOX').style.position 	   	   = "absolute";
		document.getElementById('InfoBOX').style.visibility 	   = "visible";
		document.getElementById('InfoBOX').style.top 	   		   = "10px";
		document.getElementById('InfoBOX').style.top 		       = picpos;
		document.getElementById('InfoBOX').style.left       	   = "360px";
		document.getElementById('InfoBOX').style.backgroundColor   = "#ffffff";
	}

	function BildBeenden()
	{
	    document.getElementById('InfoBOX').style.visibility = "hidden";
	}
*/

    function dateiwahl(daten) {

     new Ajax.Updater({ success: 'case1'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'case2', what:daten},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function eintrag(druck,lcode) {
     var lat;
     var latx;

     var rat;
     var ratx;

     for(var j = 0; j < lcode.length; j++)
     {
         if (j == 0) {
             lat  = lcode[j].value;
             latx = lcode[j].selected;
         }
         if (j > 0) {
             lat  = lat + ',' + lcode[j].value;
             latx = latx + ',' + lcode[j].selected;
         }
     }

     for(var y = 0; y < druck.length; y++)
     {
         if (y == 0) {
             rat  = druck[y].value;
             ratx = druck[y].selected;
         }
         if (y > 0) {
             rat  = rat + ',' + druck[y].value;
             ratx = ratx + ',' + druck[y].selected;
         }
     }
     new Ajax.Updater({ success: 'test'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'arteintragen', what:ratx, string:rat, lhat:latx, ltring:lat},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'artikelnum1'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'artikelnum1'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

    function loscheart(druck) {

     var rat;
     var ratx;

     for(var y = 0; y < druck.length; y++)
     {
         if (y == 0) {
             rat  = druck[y].value;
             ratx = druck[y].selected;
         }
         if (y > 0) {
             rat  = rat + ',' + druck[y].value;
             ratx = ratx + ',' + druck[y].selected;
         }
     }
     new Ajax.Updater({ success: 'test'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'artloeschen', what:ratx, string:rat},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
     new Ajax.Updater({ success: 'artikelnum1'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'artikelnum1'},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
    }

	function farbsave(farbnr,farbwg)	{
     new Ajax.Updater({ success: 'farbaktu'} ,'./../admin/sucherpc_post.php',{
         method:'post',
         parameters:{aktion:'lwg_farbe_speichern', farbe:farbnr, warengr:farbwg},
         onerror:function(){
             alert('DAT FEHLER...');
         }
     }
     );
	}

