 function change_price()
  {
   var deliver_temp = document.getElementById('deliver_select');
   temp_value = deliver_temp.value.split("_");
   var new_deliver_price = temp_value["1"];
   var label = document.getElementById('price_label');
   var label2 = document.getElementById('deliver_label');
   
   var price = document.getElementById('total_price_id');
   var deliver_price = document.getElementById('deliver_price_id');
   var discount_price = document.getElementById('discount_price_id');
   
   deliver_price.value = new_deliver_price;
   if (deliver_price.value>0) 
    {
     var price_temp;
     price_temp = (parseInt(price.value) + parseInt(new_deliver_price) - parseInt(discount_price.value));
     label.innerHTML = Math.round((price_temp/30.126)*100)/100+' EUR'+' ('+price_temp+' Sk)';
     label2.innerHTML = Math.round((new_deliver_price/30.126)*100)/100+' EUR'+' ('+new_deliver_price + ' Sk)';
    }
     else
      {
       price_temp = (parseInt(price.value) + parseInt(new_deliver_price) - parseInt(discount_price.value));
       label.innerHTML = Math.round((price_temp/30.126)*100)/100+' EUR'+' ('+(price_temp) + ' Sk )';       
       label2.innerHTML ='0 EUR (0 Sk)';
      }
  }
  
 function test_agree()
  {
   var agree = document.getElementById('agree_check');
   if (agree.checked == true) document.forms[1].submit();
    else alert('Je potrebné súhlasiť so všeobecnými obchodnými podmienkami!');
  }