Using do JavaScript in Safari to select check box

I am builing a script that uses the do JavaScript in safari to enter in form data.

do JavaScript “window.document.forms[2].elements[5].value='” & firstname & “';” in document 1

Does anybody know how to select a check box, pull down list or radiio button using the same?