usage:
addLoadEvent(firstFunction);
addLoadEvent(secondFunction);

Take a memo, I saw this script in DOM scripting,the book I was reading, and it’s written by Simon Willison (http://simon.incutio.com/)