document.forms.length
for(var i=0; i<document.forms.length; i++)
    //document.forms[i]  //得到表单对象