codice:<html> <head><title>pricing characters set</title> <script type="text/javascript" language="javascript"> <!-- function count() { qty = document.field.area1.value.replace(/ /g, ''); document.field.testo.value = qty.length; document.field.price.value = 15.75 + 1.75*qty.length; } //--> </script> </head> <body bgcolor="#900000" text="#E3E3E3" onload='document.field.area1.focus();'> <h1>&nbsp;</h1> <div align="center"> <form name="field"> <table> <td> Char: <input type="text" name="testo" id="testo" size="8"> &nbsp; Price €.: <input type="text" name="price" id="price" size="8"> </td><td> </tr><tr> <td> <textarea name="area1" rows="12" cols="50" onkeyup='count();'></textarea> </td></tr> </table> </form> </div> </body> </html>