una possibile soluzione è fare:

codice:
 
 var n=new Number(document.InputForm.prezzoTesto);
 if(new String(n)!="NaN")
         alert("error");