//<jsp:include page=\"/hksite/js/ominature.jsp\" flush="true">

function openwindow(PageURL,WinName) 
{

	//var winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=730,height=380";

	var winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=416,height=320";

	var barTitle = "Leaving_Site_" + WinName;

	WinName = window.open("",barTitle,winOptions);

	writeToPopuponline(WinName, PageURL);

}




function writeToPopuponline(WinName, PageURL) {

	var doc = WinName.document;

	var POP_HTML;

	POP_HTML = "<HTML><HEAD><TITLE>Leaving Site</TITLE><link rel=\"stylesheet\" type=\"text/css\" href=\"/common/css/styles.css\"></head>\n";

	POP_HTML += "<body bgcolor=\"red\" LEFTMARGIN=\"0\" TOPMARGIN=\"0\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\">\n";

	POP_HTML += "<table width=416 cellpadding=5 cellspacing=0 border=0><tr>";

	POP_HTML +="<TD width=1><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD>";

	POP_HTML +=" <td height=50 width=600><span class=head2>Franklin Templeton Investments, Hong Kong</span><br><img src=/images/s.gif width=1 height=7><br>\n";



	POP_HTML += "<span class=head3>Third-Party Link Conditions</span></td>";

	POP_HTML +="<TD width=5><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD></tr>\n";

	POP_HTML += "<tr><TD bgcolor=\"#E8F1FF\"><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD>"

	POP_HTML +="<td height=150 class=verdana9 bgcolor=\"#E8F1FF\" valign=top width=748>\n";

	POP_HTML += "<img src=/images/nada.gif width=1 height=15><br><span class=head4>You are about to leave the Franklin Templeton Investments, Hong Kong Web site.</span>\n";

	POP_HTML += "<p align=justify><SPAN class=insttext>Clicking OK below will take you to an independent site.  Information and services provided on this independent site are not reviewed by, guaranteed by, or endorsed by Franklin Templeton Investments, Hong Kong or its affiliates.  Please keep in mind that this independent site's terms and conditions, privacy and security policies, or other legal information may be different from Franklin Templeton Hong Kong Investments, Hong Kong's site.   Franklin Templeton Investments, Hong Kong is not liable for any direct or indirect technical or system issues, consequences or damages arising from your use of this independent website.\n<p>&nbsp;</td>";

		POP_HTML +="<TD width=1 bgcolor=\"#E8F1FF\"><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD></tr>\n";

	POP_HTML += "<tr >";

	POP_HTML += "<tr><TD width=1><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD>";

	 POP_HTML +="<td height=150 valign=top width=748></SPAN><form>\n";

	//doc.write("<input type=button value='OK' name='ok' onclick=\"window.opener." + FrameName + ".location.href='" + PageURL + "'\;window.close();//\">\n");

	if (PageURL == "stay") {

		POP_HTML += "<input class=verdana11b type=button value='Close Window' name='cancel' onclick=\"window.close();\">\n";

	} else {

		POP_HTML += "<input class=verdana11b type=button value='OK' name='ok' onclick=\"openWindowonline();\">\n";

		POP_HTML += "<input class=verdana11b type=button value='Cancel' name='cancel' onclick=\"window.close();\">\n";

	}

	POP_HTML += "</form></td>";

	POP_HTML +="<TD width=1><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD></tr></table></BODY></HTML>\n";

			POP_HTML +="<script language=javascript>function openWindowonline(){window.open(\""+PageURL+"\", \"infowin3\",\"menubar=1,toolbar=1,location=1,resizable=1,scrollbars=1,status=1,width=750,height=400,left=0,top=0\"); window.close();}</script>"
			

	///////////////////////////////////
		POP_HTML +="<script language='JavaScript' src=\'/hksite/s_code_hk_leave-site.js\'></script>";		
		
		
		/*s.pageName="document.title + " - " + window.location.pathname + window.location.search";
	s.server="";
	s.channel="";
	s.pageType="";
	s.prop1="";
	s.prop2="";
	s.prop3="";
	s.prop4="";
	s.prop5="";
	s.campaign="";
	s.state="";
	s.zip="";
	s.events="";
	s.products="";
	s.purchaseID="";
	s.eVar1="";
	s.eVar2="";
	s.eVar3="";
	s.eVar4="";
	s.eVar5="";
	var s_code=s.t();
	if(s_code)document.write(s_code);
	
	if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-');*/


	/*
	POP_HTML +="<script language='JavaScript' src='http://www.franklintempleton.com.hk/hksite/s_code_hk.js'></script>;
	
	s.pageName="document.title + " - " + window.location.pathname + window.location.search";
	s.server="";
	s.channel="";
	s.pageType="";
	s.prop1="";
	s.prop2="";
	s.prop3="";
	s.prop4="";
	s.prop5="";
	s.campaign="";
	s.state="";
	s.zip="";
	s.events="";
	s.products="";
	s.purchaseID="";
	s.eVar1="";
	s.eVar2="";
	s.eVar3="";
	s.eVar4="";
	s.eVar5="";
	var s_code=s.t();
	if(s_code)document.write(s_code);
	
	if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-');
	
	POP_HTML +="<noscript><img src='http://frktempletoncomhk.122.2O7.net/b/ss/frktempletoncomhk/1/H.2--NS/0' height='1' width='1' border='0' alt='' /></noscript>";
	*/
	///////////////////////////////////	
	doc.write(POP_HTML);

	doc.close();

	WinName.focus();

}


	//POP_HTML +="<script language='JavaScript' src=\'http://www.franklintempleton.com.hk/hksite/s_code_hk.js\'></script>";
	

function openwindow_intl(PageURL,WinName) 
{
	//var winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=730,height=380";
	var winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=416,height=320";
	var barTitle = "Leaving_Site_" + WinName;
	WinName = window.open("",barTitle,winOptions);
	writeToPopuponline_intl(WinName, PageURL);
}

function writeToPopuponline_intl(WinName, PageURL) 
	{
	var doc = WinName.document;
	var POP_HTML;
	POP_HTML = "<HTML><HEAD><TITLE>Leaving Site</TITLE><link rel=\"stylesheet\" type=\"text/css\" href=\"/common/css/styles.css\"></head>\n";
	POP_HTML += "<body bgcolor=\"red\" LEFTMARGIN=\"0\" TOPMARGIN=\"0\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\">\n";
	POP_HTML += "<table width=416 cellpadding=5 cellspacing=0 border=0><tr>";
	POP_HTML +="<TD width=1><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD>";
	POP_HTML +=" <td height=50 width=600><span class=head2>Franklin Templeton Investments, Hong Kong</span><br><img src=/images/s.gif width=1 height=7><br>\n";

	POP_HTML += "<span class=head3>Other Country Site Conditions</span></td>";
	POP_HTML +="<TD width=5><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD></tr>\n";
	POP_HTML += "<tr><TD bgcolor=\"#E8F1FF\"><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD>"
	POP_HTML +="<td height=150 class=verdana9 bgcolor=\"#E8F1FF\" valign=top width=748>\n";
	POP_HTML += "<img src=/images/nada.gif width=1 height=15><br><span class=head4>You are about to leave the Franklin Templeton Investments, Hong Kong website.</span>\n";
	POP_HTML += "<p align=justify><SPAN class=insttext>Clicking OK below will take you to one of our international websites. Please keep in mind that this international site may contain information of funds which are currently not authorized for public distribution in Hong Kong and are not available to Hong Kong investors. Information contained on this international site should not be regarded as forming part of the Hong Kong site.\n<p>&nbsp;</td>";
	POP_HTML +="<TD width=1 bgcolor=\"#E8F1FF\"><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD></tr>\n";
	POP_HTML += "<tr >";
	POP_HTML += "<tr><TD width=1><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD>";
    POP_HTML +="<td height=150 valign=top width=748></SPAN><form>\n";
	//doc.write("<input type=button value='OK' name='ok' onclick=\"window.opener." + FrameName + ".location.href='" + PageURL + "'\;window.close();//\">\n");

	if (PageURL == "stay") 
		{
			POP_HTML += "<input class=verdana11b type=button value='Close Window' name='cancel' onclick=\"window.close();\">\n";
		} 
		else 
		{
			POP_HTML += "<input class=verdana11b type=button value='OK' name='ok' onclick=\"openWindowonline();\">\n";
			POP_HTML += "<input class=verdana11b type=button value='Cancel' name='cancel' onclick=\"window.close();\">\n";
		}

	POP_HTML += "</form></td>";
	POP_HTML +="<TD width=1><IMG border=0 height=10  src=\"/img/s.gif\" width=1></TD></tr></table></BODY></HTML>\n";
	POP_HTML +="<script language=javascript>function openWindowonline(){window.open(\""+PageURL+"\", \"infowin3\",\"menubar=1,toolbar=1,location=1,resizable=1,scrollbars=1,status=1,width=750,height=400,left=0,top=0\"); window.close();}</script>"
	doc.write(POP_HTML);
	doc.close();
	WinName.focus();
}