function phod(value, id) {
	$("#phodnocenie").load("phod.php?id=" + id + "&value=" + value); 
}
function add() {
  $("#from1 option:selected").remove().appendTo("#to1");  
  $("#to1 option")[0].selected = true;
  $("#from1").select();  
}
function remove() {
  $("#from1 option").remove();
  if(document.getElementById('to1').options.length == 1) {
    $("#to1 option").remove();
  }
  $("#to1").removeOption(/./, true);
  $("#from1").html($("#from2").html());
  $("#to1 option").each(function(i) { $("#from1").removeOption($(this).text()); } );
  $("#from1 option")[0].selected = true;
  $("#to1").select();    
}
function order_p(elem, pos, price) {
	if(elem.checked) { 
		var tmp = document.getElementById('price' + pos).innerHTML;
		tmp++;
		tmp--;
		document.getElementById('price' + pos).innerHTML = tmp + price;
		var tmp = document.getElementById('price_sum').innerHTML;
		tmp++;
		tmp--;
		document.getElementById('price_sum').innerHTML = tmp + price;
	}
	else {
		var tmp = document.getElementById('price' + pos).innerHTML;
		tmp++;
		tmp--;
		document.getElementById('price' + pos).innerHTML = tmp - price;
		var tmp = document.getElementById('price_sum').innerHTML;
		tmp++;
		tmp--;
		document.getElementById('price_sum').innerHTML = tmp - price;
	}
}
function order_s(pos, id) {
	for(i = 0; i < 10; i++)
		document.getElementById('div'+pos+i).style.display = 'none';
	document.getElementById('div'+pos+id).style.display = 'block';
}
