//************************************************************************************************
//	OFA Main Javascript File
//	original by Phil Mark (pmark@ofina.on.ca)
//modified by Brian Scott (brian.scott@ofina.on.ca)
//************************************************************************************************
//	If you've managed to extract this script please advise yourself
//	that the Ontario Financing Authority is not liable to any damage this
//	script may incur.
//************************************************************************************************
//	This site follows a document indexing standard listed below ....
//	This ensures consistence in retrieving the appropriate page/info when
//	an array variable is called upon ... Arrays are used for convenience and
//	to avoid redundant code schemes.
//

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

vtemp = 0;
var opt1=0,opt2=0;    			        	// option variable
var a=0,b=0,c=0;
var i=0,j=0,k=0,l=0;

var page, option, lang;

var ofa_date;					// OFA date vars
var ofa_month;
var ofa_day;
var ofa_year;
var ofa_month_text_e = new Array();
var ofa_month_text_f = new Array();

		
// ********** ENGLISH DATE / MONTHS IN TEXT ************************

		ofa_month_text_e[1] = "January";
		ofa_month_text_e[2] = "February";
		ofa_month_text_e[3] = "March";
		ofa_month_text_e[4] = "April";
		ofa_month_text_e[5] = "May";
		ofa_month_text_e[6] = "June";
		ofa_month_text_e[7] = "July";
		ofa_month_text_e[8] = "August";
		ofa_month_text_e[9] = "September";
		ofa_month_text_e[10] = "October";
		ofa_month_text_e[11] = "November";
		ofa_month_text_e[12] = "December";

// ********** FRENCH DATE / MONTHS IN TEXT ************************

		ofa_month_text_f[01] = "janvier";
		ofa_month_text_f[02] = "février";
		ofa_month_text_f[03] = "mars";
		ofa_month_text_f[04] = "avril";
		ofa_month_text_f[05] = "mai";
		ofa_month_text_f[06] = "juin";
		ofa_month_text_f[07] = "juillet";
		ofa_month_text_f[08] = "août";
		ofa_month_text_f[09] = "septembre";
		ofa_month_text_f[10] = "octobre";
		ofa_month_text_f[11] = "novembre";
		ofa_month_text_f[12] = "décembre";


//*******************************************************************
//		 	 MAIN BUTTONS
//*******************************************************************

function init_date()
{
	ofa_date = new Date();
	ofa_month = ofa_date.getMonth() + 1;
	ofa_day = ofa_date.getDate();
	ofa_year = ofa_date.getYear();
}


// ********** PRINT A PAGE OPTION HOME *********************************

function PrintHome()
{ 
  var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=820, height=600, left=100, top=25"; 
  var content_value = document.getElementById("print_content").innerHTML; 
  
  var docprint=window.open("","",disp_setting); 
   docprint.document.open(); 
   docprint.document.write('<html><head><title>Ontario Financing Authority</title>');
   docprint.document.write('<style type="text/css" media="screen">@import "css/ofa_all.css";</style>');
   docprint.document.write('<style type="text/css" media="print">@import "css/ofa_print.css";</style>');
   docprint.document.write('</head><body onLoad="self.print()" style="background: #FFFFFF; text-align: left;">');
   docprint.document.write('<br /><br />');
   docprint.document.write(content_value);
   docprint.document.write('</body></html>'); 
   docprint.document.close(); 
   docprint.focus(); 
}

function PrintHomefr()
{ 
  var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=820, height=600, left=100, top=25"; 
  var content_value = document.getElementById("print_content").innerHTML; 
  
  var docprint=window.open("","",disp_setting); 
   docprint.document.open(); 
   docprint.document.write('<html><head><title>Office Ontarien de Financement</title>');
   docprint.document.write('<style type="text/css" media="screen">@import "../css/ofa_all.css";</style>');
   docprint.document.write('<style type="text/css" media="print">@import "../css/ofa_print.css";</style>');
   docprint.document.write('</head><body onLoad="self.print()" style="background: #FFFFFF; text-align: left;">');
   docprint.document.write('<br /><br />');
   docprint.document.write(content_value);
   docprint.document.write('</body></html>'); 
   docprint.document.close(); 
   docprint.focus(); 
}

// ********** PRINT A PAGE OPTION *********************************

function PrintVersion()
{ 
  var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=820, height=600, left=100, top=25"; 
  var content_value = document.getElementById("print_content").innerHTML; 
  
  var docprint=window.open("","",disp_setting); 
   docprint.document.open(); 
   docprint.document.write('<html><head><title>Ontario Financing Authority</title>');
   docprint.document.write('<style type="text/css" media="screen">@import "css/ofa_all.css";</style>');
   docprint.document.write('<style type="text/css" media="print">@import "css/ofa_print.css";</style>');
   docprint.document.write('</head><body onLoad="self.print()" style="background: #FFFFFF; text-align: left;">');
   docprint.document.write('<br /><br />');
   docprint.document.write(content_value);
   docprint.document.write('</body></html>'); 
   docprint.document.close(); 
   docprint.focus(); 
}

function PrintVersionfr()
{ 
  var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=820, height=600, left=100, top=25"; 
  var content_value = document.getElementById("print_content").innerHTML; 
  
  var docprint=window.open("","",disp_setting); 
   docprint.document.open(); 
   docprint.document.write('<html><head><title>Office Ontarien de Financement</title>');
   docprint.document.write('<style type="text/css" media="screen">@import "../css/ofa_all.css";</style>');
   docprint.document.write('<style type="text/css" media="print">@import "../css/ofa_print.css";</style>');
   docprint.document.write('</head><body onLoad="self.print()" style="background: #FFFFFF; text-align: left;">');
   docprint.document.write('<br /><br />');
   docprint.document.write(content_value);
   docprint.document.write('</body></html>'); 
   docprint.document.close(); 
   docprint.focus(); 
}

// ********** PRINT A PAGE OPTION 2 *********************************

function PrintVersion2()
{ 
  var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=820, height=600, left=100, top=25"; 
  var content_value = document.getElementById("print_content").innerHTML; 
  
  var docprint=window.open("","",disp_setting); 
   docprint.document.open();
   docprint.document.write('<html><head><title>Ontario Financing Authority</title>');
   docprint.document.write('<style type="text/css" media="screen">@import "../css/ofa_all.css";</style>');
   docprint.document.write('<style type="text/css" media="print">@import "../css/ofa_print.css";</style>');
   docprint.document.write('</head><body onLoad="self.print()" style="background: #FFFFFF;">');
   docprint.document.write('<br /><br />');
   docprint.document.write(content_value);
   docprint.document.write('</body></html>'); 
   docprint.document.close(); 
   docprint.focus(); 
}

function PrintVersion2fr()
{ 
  var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=820, height=600, left=100, top=25"; 
  var content_value = document.getElementById("print_content").innerHTML; 
  
  var docprint=window.open("","",disp_setting); 
   docprint.document.open();
   docprint.document.write('<html><head><title>Office Ontarien de Financement</title>');
   docprint.document.write('<style type="text/css" media="screen">@import "../../css/ofa_all.css";</style>');
   docprint.document.write('<style type="text/css" media="print">@import "../../css/ofa_print.css";</style>');
   docprint.document.write('</head><body onLoad="self.print()" style="background: #FFFFFF;">');
   docprint.document.write('<br /><br />');
   docprint.document.write(content_value);
   docprint.document.write('</body></html>');
   docprint.document.close(); 
   docprint.focus(); 
}

//*******************************************************************
//			VALIDATE EMAIL ON SUBSCRIPTION FORM
//*******************************************************************

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail Address")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail Address")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail Address")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail Address")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail Address")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail Address")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail Address")
		    return false
		 }

 		 return true					
	}

function ValidateForm(){
	var emailID=document.emailform.email
	var bulletinsID=document.emailform.bulletins
	var bondsID=document.emailform.bonds
	var presentationsID=document.emailform.presentations
	var borrowingID=document.emailform.borrowing
	var webcastsID=document.emailform.webcasts
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email Address")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	if ((bulletinsID.checked==false)&&(bondsID.checked==false)&&(presentationsID.checked==false)&&(webcastsID.checked==false)){
		alert("Please select at least one of the products")
		return false
	}
	return true
 }
 
 
 function echeckfr(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Adresse de courriel inadmissible")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Adresse de courriel inadmissible")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Adresse de courriel inadmissible")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Adresse de courriel inadmissible")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Adresse de courriel inadmissible")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Adresse de courriel inadmissible")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Adresse de courriel inadmissible")
		    return false
		 }

 		 return true					
	}

function ValidateFormfr(){
	var emailID=document.emailformfr.email
	var bulletinsID=document.emailformfr.bulletins
	var bondsID=document.emailformfr.bonds
	var presentationsID=document.emailformfr.presentations
	var borrowingID=document.emailformfr.borrowing
	var webcastsID=document.emailformfr.webcasts
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Veuillez tapper votre courriel")
		emailID.focus()
		return false
	}
	if (echeckfr(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	if ((bulletinsID.checked==false)&&(bondsID.checked==false)&&(presentationsID.checked==false)&&(webcastsID.checked==false)){
		alert("Veuillez choisir au moins un des produits")
		return false
	}
	return true
 }



//*******************************************************************
//			OPENSCRIPT
//*******************************************************************
function openScript(url, width, height) {
        var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,status=no' );
}
function openScriptSubmision(url, width, height) {
        var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + 'left=450,top=300,resizable=0,scrollbars=no,menubar=no,status=no' );
}

function openScriptReview(url, width) {
        var Win = window.open(url,"openScript",'width=' + width + ',left=100,top=2,resizable=1,scrollbars=1,menubar=no,status=0' );
}

function openScriptAR(url, width, height) {
        var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',left=100,top=2,resizable=1,scrollbars=yes,menubar=no,status=no' );
}

function Instructions() {
	window.open("instructions.html","main","resizable=no,height=470,width=640,scrollbars=1");
}

function Instructionsfr() {
	window.open("instructions_fr.html","main","resizable=no,height=470,width=640,scrollbars=1");
}

function openSurvey() {
	window.open("survey.asp","SurveyOFA","width=640px,height=400px,top=0px,left=0px,toolbar,location,status,scrollbars,menubar,resizable");
}

function openSurveyfr() {
	window.open("survey_fr.asp","SurveyOFA","width=640px,height=400px,top=0px,left=0px,toolbar,location,status,scrollbars,menubar,resizable");
}

function openEmailAlert() {
	window.open("alert-email.html","EmailAlert","width=400px,height=220px,top=0px,left=0px,left=50,top=50,resizable=0,scrollbars=no,menubar=no,status=no");
}

function openEmailAlertFr() {
	window.open("alert-email_fr.html","EmailAlert","width=400px,height=234px,top=0px,left=0px,left=50,top=50,resizable=0,scrollbars=no,menubar=no,status=no");
}

var redirectTo = "subscription.htm";
function redirectEmail() {
 window.opener.location.href = redirectTo;
}

var redirectToFr = "subscription_fr.htm";
function redirectEmailFr() {
 window.opener.location.href = redirectToFr;
}

//*******************************************************************
//			GENERATE_FOOTER
//
//	lang ===> 1=english .... 2=french
//	option ==> 0 = show update date
//		 1 = dont show update date
//*******************************************************************
function generate_footer(lang,option) {

	if(lang==1) {
		document.write("<table id='contentbottom' cellspacing='0'>");
		
		document.write("<tr>");
		document.write("<td id='contentbottomleft'>");
		document.write("This information is intended for general information purposes only and does not constitute an offer to sell or a solicitation " +
						"of offers to purchase securities. It has not been approved by any securities regulatory authority and it is not sufficient " +
						"for the purpose of deciding to purchase securities. It may have errors or omissions resulting from electronic conversion, " +
						"downloading of unauthorized modifications. While the information, when posted or released, was believed to be reliable as of " +
						"its date, NO WARRANTY IS MADE AS TO THE ACCURACY OR COMPLETENESS OF THIS DOCUMENT OR THE INFORMATION IT CONTAINS.");
		document.write("</td>");
		document.write("<td id='contentbottomright'>");
		document.write("<p style='text-align: justify;'>");
		document.write("The official Website of the Ontario Financing Authority of the Province of Ontario, Canada");
		document.write("</p>");
		document.write("<p style='text-align: justify;'>Review the <a href='disclaimer.htm'>Disclaimer</a> for additional legal terms and exclusions of liability that apply to your use of this website.</p>");
		document.write("<p>");
		document.write("<a href='http://www.gov.on.ca/MBS/english/common/privacy.html' target='_blank'>Government of Ontario Online Privacy Statement</a><br />");
		document.write("Copyright © Queen's Printer for Ontario.<br />");
		document.write("All rights reserved.<br />");
		document.write("Ontario Financing Authority<br />");
		document.write("1 Dundas Street West, 14th Floor<br />");
		document.write("Toronto, Ontario, Canada M7A 1Y7<br />");
		document.write("(416) 325-8000");
		document.write("</p>");
		document.write("</td>");
		document.write("</tr>");
		
		if (option==0) {
		document.write("<tr>");
		document.write("<td id='update'>Updated: " + ofa_month_text_e[Math.abs(document.lastModified.substring(0, 2))] + " " + document.lastModified.substring(3, 5) + ", " + document.lastModified.substring(6, 10) + "</td>");
		document.write("<td id='totop'><a href='#'>Back to Top</a></td>");
		document.write("</tr>");
		}
		if (option==1) {
		document.write("<tr>");
		document.write("<td id='update'>&nbsp;</td>");
		document.write("<td id='totop'><a href='#'>Back to Top</a></td>");
		document.write("</tr>");
		}
		
		document.write("</table>");
	}
		
	if(lang==2) {
		document.write("<table id='contentbottom' cellspacing='0'>");
		
		document.write("<tr>");
		document.write("<td id='contentbottomleft'>");
		document.write("Ces renseignements visent à fournir de l’information générale seulement et ne constituent pas une offre de vente ni une sollicitation d’offres d’achat " +
						"de valeurs mobilières. Ces renseignements n’ont pas été approuvés par un organisme de réglementation des valeurs mobilières et ne sont pas " +
						"suffisants pour la prise de décisions concernant l’achat de valeurs mobilières. De plus, des erreurs ou des omissions peuvent avoir découlé de la " +
						"conversion électronique, du téléchargement ou de modifications non autorisées. À la date de leur affichage ou de leur publication, ces " +
						"renseignements étaient considérés comme fiables. TOUTEFOIS, NOUS NE GARANTISSONS NULLEMENT QUE LE PRÉSENT DOCUMENT, Y COMPRIS " +
						"LES RENSEIGNEMENTS QU’IL RENFERME, EST EXACT OU COMPLET.");
		document.write("</td>");
		document.write("<td id='contentbottomrightfr'>");
		document.write("<p style='text-align: justify;'>");
		document.write("Le site Web officiel de l'office ontarien de financement de la province de l'Ontario, Canada");
		document.write("</p>");
		document.write("<p style='text-align: justify;'><a href='disclaimer_fr.htm'>L'avis de non-responsabilité</a> renferme les termes légaux et l'exclusion de responsabilité relatifs à l'utilisation du présent site.</p>");
		document.write("<p>");
		document.write("<a href='http://www.gov.on.ca/MBS/french/common/privacy.html' target='_blank'>Déclaration du gouvernement de l’Ontario concernant la protection de la vie privée en ligne</a><br />");
		document.write("© Imprimeur de la Reine pour l'Ontario.<br />");
		document.write("Tous droits réservés.<br />");
		document.write("Office ontarien de financement,<br />");
		document.write("1, rue Dundas Ouest, 14<sup>e</sup> étage<br />");
		document.write("Toronto (Ontario) M7A 1Y7<br />");
		document.write("416 325-8000");
		document.write("</p>");
		document.write("</td>");
		document.write("</tr>");
		
		if (option==0) {
		document.write("<tr>");
		document.write("<td id='update'>Mise à jour : " + document.lastModified.substring(3, 5) + " " + ofa_month_text_f[Math.abs(document.lastModified.substring(0, 2))] + " " + document.lastModified.substring(6, 10) + "</td>");
		document.write("<td id='totop'><a href='#'>Haut de la page</a></td>");
		document.write("</tr>");
		}
		if (option==1) {
		document.write("<tr>");
		document.write("<td id='update'>&nbsp;</td>");
		document.write("<td id='totop'><a href='#'>Haut de la page</a></td>");
		document.write("</tr>");
		}
		
		document.write("</table>");
	}

}


function generate_footer2(lang,option) {

	if(lang==1) {
		document.write("<table id='contentbottom' cellspacing='0'>");
		
		document.write("<tr>");
		document.write("<td id='contentbottomleft'>");
		document.write("This information is intended for general information purposes only and does not constitute an offer to sell or a solicitation " +
						"of offers to purchase securities. It has not been approved by any securities regulatory authority and it is not sufficient " +
						"for the purpose of deciding to purchase securities. It may have errors or omissions resulting from electronic conversion, " +
						"downloading of unauthorized modifications. While the information, when posted or released, was believed to be reliable as of " +
						"its date, NO WARRANTY IS MADE AS TO THE ACCURACY OR COMPLETENESS OF THIS DOCUMENT OR THE INFORMATION IT CONTAINS.");
		document.write("</td>");
		document.write("<td id='contentbottomright'>");
		document.write("<p>");
		document.write("The official Website of the Ontario Financing Authority of the Province of Ontario, Canada");
		document.write("</p>");
		document.write("<p style='text-align: justify;'>Review the <a href='../disclaimer.htm'>Disclaimer</a> for additional legal terms and exclusions of liability that apply to your use of this website.</p>");
		document.write("<p>");
		document.write("<a href='http://www.gov.on.ca/MBS/english/common/privacy.html' target='_blank'>Government of Ontario Online Privacy Statement</a><br />");
		document.write("Copyright © Queen's Printer for Ontario.<br />");
		document.write("All rights reserved.<br />");
		document.write("Ontario Financing Authority<br />");
		document.write("1 Dundas Street West, 14th Floor<br />");
		document.write("Toronto, Ontario, Canada M7A 1Y7<br />");
		document.write("(416) 325-8000");
		document.write("</p>");
		document.write("</td>");
		document.write("</tr>");
		
		if (option==0) {
		document.write("<tr>");
		document.write("<td id='update'>Updated: " + ofa_month_text_e[Math.abs(document.lastModified.substring(0, 2))] + " " + document.lastModified.substring(3, 5) + ", " + document.lastModified.substring(6, 10) + "</td>");
		document.write("<td id='totop'><a href='#'>Back to Top</a></td>");
		document.write("</tr>");
		}
		if (option==1) {
		document.write("<tr>");
		document.write("<td id='update'>&nbsp;</td>");
		document.write("<td id='totop'><a href='#'>Back to Top</a></td>");
		document.write("</tr>");
		}
		
		document.write("</table>");
	}
		
	if(lang==2) {
		document.write("<table id='contentbottom' cellspacing='0'>");
		
		document.write("<tr>");
		document.write("<td id='contentbottomleft'>");
		document.write("Ces renseignements visent à fournir de l’information générale seulement et ne constituent pas une offre de vente ni une sollicitation d’offres d’achat " +
						"de valeurs mobilières. Ces renseignements n’ont pas été approuvés par un organisme de réglementation des valeurs mobilières et ne sont pas " +
						"suffisants pour la prise de décisions concernant l’achat de valeurs mobilières. De plus, des erreurs ou des omissions peuvent avoir découlé de la " +
						"conversion électronique, du téléchargement ou de modifications non autorisées. À la date de leur affichage ou de leur publication, ces " +
						"renseignements étaient considérés comme fiables. TOUTEFOIS, NOUS NE GARANTISSONS NULLEMENT QUE LE PRÉSENT DOCUMENT, Y COMPRIS " +
						"LES RENSEIGNEMENTS QU’IL RENFERME, EST EXACT OU COMPLET.");
		document.write("</td>");
		document.write("<td id='contentbottomrightfr'>");
		document.write("<p style='text-align: justify;'>");
		document.write("Le site Web officiel de l'office ontarien de financement de la province de l'Ontario, Canada");
		document.write("</p>");
		document.write("<p style='text-align: justify;'><a href='../disclaimer_fr.htm'>L'avis de non-responsabilité</a> renferme les termes légaux et l'exclusion de responsabilité relatifs à l'utilisation du présent site.</p>");
		document.write("<p>");
		document.write("<a href='http://www.gov.on.ca/MBS/french/common/privacy.html' target='_blank'>Déclaration du gouvernement de l’Ontario concernant la protection de la vie privée en ligne</a><br />");
		document.write("© Imprimeur de la Reine pour l'Ontario.<br />");
		document.write("Tous droits réservés.<br />");
		document.write("Office ontarien de financement,<br />");
		document.write("1, rue Dundas Ouest, 14<sup>e</sup> étage<br />");
		document.write("Toronto (Ontario) M7A 1Y7<br />");
		document.write("416 325-8000");
		document.write("</p>");
		document.write("</td>");
		document.write("</tr>");
		
		if (option==0) {
		document.write("<tr>");
		document.write("<td id='update'>Mise à jour : " + document.lastModified.substring(3, 5) + " " + ofa_month_text_f[Math.abs(document.lastModified.substring(0, 2))] + " " + document.lastModified.substring(6, 10) + "</td>");
		document.write("<td id='totop'><a href='#'>Haut de la page</a></td>");
		document.write("</tr>");
		}
		if (option==1) {
		document.write("<tr>");
		document.write("<td id='update'>&nbsp;</td>");
		document.write("<td id='totop'><a href='#'>Haut de la page</a></td>");
		document.write("</tr>");
		}
		
		document.write("</table>");
	}

}

function reloadWindow() {
window.location.reload();
}