se voglio un <input type="image" name="myimage" uso document.form_name.myimage
se uso un <img name="myimage" si fa document.images['myimage']