<form name="rfqRespondForm">
价格一<input type="text" name="prod_price0"><br>
价格一<input type="text" name="prod_price1"><br>
价格一<input type="text" name="prod_price2"><br>
<input type="button" value="check" onclick="checkColor('color')">
检查一下时候是数字 1,000.00为合法
<script language="JavaScript">
//this function is to get off all the comma
function GetOutOffComma(str){
re = /,/gi;
newstr=str.replace(re, "");
return newstr;
}
//this function judge the regular expression if the current input is not obey the rule then we return false ,then focus and select it
function checkColor(object)
{
for(i=0;i<3;i++){
alert(i+"-----------------");
alert("---------------------"+"prod_price"+i+"");
alert(document.all["prod_price"+i+""].value);
//alert(i+"---------------"+document."prod_price"+i+"".value);
}
}
</script>