Example of referring to an object:
document.formName.ElementName.value document.forms[0].Elements[0].value