
/*
   Copyright 2002 The GoHome Networks, Inc. All rights reserved. No
   reproduction, distribution, or transmission of the copyrighted
   materials at this site is permitted without the written permission
   of The GoHome Networks, unless otherwise specified. MLSWorks,
   BrokerWorks, ActiveListing, and AdTracker are Trademarks of
   The GoHome Networks, Inc.

   ActiveAgent is a registered Service Mark of The GoHome Networks, Inc.
*/

var onLoadFunctions = new Array();

function RegisterOnLoadFunction (thefunc, theparams)
{
	nextfunction = onLoadFunctions.length;

	onLoadFunctions[nextfunction] = new Object();

	onLoadFunctions[nextfunction].functioncall = thefunc;
	onLoadFunctions[nextfunction].parameters = theparams;

	return nextfunction+1;
}

function DoOnLoad ()
{
	var i;
	for (i=0;i<onLoadFunctions.length;i++) {
		onLoadFunctions[i].functioncall(onLoadFunctions[i].parameters);
	}
}
