window.onload = initPage;

var onLoadFunctions = new Array();

function addOnLoad (fnName) {
	onLoadFunctions[onLoadFunctions.length] = fnName;
}

function initPage() {
	var i = 0;
	var l = onLoadFunctions.length;
	
	for (i = 0; i < l; i++) {
		onLoadFunctions[i].call();
	}									
}

function initCommon() {
	if ($('userInfo')) {
		$('userInfo').onchange = switchAccount;
	}
	
}

addOnLoad(initCommon);

if (location.hash == '#ref_err=1') {
	setTimeout('alert("You do not have access to this section or functionality.")', 250);
}
