
function PageGo(sVal) {
  
	document.pageform.Page.value = sVal;

	document.pageform.submit();
}

function OpenFix(windowName,width,height) {
    newWindow = window.open(windowName, 'OpenFixWin','toolbar=no,menubar=no,width='+width+',height='+height+',scrollbars=no,resizable=no');
    //newWindow.window.focus();
}
function OpenVar(windowName,width,height) {	
    newWindow = window.open(windowName, 'OpenVarWin','toolbar=no,menubar=no,width='+width+',height='+height+',scrollbars=yes,resizable=yes');
    //newWindow.window.focus();
}
function OpenVar1(windowName,width,height,left,top) {
    newWindow = window.open(windowName, 'OpenVarWin','toolbar=no,menubar=no,width='+width+',height='+height+',left='+left+',top='+top+',scrollbars=yes,resizable=yes');
    //newWindow.window.focus();
}
function OpenMenu(windowName,width,height) {
    newWindow = window.open(windowName, 'OpenMenuWin','toolbar=yes,menubar=yes,width='+width+',height='+height+',scrollbars=yes,resizable=yes');
    //newWindow.window.focus();
}

function footgourl(url) {
	location.href = url;			
}						

function goUrl(QTSection,SecID,StockStyle,IsAllFunds) {

	if ( QTSection == "SnapShot" ) {
		location.href = "/asp/onShore/QuickTake.asp?QTSection="+QTSection+"&SecID="+SecID+"&StockStyle="+StockStyle+"&IsAllFunds="+IsAllFunds;
	}
	if ( QTSection == "Return" ) {
		location.href = "/asp/onShore/Return&Risk.asp?QTSection="+QTSection+"&SecID="+SecID+"&StockStyle="+StockStyle+"&IsAllFunds="+IsAllFunds;
	}				
	if ( QTSection == "Portfolio" ) {
		location.href = "/asp/onShore/Portfolio.asp?QTSection="+QTSection+"&SecID="+SecID+"&StockStyle="+StockStyle+"&IsAllFunds="+IsAllFunds;
	}				
	if ( QTSection == "NutsBlots" ) {
		location.href = "/asp/onShore/NutsBolts.asp?QTSection="+QTSection+"&SecID="+SecID+"&StockStyle="+StockStyle+"&IsAllFunds="+IsAllFunds;
	}																

}

function goUrl2(QTSection,SecID,StockStyle,IsAllFunds) {

	if ( QTSection == "SnapShot" ) {
		location.href = "/asp/offShore/Snapshot.asp?QTSection="+QTSection+"&SecID="+SecID+"&StockStyle="+StockStyle+"&IsAllFunds="+IsAllFunds;
	}
	if ( QTSection == "TotalReturn" ) {
		location.href = "/asp/offShore/TotalReturn.asp?QTSection="+QTSection+"&SecID="+SecID+"&StockStyle="+StockStyle+"&IsAllFunds="+IsAllFunds;
	}				
	if ( QTSection == "Portfolio" ) {
		location.href = "/asp/offShore/Portfolio.asp?QTSection="+QTSection+"&SecID="+SecID+"&StockStyle="+StockStyle+"&IsAllFunds="+IsAllFunds;
	}				
	if ( QTSection == "Risk" ) {
		location.href = "/asp/offShore/Risk.asp?QTSection="+QTSection+"&SecID="+SecID+"&StockStyle="+StockStyle+"&IsAllFunds="+IsAllFunds;
	}																
	if ( QTSection == "NutsBlots" ) {
		location.href = "/asp/offShore/NutsBlots.asp?QTSection="+QTSection+"&SecID="+SecID+"&StockStyle="+StockStyle+"&IsAllFunds="+IsAllFunds;
	}																	

}

function goUrl3(TSection,FundCompany,cbcode) {

	if ( TSection == "Profile" ) {
		location.href = "/FundCompany/FundCompanyInfo.asp?TSection="+TSection+"&FundCompany="+FundCompany+"&cbcode="+cbcode;
	}
	if ( TSection == "Process" ) {
		location.href = "/FundCompany/FundCompanyInfo.asp?TSection="+TSection+"&FundCompany="+FundCompany+"&cbcode="+cbcode;
	}				
	if ( TSection == "Risk" ) {
		location.href = "/FundCompany/FundCompanyInfo.asp?TSection="+TSection+"&FundCompany="+FundCompany+"&cbcode="+cbcode;
	}				
	if ( TSection == "Staff" ) {
		location.href = "/FundCompany/FundCompanyInfo.asp?TSection="+TSection+"&FundCompany="+FundCompany+"&cbcode="+cbcode;
	}																
	if ( TSection == "Fund" ) {
		location.href = "/asp/onShore/FundQuickRank.asp?condition="+FundCompany+"|-||&cbcode="+cbcode;
	}																	

}


function goUrl4(Section,subTap) {
	
	location.href = "/asp/News/NewsCenter.asp?Section="+Section+"&subTap="+subTap;	

}

function adPop(url) {					
	window.open(url,'advert','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=0,left=0');
}

// Google Analytics
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
	var pageTracker = _gat._getTracker("UA-184317-35");
	pageTracker._trackPageview();
}catch(err) {}
