function OnChangePage2(Lg, str_in)
{
	var str1 = "./" + str_in;
	
	if(Lg == 1)
		str1 += '_FR';
	str1 += '.aspx';
	ChangePage(str1);
}

function OnHomeOverview(Lg){OnChangePage2(Lg, "Home_Overview");}
function OnHomeContactUs(Lg){OnChangePage2(Lg, 'Home_ContactUs');}
function OnHomeQandA(Lg){OnChangePage2(Lg, 'Home_QandA');}
function OnHomeLegal(Lg){OnChangePage2(Lg, 'Home_Legal');}
function OnHomeEmployee(Lg){OnPopupLogin(Lg);}

function OnHomeDealer(Lg)


{



    var pagelink = "http://www.winfund.com/Clients/Logon.asp";
	if( Lg == 1 )
		{
		pagelink = "http://www.winfund.com/Clients/LogonFR.asp";
		}
    OnPopup(pagelink);
}

function OnProdOverview(Lg){OnChangePage2(Lg, 'Prod_Overview');}
function OnProdConnect(Lg){OnChangePage2(Lg, 'Prod_Connect');}
function OnProdWDE(Lg){OnChangePage2(Lg, 'Prod_WDE');}
function OnProdCompliance(Lg){OnChangePage2(Lg, 'Prod_Compliance');}
function OnProdAccess(Lg){OnChangePage2(Lg, 'Prod_Access');}
function OnProdInsurance(Lg){OnChangePage2(Lg, 'Prod_Insurance');}

function OnSolutionOverview(Lg){OnChangePage2(Lg, 'Sol_Overview');}
function OnSolutionCM(Lg){OnChangePage2(Lg, 'Sol_CM');}
function OnSolutionTrading(Lg){OnChangePage2(Lg, 'Sol_Trading');}
function OnSolutionTrustAccount(Lg){OnChangePage2(Lg, 'Sol_TrustAccount');}
function OnSolutionCompliance(Lg){OnChangePage2(Lg, 'Sol_Compliance');}
function OnSolutionCommission(Lg){OnChangePage2(Lg, 'Sol_Commission');}
function OnSolutionSD(Lg){OnChangePage2(Lg, 'Sol_SD');}
function OnSolutionMGA(Lg){OnChangePage2(Lg, 'Sol_MGA');}

function OnServicesOverview(Lg){OnChangePage2(Lg, 'Service_Overview');}
function OnServicesSupport(Lg){OnChangePage2(Lg, 'Service_Support');}
function OnServicesTraining(Lg){OnChangePage2(Lg, 'Service_Training');}
function OnServicesConsulting(Lg){OnChangePage2(Lg, 'Service_Consulting')};
function OnServicesConversion(Lg){OnChangePage2(Lg, 'Service_Conversion')};

function OnPartOverview(Lg){OnChangePage2(Lg, 'Part_Overview');}
function OnPartCannex(Lg){OnChangePage2(Lg, 'Part_Cannex');}
function OnPartEquisoft(Lg){OnChangePage2(Lg, 'Part_Equisoft');}
function OnPartFundata(Lg){OnChangePage2(Lg, 'Part_Fundata');}
function OnPartFundServ(Lg){OnChangePage2(Lg, 'Part_FundServ');}
function OnPartGlobe(Lg){OnChangePage2(Lg, 'Part_Globe');}
function OnPartPlanPlus(Lg){OnChangePage2(Lg, 'Part_PlanPlus');}
function OnPartTicoon(Lg){OnChangePage2(Lg, 'Part_Ticoon');}
function OnPartVisionWork(Lg){OnChangePage2(Lg, 'Part_VisionWork');}

function OnNewsOverview(Lg){OnChangePage2(Lg, 'News_Overview');}

function OnEventsOverview(Lg){OnChangePage2(Lg, 'Events_Overview');}
function OnRequestInfo(Lg, _Options){OnRequestFormEdit(0, Lg, _Options);}

function OnPopupLogin(Lg)
{
	var pageLink = "./PopupLogin";
	if( Lg == 1 )
	{
		pageLink += "_FR";
	}
	pageLink += ".aspx";
	var ret = showModalDialog(pageLink, window, "dialogWidth:400px;dialogHeight:310px;help:no;status:no;scroll:no;maximize:no;minimize:no;location:no;close:disabled;");
	if( ret != null && ret == 1)
	{
		document.frmMain.submit();
	}
}
function OnPageEdit(Lg)
{
	var PageName = "";
	var pageLink = "./PageEdit";
	if( Lg == 1 )
	{
		pageLink += "_FR";
	}
	pageLink += ".aspx";
	PageName = document.frmMain.szFileName_ME.value;
	if(PageName == '') return;
	pageLink += "?Param1=" + PageName;
	
	var ret = showModalDialog(pageLink, window, "dialogWidth:800px;dialogHeight:600px;help:no;status:no;scroll:yes;maximize:no;minimize:no;location:no;close:disabled;");
	if( ret != null && ret == 1)
	{
		document.frmMain.submit();
	}
}
function OnPopup(pagelink)
{
    window.open(pagelink, 'Winfund' , 
			'resizable=yes,menubar=1,toolbar=0, location=0,status=yes,scrollbars=yes,width='+(screen.width -80)+',height='+(screen.height - 220)+',top=0,left=0,screenx=0,screeny=0', 
			false );
}
function OnNewsEdit(Lg)
{
	var PageName = "";
	var pageLink = "./NewsEdit";
// no french
//	if( Lg == 1 )
//	{
//		pageLink += "_FR";
//	}
	pageLink += ".aspx";
	PageName = document.frmMain.szFileName_ME.value;
	if(PageName == '') return;
	pageLink += "?Param1=" + PageName;
	
	var ret = showModalDialog(pageLink, window, "dialogWidth:800px;dialogHeight:600px;help:no;status:no;scroll:yes;maximize:no;minimize:no;location:no;close:disabled;");
	if( ret != null && ret == 1)
	{
		document.frmMain.submit();
	}
}
function OnNewsContent(_Code)
{
	var frm = document.frmMain;
	var open_str;
	var wname = 'Documents' + _Code;
	open_str = 'AttachmentView.aspx?Param1=' + _Code;
	window.open(open_str, wname, 
			'resizable=yes,menubar=0,toolbar=0, location=0,status=0,scrollbars=yes,	width=840,height=540,top=100,left=100,screenx=0,screeny=0', false); 
}
function OnRequestFormEdit( _Code, _Lg, _Options)
{
	var PageName = "";
	var pageLink = "./Request_Info";
 	if( _Lg == 1 )
	{
		pageLink += "_FR";
	}
	pageLink += ".aspx";
	pageLink += "?Param1=" + _Code;
	if(_Options == 0)
	    showModalDialog(pageLink, window, "dialogWidth:850px;dialogHeight:650px;help:no;status:no;scroll:yes;maximize:no;minimize:no;location:no;close:disabled;");
	else
	    showModalDialog(pageLink, window, "dialogWidth:850px;dialogHeight:740px;help:no;status:no;scroll:yes;maximize:no;minimize:no;location:no;close:disabled;");
}

