var onloadFunctions = new Array();

function addOnload( f ) {
	onloadFunctions[onloadFunctions.length] = f;
}

function existsOnload( f ) {
	for ( i = 0; i <onloadFunctions.length; i++ ) { 
		if ( onloadFunctions[i] == f )
			return true;
	}
	return false;
}

window.onload = function () { for ( i = 0; i <onloadFunctions.length; i++ ) { onloadFunctions[i](); } }

