

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] = "decembre";



//*******************************************************************
//		 	 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();
}

function acceptMP(){
javascript:window.open('http://events.digitalmedia.telus.com/ofina/033110/index.php?l=en','ofina_033110','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=783,height=526,screenX=0,screenY=0,top=0,left=0');
//javascript:window.open('#','ofina_040109','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=783,height=505,screenX=0,screenY=0,top=0,left=0');
}

function acceptMPfr(){
javascript:window.open('http://events.digitalmedia.telus.com/ofina/033110/index.php?l=fr','ofina_033110','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=783,height=526,screenX=0,screenY=0,top=0,left=0');
//javascript:window.open('#','ofina_040109','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=783,height=505,screenX=0,screenY=0,top=0,left=0');
}



//*******************************************************************
//			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 CELLPADDING=0 CELLSPACING=0 COLUMNS=2 BORDER=0><TR><TD class='footer'>" + 
			" ");
			if (option==0) {
			document.write("<P ALIGN='Left'>Updated : <span>" + ofa_month_text_e[Math.abs(document.lastModified.substring(0, 2))]+" " + document.lastModified.substring(3, 5) + " "+ document.lastModified.substring(6, 10)  + "</span></P>");
		}
		if (option==1) {
			document.write("<p align='right'>&nbsp;</p>");
		}

		document.write("</td><td class='footer'>" +
			"<p  id='foot'><a href='#_top'>Back to Top</a></p>" + 
			//"  | <a href='sitemap.html'>Site Map</a><br />" +
			"</td></tr><tr><td class='footer' colspan=2><br />" +
			"<p class='bottom' id='disclaim'>" +
			"Review the <a href='http://www.ofina.on.ca/disclaimer.html'>Disclaimer</a> for additional legal terms and exclusions of liability that apply to your use of this website" +
			"<br /><br />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, <span>NO WARRANTY IS MADE AS TO THE ACCURACY OR COMPLETENESS OF THIS DOCUMENT OR THE INFORMATION IT CONTAINS." + 
			"</span></p><br /><p class='bottom' id='address'> " +
			"<a href='http://www.gov.on.ca/MBS/english/common/privacy.html' style='text-decoration: underline;'>Government of Ontario Online Privacy Statement</a><br /><br />" +
			"Copyright &copy; Queen's Printer for Ontario.<br /> All rights reserved.<br />" +
			"Ontario Financing Authority<br />1 Dundas Street West, 14th Floor<br />Toronto, Ontario, Canada  M7A 1Y7<br />(416) 325-8000</p>" +
			"</TD></TR></TABLE>");
	}

	if(lang==2) {

		document.write("<TABLE CELLPADDING=0 CELLSPACING=0 width=100% BORDER=0><TR><TD class='footer'>" + 
			" ");

		if (option==0) {
			document.write("<P ALIGN='Left'>Mise à jour : <span>" + document.lastModified.substring(3, 5) + " " + ofa_month_text_f[Math.abs(document.lastModified.substring(0, 2))] + 
				" " + document.lastModified.substring(6, 10)  + "</span></P>")

		}
		if (option==1) {
			document.write("<P ALIGN='right'>&nbsp;</P>");
		}

		document.write("</TD><TD class='footer'> " +
			"<p id='foot'><A href='#_top'>Page d'accueil</a>" +
			//"  | <a href='sitemap_fr.html'>Plan du site</a></p>" +
			"</TD></TR><TR><TD class='footer' COLSPAN=2><br />" +
			"<p class='bottom' id='disclaim'>" +
			"<a href='http://www.ofina.on.ca/french/disclaimer_fr.html'>L'avis de non-responsabilité</a> renferme les termes légaux et l'exclusion de responsabilité relatifs à l'utilisation du présent site." +
			"<br /><br />Ces renseignements visent à fournir de l&#146;information" +
			" générale seulement et ne constituent pas une offre de vente ni une sollicitation d&#146;offres d&#146;achat de valeurs mobilières. Ces renseignements n&#146;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&#146;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. <span>TOUTEFOIS, NOUS NE GARANTISSONS NULLEMENT QUE LE PRÉSENT" +
			" DOCUMENT, Y COMPRIS LES RENSEIGNEMENTS QU&#146;IL RENFERME, EST EXACT OU COMPLET.</span></P><br /> <P class='bottom' id='address'>"+ 
			"<a href='http://www.gov.on.ca/MBS/french/common/privacy.html' style='text-decoration: underline;'>Déclaration du gouvernement de l’Ontario concernant la protection de la vie privée en ligne</a><br /><br />" +
			"&copy; Imprimeur de la Reine pour l'Ontario.<br>" +
			"Tous droits réservés.<br> Office ontarien de financement,<br>1, rue Dundas Ouest, 14<sup>e</sup> étage <br>Toronto (Ontario)  M7A 1Y7<br>416 325-8000</P>" +
			"</TD></TR></TABLE>");
	}
}

function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('Please check the box to continue.');
return false;
}else
return true;
}

function checkCheckBoxFR(f){
if (f.agree.checked == false )
{
alert('Veuillez contrôler le cadre pour continuer.');
return false;
}else
return true;
}

