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=416,height=290";
	var barTitle = "Leaving_Site_" + WinName;
	WinName = window.open("",barTitle,winOptions);
	writeToPopuponline1(WinName, PageURL);
}
function writeToPopuponline1(WinName, PageURL) {
	var doc = WinName.document;
	
	//var p='/sinsite/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><b>You are about to leave the Franklin Templeton Website</b><br>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 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 those of Franklin Templeton's site. Franklin Templeton is not liable for any direct or indirect technical or system issues, consequences, or damages arising from your use of this independent website.<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=\'/sinsite/s_code_leave-site.js\'></script>";			
	doc.write(POP_HTML);
	doc.close();
	WinName.focus();
	
	//document.write("<script language='JavaScript' src=\'/sinsite/s_code_leave-site.js\'></script>");
}
//window.location.href=<script language='JavaScript' src='/sinsite/s_code_leave-site.js'></script>";