function openwindow1(PageURL,WinName) {
	var winOptions = "toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=550,height=450,left=0,top=0";
	var barTitle = "Leaving_Site_" + WinName;
	WinName = window.open("",barTitle,winOptions);
	writeToPopup1(WinName, PageURL);
}
//function openwindow2(PageURL,WinName) {
//	var winOptions = "toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=750,height=400";
//	var barTitle = "Leaving_Site_" + WinName;
//	WinName = window.open(PageURL,barTitle,winOptions);
//}
function writeToPopup1(WinName, PageURL) {
	var doc = WinName.document;
	var POP_HTML;
	POP_HTML =  "<HTML><HEAD><TITLE>Leaving Site</TITLE>\n";
	POP_HTML += "<SCRIPT>function openwindow2(PageURL,WinName) {";
	POP_HTML +=     "var winOptions = \"toolbar=yes,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=750,height=400,left=0,top=0\";";
	POP_HTML +=     "var barTitle = \"Leaving_Site_\" + WinName;";
	POP_HTML +=     "WinName = window.open(PageURL,barTitle,winOptions);";
    POP_HTML +=     "}</SCRIPT>" ;
	
	POP_HTML += "<LINK rel=\"stylesheet\" type=\"text/css\" href=\"/css/styles.css\"></head>\n";
	POP_HTML += "<body bgcolor=\"#FFFFFF\" LEFTMARGIN=\"0\" TOPMARGIN=\"0\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\">\n";
	POP_HTML += "<table width=100% cellpadding=10 cellspacing=0 border=0><tr><td height=10><b>You are about to leave the Franklin Templeton Website</b>\n";
	POP_HTML += "</td></tr>\n";
	POP_HTML += "<tr bgcolor=\"#E8F1FF\"><td>\n";
	POP_HTML += "To address investor concerns regarding the possible exposures of SICAV funds to companies affected by the credit crisis, Franklin Templeton is making available full details of SICAV fund holdings. These disclosures are be made with a 30 day delay and may exclude some holdings for proprietary reasons in line with our portfolio disclosure policy.<br><br>In order to facilitate an immediate and simultaneous access to this information to investors in different countries, the details are centralised on the Luxembourg site of Franklin Templeton Investment Funds (a Luxembourg-domiciled SICAV).<br><br>Click here to access details of the portfolio holdings: <br>If you click on Accept, you will be redirected to a website exclusively designed for Luxembourg residents, which contains information on investment funds which are not necessarily registered for sale in your own jurisdiction. Please, in case of doubt, refer to <a href=\"http://www.franklintempletonnordic.com/nordic/jsp/content.jsp?url=/fund_perf/fundSelectAll\" target=\"_blank\">http://www.franklintempletonnordic.com/nordic/jsp/content.jsp?url=/fund_perf/fundSelectAll</a> for a list of the products available for distribution in your country, or check with your financial advisor.<br><br>This web page is intended to be of general interest only and does not constitute legal or tax advice nor is it an offer for shares or invitation to apply for shares of Franklin Templeton Investment Funds (a Luxembourg-domiciled SICAV). Nothing in this web page should be construed as investment advice.  \n";
	POP_HTML += "<br><img src=/img/s.gif width=1 height=40><br><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=bodycon type=button value='Close Window' name='cancel' onclick=\"window.close();\">\n";
	} else {
		//POP_HTML += "<input class=bodycon type=button value='OK' name='ok' onclick=\"self.location.href='" + PageURL + "'\;//\">\n";
		POP_HTML += "<input class=bodycon type=button value='I accept' name='ok' onclick=\"openwindow2('" + PageURL + "','newWin')\;window.close();//\">\n";
		POP_HTML += "<input class=bodycon type=button value='I do not accept' name='cancel' onclick=\"window.close();\">\n";
	}
	POP_HTML += "</form></td></tr><tr><td></td></tr></table></BODY></HTML>\n";
	doc.write(POP_HTML);
	doc.close();
	WinName.focus();
}

