//**************function to pass respective URL and Winname - Start*****************
function openwindow(PageURL,WinName) {
	var winOptions = "toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=730,height=380";
	var barTitle = "Leaving_Site_" + WinName;
	WinName = window.open("",barTitle,winOptions);
	writeToPopup(WinName, PageURL);
}
//****************function to pass respective URL and Winname - End********************
//********************* function to display the text - Start***********************
function writeToPopup(WinName, PageURL) {
	var doc = WinName.document;
	var POP_HTML;
	POP_HTML = "<HTML><HEAD><TITLE>Leaving Site</TITLE><link rel=\"stylesheet\" type=\"text/css\" href=\"/TGGFAus.css\"></head>\n";
	POP_HTML += "<body bgcolor=\"#FFFFFF\" LEFTMARGIN=\"0\" TOPMARGIN=\"0\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\">\n";
	POP_HTML += "<table width=100% cellpadding=5 cellspacing=0 border=0><tr><td height=50><B>www.tggf.com.au</B><br><img src=/image/nada.gif width=1 height=7><br>\n";
	POP_HTML += "<span class=blueTitle>Third-Party Link Conditions</span></td></tr>\n";
	POP_HTML += "<tr><td height=150 class=verdana9 bgcolor=\"#F6F6F6\" valign=top>\n";
	POP_HTML += "<img src=/image/nada.gif width=1 height=15><br><span class=verdana13b>You are about to leave the Templeton Global Growth Fund Ltd Site.</span>\n";
	POP_HTML += "<p align=justify><span class=maintext>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 Templeton Global Growth Fund Ltd 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 Templeton Global Growth Fund Ltd.   Templeton Global Growth Fund Ltd is not liable for any direct or indirect technical or system issues, consequences or damages arising from your use of this independent website </span></td></tr>";
	
	POP_HTML += "<tr><td height=150 valign=top><form>\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=\"window.opener.location.href='" + PageURL + "'\;window.close();\"//\">\n";
		POP_HTML += "<input class=verdana11b type=button value='Cancel' name='cancel' onclick=\"window.close();\">\n";
	}
	POP_HTML += "</form></td></tr></table></BODY></HTML>\n";
	doc.write(POP_HTML);
	doc.close();
	WinName.focus();
}
//************************ function to display the text - End****************************************