
				function ChangeImage (object, productimage, defaultvalue, values) {
					if (values[object.selectedIndex] == '' || values[object.selectedIndex] == null)
						document.getElementById (productimage).src = defaultvalue;
					else
						document.getElementById (productimage).src = values[object.selectedIndex];
				}
		
				function ChangeOrderNumber (object, ordernumber, defaultvalue, values) {
					if (values[object.selectedIndex] == '' || values[object.selectedIndex] == null)
						document.getElementById (ordernumber).innerHTML = defaultvalue;
					else
						document.getElementById (ordernumber).innerHTML = values[object.selectedIndex];
				}
				
				function addCommas(nStr) {
					nStr += '';
					x = nStr.split('.');
					return x[0] + ',' + x[1];
				}
				
				function ChangePrice (objects, productPrice, prices, VAT, productId, listType) {
					var price = productPrice;
					for (x in objects) {
						price += prices[objects[x].id][objects[x].selectedIndex];
					}
					var priceWithoutVAT = price/(1 + (VAT/100));
					var price2 = price*30.126;
					var price2WithoutVAT = price2/(1 + (VAT/100));

					if (listType) {
						if (document.getElementById ('priceWithoutVAT' + productId)) {
							document.getElementById ('priceWithoutVAT' + productId).innerHTML = addCommas (priceWithoutVAT.toFixed(2));
							document.getElementById ('priceWithoutVAT' + productId).innerHTML += ' ' + '€';
							document.getElementById ('priceWithoutVAT' + productId).innerHTML += '<br />' + addCommas (price2WithoutVAT.toFixed(2));
							document.getElementById ('priceWithoutVAT' + productId).innerHTML += ' ' + 'Sk';
						}
						
						if (document.getElementById ('priceWithVAT' + productId)) {
							document.getElementById ('priceWithVAT' + productId).innerHTML = addCommas (price.toFixed(2));
							document.getElementById ('priceWithVAT' + productId).innerHTML += ' ' + '€';
							document.getElementById ('priceWithVAT' + productId).innerHTML += '<br />' + addCommas (price2.toFixed(2));
							document.getElementById ('priceWithVAT' + productId).innerHTML += ' ' + 'Sk';
						}
					}
					else {
						if (document.getElementById ('priceWithoutVAT' + productId)) {
							document.getElementById ('priceWithoutVAT' + productId).innerHTML = addCommas (priceWithoutVAT.toFixed(2));
							document.getElementById ('priceWithoutVAT' + productId).innerHTML += ' ' + '€';
						}
						
						if (document.getElementById ('priceWithVAT' + productId)) {
							document.getElementById ('priceWithVAT' + productId).innerHTML = addCommas (price.toFixed(2));
							document.getElementById ('priceWithVAT' + productId).innerHTML += ' ' + '€';
						}
						
						if (document.getElementById ('price2WithoutVAT' + productId)) {
							document.getElementById ('price2WithoutVAT' + productId).innerHTML = addCommas (price2WithoutVAT.toFixed(2));
							document.getElementById ('price2WithoutVAT' + productId).innerHTML += ' ' + 'Sk';
						}
						
						if (document.getElementById ('price2WithVAT' + productId)) {
							document.getElementById ('price2WithVAT' + productId).innerHTML = addCommas (price2.toFixed(2));
							document.getElementById ('price2WithVAT' + productId).innerHTML += ' ' + 'Sk';
						}
					}
				}
				
				function AllowOrder (select, productId, stockCounts, quantity) {
					if (stockCounts[select.selectedIndex] >= quantity) {
						document.getElementById ('AddToCart' + productId).style.visibility = 'visible';
						document.getElementById ('StockWarning' + productId).innerHTML = '';
					}
					else {
						document.getElementById ('AddToCart' + productId).style.visibility = 'hidden';
						document.getElementById ('StockWarning' + productId).innerHTML = 'Požadované množstvo nie je na sklade.';
					}
				}
				
				function AllowOrderProduct (productId, stockCount, quantity) {
					if (stockCount >= quantity) {
						document.getElementById ('AddToCart' + productId).style.visibility = 'visible';
						document.getElementById ('StockWarning' + productId).innerHTML = '';
					}
					else {
						document.getElementById ('AddToCart' + productId).style.visibility = 'hidden';
						document.getElementById ('StockWarning' + productId).innerHTML = 'Požadované množstvo nie je na sklade.';
					}
				}