<!-- Begin

function price_preview(thisform, inputString, inputMultiplier) {
// alert (thisform.PricePreview); 
	if (inputString.indexOf(',') != -1 && inputString.indexOf('.') != -1 || inputString.match(/[^\d|\s|,|\.|\-|\+]+/)) {
		if (typeof(thisform.PricePreview) != 'undefined') {
			thisform.PricePreview.value = 'HIBÁS ÁR'; // this is the error condition
		}
		return;
	}
	if (inputString == '') {
		if (typeof(thisform.PricePreview) != 'undefined') {
			thisform.PricePreview.value = ''; // set empty if empty
		}
		return;
	}
	if (typeof(thisform.PricePreview) != 'undefined') {
		var adjustedValue = inputString.replace(',', '.');
		adjustedValue = adjustedValue + 'e' + inputMultiplier;
		var nf = new NumberFormat(adjustedValue);
		nf.setSeparators(true, ' ', '.');
		nf.setPlaces(0);
	  thisform.PricePreview.value = nf.toFormatted();
	}
}

function count_chars(input, chr) {
	var count = 0;
	for (var i=0;i<input.length;i++) {
		if (input.substr(i,1) == chr) {
			count++;
		}
	}
// alert ('count: ' + count); // display info about error
return count;
}

// End -->



