// Author: Sam Liddicott
// Released to the public domain; it's to cheesy to claim (C) on
//
// Where you want to have multiple onload code fragments:
// merely include this JS file and do
// requestOnLoad("some javascript");
// at the end of you page, call
// onLoadedComplete();
var onLoadJS="";
var onLoadOriginal=window.onload;

function requestOnLoad(js) {
	onLoadJS=onLoadJS+js+";";
}

function onLoadComplete() {
  document.write('<script type="text/javascript">function onLoadLoaded() {'+onLoadJS+'if (onLoadOriginal) onLoadOriginal();} window.onload=onLoadLoaded;</scr'+'ipt>');
}
//requestOnLoad('alert("hello")');
//requestOnLoad('alert("bye")');


