Best way to organize javascripts functions

I would like to know what is the best way to organize your website js files?
Should i put all the functions together in one file or just put the necessary functions in the appropriate pages (inline or in an external file)?

What do you think?
My js arent too complex, mainly functions to handle click events, ajax calls and some basic effects.

An external file is always better. That way you don’t make your HTML page enormous and also (the main benefit) the browser can cache the file.

You should also try to keep the number of external javascript files to a minimum (1 ideally). Then you make as few HTTP requests as possible, which will avoid slowing down the loading of your page.