I have a javascript function on my page call checkout().

How can I call this function from anywhere in my page.

Presently I have it in my input statement like this..

<input type="button" onclick="checkout()" value="submit">

I want to be able to call this function anywhere/anytime in my page.

Thanks