try{parseFloat(myform.textname.value)}catch(e){alert("请完全填写资料!")}