/**********************************************************************************
     
   Name:           	ProcessDownload

   Description:    	This function takes in the value of the download type selected
   					and redirects to the v_ProcessDownload.asp page in the virtual
					directory /TDAMFunds/Download. Only used on the TDCanadaTrust
					frame site.

   Assumptions:    
				
   Author:         	Aurianne Trussart
   
   Date:			October 17th, 2001

**********************************************************************************/

function ProcessDownload(strSort, tab, product, fundType, allMAP, siteID) {
	downloadType = document.frm_downloads.lst_downloads[document.frm_downloads.lst_downloads.selectedIndex].value
	if (downloadType != "none") {

		this.name = "MAINPAGE";
		winName = "downloadWin";
		slink = "/TDAMFunds/Download/v_Download.asp?TAB=" + tab + "&PID=" + product + "&DT=" + downloadType + "&SORT=" + 
				strSort + "&FT=" + fundType + "&MAP=" + allMAP + "&SI=" + siteID;
	
		if (downloadType != "csv") {
			popup = window.open( slink, winName, "status=no,width=700,height=635,resizable=yes,toolbar=no,scrollbars=yes" );
	
			if (navigator.appName == "Netscape") { 
   				popup.focus(); 
			}
		} else {
			document.location.href = slink;
		}
	}
}
