function openwindow(PageURL,WinName) {	var winOptions = "toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=416,height=350,left=0,top=0";	var barTitle = "Leaving_Site_" + WinName;	WinName = window.open("",barTitle,winOptions);	writeToPopup(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 writeToPopup(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 += "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.\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='OK' name='ok' onclick=\"openwindow2('" + PageURL + "','newWin')\;window.close();//\">\n";		POP_HTML += "<input class=bodycon type=button value='Cancel' 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();}
