var _ONLOAD_FUNCTIONS = new Array();

function addOnLoadFunction(fn) {
	try {
		_ONLOAD_FUNCTIONS[_ONLOAD_FUNCTIONS.length] = fn;
		return true;
	} catch(e)
	{
		return false;
	}
}

function runOnLoadFunction() {
	var i;
	try
	{
		for(i=0; i<_ONLOAD_FUNCTIONS.length; i++) {
	 		execScript(_ONLOAD_FUNCTIONS[i]);
		}
		return true;
	} catch(e)
	{
		return false;
	}
}

