If an HTML document contains more than one forms, they can be accessed as either by document.form_name where form_name is the value of the name attribute of the form element or by document.forms[i] where i is 0, 1,2,3.... and document.forms refers to the first form of the document, document.forms refers to the second form of the document and so on.
Elements of a form can be accessed by document.form_name.form_element where form_name is the value of the name attribute of the form element, form_element is the value of the name attribute of the form's element.
There are other ways of accessing the forms as well as form's elements also using DOM API. But that is beyond the scope of this tutorial.
Solve these problems: