/**********************************************************************************
     
   Name:           	ChangeFundType

   Description:    	This function takes in the value of the fund type selected and
   					redirects it to p_FundTable with the fund type in the URL.

   Assumptions:    
				
   Author:         	Aurianne Trussart
   
   Date:			April 18th, 2001

**********************************************************************************/

function ChangeFundType(strSort, tab, LI) {
	slink = "p_FundTable.asp?TAB=" + tab + "&FT=" + document.frm_FundType.lst_FundType[document.frm_FundType.lst_FundType.selectedIndex].value + "&LI=" + LI + "#fundCard";
	top.document.location.href = slink;
}

/**********************************************************************************
     
   Name:           	ChangeFundTypePrint

   Description:    	This function takes in the value of the fund type selected and
   					redirects it to p_FundTable with the fund type in the URL.

   Assumptions:    
				
   Author:         	Aurianne Trussart
   
   Date:			April 18th, 2001

**********************************************************************************/

function ChangeFundTypePrint(strSort, tab, LI) {
	slink = "p_PrintFundTable.asp?TAB=" + tab + "&FT=" + document.frm_FundType.lst_FundType[document.frm_FundType.lst_FundType.selectedIndex].value + "&LI=" + LI + "#fundCard";
	top.document.location.href = slink;
}

/**********************************************************************************
     
   Name:           	ChangeFundTypeMF

   Description:    	This function takes in the value of the fund type selected and
   					redirects it to p_FundTable with the fund type in the URL. Used
					in the Mutual Funds section. (Takes in the Product ID)

   Assumptions:    
				
   Author:         	Aurianne Trussart
   
   Date:			May 17th, 2001

**********************************************************************************/

function ChangeFundTypeMF(strSort, tab, product, LI, SI) {
	if( product == 3 )	
		slink = "p_FundTable.asp?TAB=" + tab + "&PID=" + product + "&FT=" + document.frm_FundType.lst_FundType[document.frm_FundType.lst_FundType.selectedIndex].value + "&FC=" + document.frm_FundType.lst_FundCategory[document.frm_FundType.lst_FundCategory.selectedIndex].value + "&LI=" + LI + "&SI=" + SI + "#fundCard";
	else
		slink = "p_FundTable.asp?TAB=" + tab + "&PID=" + product + "&FT=" + document.frm_FundType.lst_FundType[document.frm_FundType.lst_FundType.selectedIndex].value + "&LI=" + LI + "&SI=" + SI + "#fundCard";

	document.location.href = slink;
}

/**********************************************************************************
     
   Name:           	ChangeFundTypeMFPrint

   Description:    	This function takes in the value of the fund type selected and
   					redirects it to p_FundTable with the fund type in the URL. Used
					in the Mutual Funds section. (Takes in the Product ID)

   Assumptions:    
				
   Author:         	Aurianne Trussart
   
   Date:			May 17th, 2001

**********************************************************************************/

function ChangeFundTypeMFPrint(strSort, tab, product, LI) {
	slink = "p_PrintFundTable.asp?TAB=" + tab + "&PID=" + product + "&FT=" + document.frm_FundType.lst_FundType[document.frm_FundType.lst_FundType.selectedIndex].value + "&LI=" + LI + "#fundCard";
	top.document.location.href = slink;
}

/**********************************************************************************
     
   Name:           	ChangeFundProductMF

   Description:    	This function takes in the value of the fund family selected and
   					redirects it to p_FundTable with the fund family in the URL. Used
					in the Mutual Funds section. (Takes in the Site ID)

   Assumptions:    
				
   Author:         	Aurianne Trussart
   
   Date:			May 17th, 2001

**********************************************************************************/

function ChangeFundProductMF(SI, type) {
	if (type == "MF") {
		if (document.frm_FundProduct.lst_FundProduct[document.frm_FundProduct.lst_FundProduct.selectedIndex].value == "7") {
			slink = "p_FundTable.asp?PID=7&SI=" + SI + "&MAP=Y";
		} else if (document.frm_FundProduct.lst_FundProduct[document.frm_FundProduct.lst_FundProduct.selectedIndex].value == "allEFunds") {
			slink = "p_FundTable.asp?PID=10&SI=" + SI + "&MAP=Y";
		} else {
			slink = "p_FundTable.asp?PID=" + document.frm_FundProduct.lst_FundProduct[document.frm_FundProduct.lst_FundProduct.selectedIndex].value + "&SI=" + SI;
		}
	} else if (type == "MAP") {
		if (document.frm_FundProductMap.lst_FundProduct[document.frm_FundProductMap.lst_FundProduct.selectedIndex].value == "allInvestor") {
			slink = "p_FundTable.asp?PID=7&MAP=Y&SI=" + SI;
		} else if (document.frm_FundProductMap.lst_FundProduct[document.frm_FundProductMap.lst_FundProduct.selectedIndex].value == "allAdvisor") {
			slink = "p_FundTable.asp?PID=12&MAP=Y&SI=" + SI;
		} else {
			slink = "p_FundTable.asp?PID=" + document.frm_FundProductMap.lst_FundProduct[document.frm_FundProductMap.lst_FundProduct.selectedIndex].value + "&SI=" + SI;
		}
	}
	document.location.href = slink;
}
