	var currentload = 0;

	function finished() {
	}

	function loading() {
	}

	function getElementsByStyleClass (className) {
		var all = document.all ? document.all : document.getElementsByTagName('*');
		var elements = new Array();

		for (var e = 0; e < all.length; e++) {
			if (all[e].className == className) {
				elements[elements.length] = all[e];
			}
		}

		return elements;
	}

	function hideBasket(needle){
		var table = document.getElementById("kassabon");
		for (var j = 0; j < table.rows.length - 2; j+=1) {
			if(table.rows[j].getAttribute('unique') == needle){
				table.rows[j].style.display = 'none';
			}
		}
	}

	function loopLoading(){
		currentload = currentload + 1;

		if(document.getElementById('loadingstatus'+currentload)){
			document.getElementById('loadingstatus'+currentload).style.visibility = 'visible';
		}

		setTimeout("loopLoading()", 1500);
	}

	function selectOption(list, choice){
		for(i = 0; i < list.length; i++){
			if(list[i].id == choice){
				list.selectedIndex = i;
			}
		}
	}

	function calculatetotals() {
		var total = 0;
		var table = document.getElementById("kassabon");
		for (var j = 0; j < table.rows.length - 2; j+=1) {
			if(table.rows[j].cells[3]){
				if(table.rows[j].style.display != 'none'){
					total = total + parseFloat(table.rows[j].cells[3].innerHTML);
				}
			}
		}

		document.getElementById("totaalprijs").innerHTML = number_format(total, 2, ".", "");
	}

