function openwindow1(PageURL,WinName) {
	//var winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=730,height=280";
	var winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,wrap,resizable=no,width=400,height=450";
	var barTitle = "Leaving_Site_" + WinName;
	WinName = window.open("",barTitle,winOptions);
	writeToPopuponline1(WinName, PageURL);
}
function writeToPopuponline1(WinName, PageURL) {
	var doc = WinName.document;
	
	//var p='/sg/s_code_leave-site.js';
	
	//document.write(p);
	var POP_HTML;
	POP_HTML = "<HTML><HEAD><TITLE>Leaving Site</TITLE><link rel=\"stylesheet\" type=\"text/css\" href=\"/images/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, Singapore</span><br><img src=/images/s.gif width=1 height=7><br>\n";
	POP_HTML += "<span class=head3>IMPORTANT INFORMATION</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></span>\n";
	POP_HTML += "<p align=left><SPAN class=insttext>The information provided in this audio/video is not a complete analysis of every material fact regarding any country, industry, security or fund. The opinions expressed in the audio/video are subject to change without notice. Information about any fund, the analysis of any issuer and the economic environment may have changed. Any opinion expressed is intended to provide insight as to how securities are analysed and not intended as an investment advice.<p align=left>This audio/video should not be reproduced without the express written consent of Templeton Asset Management Ltd.  It does not constitute or form part of any offer to invest nor is it an invitation to invest. Subscriptions may only be made on the basis of the most recent Prospectus which is available at Templeton Asset Management Ltd or its authorised distributors. Investors should read the Prospectus for details before investing. Past performance is not necessarily a guide to future performance and the value of the shares and the income from them may fall as well as rise. This investment product is not available to U.S. and Canadian residents and U.S. citizens.  Investors may wish to seek advice from a financial adviser before making a commitment to invest in shares of any Franklin Templeton Investments fund.<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=\'/sg/s_code_leave-site.js\'></script>";			
	doc.write(POP_HTML);
	doc.close();
	WinName.focus();
	
	//document.write("<script language='JavaScript' src=\'/sg/s_code_leave-site.js\'></script>");
}
//window.location.href=<script language='JavaScript' src='/sg/s_code_leave-site.js'></script>";

