

document.write('<div id="mLayer0">');
document.write('	<table bgcolor="336633" border="1" cellpadding="3" cellspacing="1" width="130">');
document.write('		<tr><td bgcolor="336633" class="smbodytext"><span class="whitetext"><a href="javascript:toggle(1);"><img src="/images/youraccounts.gif" border="0"></a><br><img src="/images/spacer.gif" height="5"><br>');

document.write('user: <b>' + usr_name + '</b><br>');
		
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="editpersonal.php" class="whitetext">edit</a> personal info<br>');
		
document.write('<img src="/images/spacer.gif" height="5"><br>');

var d = 0;

do {
	for ( i = 0; i < eval("fund_" + d + ".length"); i++ )
	{
		for ( j = i; j < eval("fund_" + d + ".length") - 1; j++ )
		{
			if ( eval("fund_" + d + "[" + ( j + 1 ) + "]") < eval("fund_" + d + "[" + j + "]") )
			{
				var tempValue1 = eval("fund_" + d + "[" + ( j + 1 ) + "]");
				var tempValue2 = eval("fund_id_" + d + "[" + ( j + 1 )+ "]");
				eval("fund_" + d + "[" + ( j + 1 ) + "] = fund_" + d + "[" + j + "]");
				eval("fund_id_" + d + "[" + ( j + 1 )+ "] = fund_id_" + d + "[" + j + "]");
				eval("fund_" + d + "[" + j + "] = tempValue1");
				eval("fund_id_" + d + "[" + j + "] = tempValue2");
			}
		}
	}
	d++;
}
while ( eval("typeof(fund_" + d + ") != 'undefined'") )

for ( i = 0; i < entity_list.length; i++ )
{
	document.write('<b>' + eval("entity_list[" + i + "]") + '</b><br>');

	for ( j = 0; j < eval("fund_" + i + ".length"); j++ )
	{
///Remove the if when IV Goes Live	
//		if (eval("fund_id_" + i + "[" + j + "]")!="7") 
		{
		document.write('&nbsp;&nbsp;<a href="schedule.php?fund_id='+eval("fund_id_" + i + "[" + j + "]")+'&entity_id='+eval("entity_id_list[" + i + "]")+'" class="whitetext">' + eval("fund_" + i + "[" + j + "]") + '</a><br>');
		}
	}

	document.write('<img src="/images/spacer.gif" height="5"><br>');
}

document.write('		</span></td></tr>');
document.write('	</table>');
	
document.write('</div>');

document.write('<div id="mLayer1">');
document.write('	<table bgcolor="336633" border="1" cellpadding="3" cellspacing="1" width="130">');
document.write('		<tr><td bgcolor="336633" class="smbodytext"><a href="javascript:toggle(0);"><img src="/images/youraccounts.gif" border="0"></a><br></td></tr>');
document.write('	</table>');
	
document.write('</div>');

