Hi, I can answer only the first question. use *document.forms[0].name. *this will give you the name of the first form in the page. similarly using *document.forms[0].elements[0].name* you can get the name of the first element in the first form [Non-text portions of this message have been removed]