function updatePriceDisplay(i,qtyInputField,qty,maxQty) {
	qty = parseInt(qty);
	maxQty = parseInt(maxQty);
	if (qty>maxQty) {
		qty = maxQty;
		qtyInputField.value = qty;
	}		
	var prices = document.getElementById("tierPrices"+i).firstChild.nodeValue;
	prices = prices.split(";");
	stkPrice =  prices[0].split(":")[1];
	for (j=0;j<prices.length;j++) {
		price = prices[j].split(":");
		tierQty = parseInt(price[0]);
		tierPrice = price[1];
		if (qty >= tierQty) stkPrice = tierPrice;
	}
	document.getElementById("wendwebPriceDiv"+i).firstChild.nodeValue = stkPrice;
}

/* Einblenden / Ausblenden Indexed Search */
function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
	 thisfield.value = "";
	}
}

function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
	 thisfield.value = defaulttext;
	}
}
