che idiota...

codice:
function count(dt) {
	arr = dt.split(\',\');
   qty = document.field.area1.value.replace(/ /g, \'\');
   document.field.testo.value = qty.length;
   document.field.price.value = parseFloat(arr[0]) + parseFloat(arr[1])*qty.length;
 }