﻿function OnLoad()
{
	this.functions = null;
}

OnLoad.prototype.AddFunction = function(funk)
{
	if(this.functions == null)
	{
		this.functions = new Array();
		window.onload = new Function('onLoad.Execute();');
	}
	this.functions[this.functions.length] = funk;
};

OnLoad.prototype.Execute = function()
{
	for (i = 0; i < this.functions.length; i++)
	{
		var temp = new Function(this.functions[i]);
		temp();
	}
};
