function openwindow_decade(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,wrap,scrollbars=yes,resizable=yes,width=416,height=650";
	var barTitle = "Leaving_Site_" + WinName;
	WinName = window.open("",barTitle,winOptions);
	writeToPopuponline_decade(WinName, PageURL);
}



function writeToPopuponline_decade(WinName, PageURL) {

	var doc = WinName.document;
	
	

	var POP_HTML;

	POP_HTML = "<HTML><HEAD><TITLE>Leaving Site</TITLE><link rel=\"stylesheet\" type=\"text/css\" href=\"http://10.144.17.2:9010/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>Important Information</span><br>\n";



	POP_HTML += "</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><i>This document is for information only and does not constitute investment advice or a recommendation and was prepared without regard to the specific objectives, financial situation or needs of any particular person who may receive it. An investment in a financial product is subject to investment risks, including the possible loss of the principal amount invested. Past performance is not necessarily a guide to future performance. The value of the shares and the income from them may fall as well as rise. Investors may wish to seek advice from a financial adviser before making a commitment to invest. Investors should read the prospectus for details before investing. You may contact Templeton Asset Management Ltd or its appointed distributors for copies of the prospectus. In the event that the investor chooses not to seek advice from a financial adviser, he/she should consider whether the financial product is suitable for him/her.<br><br>The attached report is based on Franklin Templeton's U.S. fund families which are not available for investments in Singapore.<br><br>This document does not constitute marketing material and is for information purposes only. The information in this document, including the table, relates to U.S.-registered funds ONLY. Nothing in this document should be construed as investment advice and it does not constitute an offer for shares or an invitation to apply for shares in any funds of Franklin Templeton Investments (Franklin). Third party data has been used in the preparation of this document and Franklin has not independently verified, validated or audited such data. Information and opinions expressed are the author’s at publication date and they are subject to change without prior notice without liability to Franklin.</i> \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_decade();\">\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_decade(){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>";