我不想要象下面那样用
if(document.forms[0].elements[i].type=="button") 
document.forms[0].elements[i].value="HelloWorld";不爽