A: 

Why don't you use something like:

Use ID="Insert" on the button, and do this..

element = document.getElementById("Insert");
element.click();
simpleblob
Assume you cannot modify the HTML of the page. So hw do you go about locating that elemnt so that you can add an ID to it at runtime?
PoorLuzer
I would use: document.getElementsByTagName("input")[0];to get the first input element.and loop if there's more than 1 input element.
simpleblob