function esc(x){
x = escape(x).replace(/\+/g, "%2b");
if (x.substring(0,2)=="\%u") x="";
return x;
}

function updateURL() {
		
		var p = new Array();
		var i = 0;
		var url="";
		var z = document.getElementById("managerOverview");
	
		if (z.selecttype.options[z.selecttype.selectedIndex].value == 1) {		
			{p[i++]='selecttype=1'} 
		}

		if (z.selecttype.options[z.selecttype.selectedIndex].value == 2) {		
			{p[i++]='selecttype=2'} 
		}
		
		if (z.selecttype.options[z.selecttype.selectedIndex].value == 3) {
			{p[i++]='selecttype=3'} 
		}		

		if (z.asset_class.options[z.asset_class.selectedIndex].value.length)
			{p[i++]='assetid='+esc(z.asset_class.options[z.asset_class.selectedIndex].value);}



		if (p.length > 0) {
			url = p[0];
				for (var j = 1; j < p.length; j++) { 
					url += "&" + p[j]; 
				}
			}

			location.href = 'http://' + document.domain + '/view/page/investor/714?' + url;		
			return false;

}
function collecturl() {
	
	var p = new Array();
	var i = 0;
	var url="";
	var z = document.getElementById("managerOverview");

	if (z.selecttype.options[z.selecttype.selectedIndex].value.length == 0)
		{alert('Please select a category.'); return false;}
		
	if (z.selecttype.options[z.selecttype.selectedIndex].value == 1) {p[i++]='917?';}
	if (z.selecttype.options[z.selecttype.selectedIndex].value == 2) {p[i++]='712?';}
	if (z.selecttype.options[z.selecttype.selectedIndex].value == 3) {p[i++]='728?';}
	
	if (z.asset_class.options[z.asset_class.selectedIndex].value.length)
		{p[i++]='ASSET_CLASS='+esc(z.asset_class.options[z.asset_class.selectedIndex].value);}
	
	if (z.selecttype.options[z.selecttype.selectedIndex].value == 1) 
		{p[i++]='MONEY_MANAGER='+esc(z.money_manager.options[z.money_manager.selectedIndex].value);}

	if (z.selecttype.options[z.selecttype.selectedIndex].value == 3) 
		{p[i++]='SUBACCOUNT='+esc(z.subaccount.options[z.subaccount.selectedIndex].value);}

	if (p.length > 0) {
		url = p[0];
			for (var j = 1; j < p.length; j++) { 
				url += "&" + p[j]; 
			}
		}

		location.href = 'http://' + document.domain + '/view/page/investor/' + url;
	}