function intoCart(path, pgid, session, itemid, descr){
    var id = "a__" + itemid;
    var anz = document.getElementById(id).value;
    if (!anz){
        anz = 1;
    }
    var url = path+'?placecart'+pgid+'!0,'+session;
    try {
      req = new HTTP.Request(
      {
        uri: url, 
        postbody: 'a__' +itemid+'='+ anz,
        onSuccess: function (trans) {
            printCart(path, session);
            
        }
      }); 
    }
    catch(e)
    {
    return;
    }
}

function intoFav(path, pgid, session, itemid){

    var date = new Date();
    var id = "a__" + itemid;

    var url = path+'?favaddsearch' + pgid + ':00010000!0,' + session +',' + itemid + ',0,' + date.getTime();
 
    try {
      req = new HTTP.Request(
      {
        uri: url, 
        postbody: itemid,
        onSuccess: function (trans) {
          ajaxShowFav(itemid);
        }
      }); 
    }
    catch(e)
    {
    return;
    }
}

function printCart(path, session) {
    try {
      req = new HTTP.Request(
      {
        uri: path+'?show1200114983,'+session, 
        postbody: session,
        onSuccess: function (trans) {
          ajaxShowWk("<h3 style=\"text-align: left; color: black;\">Schnellansicht Warenkorb</h3>" + trans.responseText);         
        }
      }); 
    }
    catch(e)
    {
    return;
    }
}
