/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

 
function kamAdd() {
  alert('Błąd 1');
}
function tsuAdd() {
  alert('Błąd 2');
}
//function kamAdd(){
//    var kam = document.getElementById('kam').value;
//    kam = parseInt(parseInt(kam)+parseInt(5));
//    document.getElementById("kkam").innerHTML=kam;
//    document.getElementById('kam').value=kam;
//    setCookie("kam",kam,10);
//    kamEdit();
//}
//function tsuAdd(){
//    var tsu = document.getElementById('tsu').value;
//    tsu = parseInt(parseInt(tsu)+parseInt(5));
//    document.getElementById("ktsu").innerHTML=tsu;
//    document.getElementById('tsu').value=tsu;
//    setCookie("tsu",tsu,10);
//    tsuEdit();
//}



function setKoszyk(prodKey, newVal) {
  document.getElementById('kosz_'+prodKey).innerHTML = newVal;
  document.getElementById('prod_'+prodKey).value = newVal;
  setCookie('basket_'+prodKey, newVal, 10);
}

function edited(prodKey) {
  var prodVal = document.getElementById('prod_'+prodKey).value;
  setKoszyk(prodKey, prodVal);
}


