function nullOptionsDMA(aMenu){

var tot=aMenu.options.length

for (i=0;i<tot;i++)

{

aMenu.options[i]=null

}

aMenu.options.length=0;

}

 

function MySubjectDMA0(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 

//Rewrites the text and values

options[0]=new Option("Entire Province","alberta.html");

options[1]=new Option("Calgary","alberta.html#calgary");

options[2]=new Option("Fort McMurray","alberta.html#fortmcmurray");

options[0].selected=true


 

}

}

function MySubjectDMA1(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 

//Rewrites the text and values

options[0]=new Option("Entire Province","britcolum.html");

options[1]=new Option("Abbotsford","britcolum.html#abbotsford");

options[2]=new Option("Burnaby","britcolum.html#burnaby");

options[3]=new Option("Chilliwack","britcolum.html#chilliwack");

options[4]=new Option("Delta","britcolum.html#delta");

options[5]=new Option("Kamloops","britcolum.html#kamloops");

options[6]=new Option("Langley","britcolum.html#langley");

options[7]=new Option("Maple Ridge","britcolum.html#mapleridge");

options[8]=new Option("New Westminster","britcolum.html#newwestminster");

options[9]=new Option("Pitt Meadows","britcolum.html#pittmeadows");

options[10]=new Option("Richmond","britcolum.html#richmond");

options[11]=new Option("Squamish","britcolum.html#squamish");

options[12]=new Option("Surrey","britcolum.html#surrey");

options[13]=new Option("Vancouver","britcolum.html#vancouver");

options[14]=new Option("Victoria","britcolum.html#victoria");

options[15]=new Option("Whistler","britcolum.html#whistler");

options[16]=new Option("White Rock","britcolum.html#whiterock");

options[0].selected=true

 

 

}

}

function MySubjectDMA2(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 

//Rewrites the text and values

options[0]=new Option("Entire Province","manitoba.html");

options[1]=new Option("Winnipeg","manitoba.html#winnipeg");


options[0].selected=true

 

 

}

}

function MySubjectDMA3(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 

//Rewrites the text and values

options[0]=new Option("Entire Province","newbrunswick.html");

options[1]=new Option("Fredericton","newbrunswick.html#fredericton");

options[2]=new Option("Moncton","newbrunswick.html#moncton");

options[3]=new Option("Saint John","newbrunswick.html#saintjohn");

options[0].selected=true

 

 

}

}

function MySubjectDMA4(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 

//Rewrites the text and values

options[0]=new Option("Entire Province","newfoundland.html");

options[0].selected=true


 

 

}

}

function MySubjectDMA5(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 

//Rewrites the text and values

options[0]=new Option("Whole Territory","northwest.html");


options[0].selected=true

 

 

}

}

function MySubjectDMA6(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 

//Rewrites the text and values

options[0]=new Option("Entire Province","novascotia.html");


options[0].selected=true

 

 

}

}

function MySubjectDMA7(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 

//Rewrites the text and values

options[0]=new Option("Whole Territory","nunavut.html");


options[0].selected=true

 

 

}

}

function MySubjectDMA8(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 
//Rewrites the text and values

options[0]=new Option("Entire Province","ontario.html");

options[1]=new Option("Ajax","ontario.html#ajax");

options[2]=new Option("Barrie","ontario.html#barrie");

options[3]=new Option("Bradford","ontario.html#bradford");

options[4]=new Option("Brampton","ontario.html#brampton");

options[5]=new Option("Brantford","ontario.html#brantford");

options[6]=new Option("Burlington","ontario.html#burlington");

options[7]=new Option("Caledon","ontario.html#caledon");

options[8]=new Option("Cambridge","ontario.html#cambridge");

options[9]=new Option("Collingwood","ontario.html#collingwood");

options[10]=new Option("Cornwall","ontario.html#cornwall");

options[11]=new Option("Elliot Lake","ontario.html#elliotlake");

options[12]=new Option("Espanola","ontario.html#espanola");

options[13]=new Option("Fergus","ontario.html#fergus");

options[14]=new Option("Georgian Triangle","ontario.html#georgiantri");

options[15]=new Option("Hamilton","ontario.html#hamilton");

options[16]=new Option("Huntsville","ontario.html#huntsville");

options[17]=new Option("Kemptville","ontario.html#kemptville");

options[18]=new Option("Kenora","ontario.html#kenora");

options[19]=new Option("Kingston","ontario.html#kingston");

options[20]=new Option("Kirkland Lake","ontario.html#kirklandlake");

options[21]=new Option("Kitchener","ontario.html#kitchener");

options[22]=new Option("Lindsay","ontario.html#lindsay");

options[23]=new Option("London","ontario.html#london");

options[24]=new Option("Markham","ontario.html#markham");

options[25]=new Option("Midland","ontario.html#midland");

options[26]=new Option("Mississauga","ontario.html#mississauga");

options[27]=new Option("Newmarket","ontario.html#newmarket");

options[28]=new Option("Niagra Falls","ontario.html#niagarafalls");

options[29]=new Option("North Bay","ontario.html#northbay");

options[30]=new Option("Oakville","ontario.html#oakville");

options[31]=new Option("Orillia","ontario.html#orillia");

options[32]=new Option("Oshawa","ontario.html#oshawa");

options[33]=new Option("Ottawa","ontario.html#ottawa");

options[34]=new Option("Owen Sound","ontario.html#owensound");

options[35]=new Option("Parry Sound","ontario.html#parrysound");

options[36]=new Option("Perth","ontario.html#perth");

options[37]=new Option("Peterborough","ontario.html#peterborough");

options[38]=new Option("Pickering","ontario.html#pickering");

options[39]=new Option("Port Perry","ontario.html#portperry");

options[40]=new Option("Renfrew","ontario.html#renfrew");

options[41]=new Option("Richmond Hill","ontario.html#richmondhill");

options[42]=new Option("Sarnia","ontario.html#sarnia");

options[43]=new Option("Simcoe","ontario.html#simcoe");

options[44]=new Option("Smith Falls","ontario.html#smithfalls");

options[45]=new Option("St Catherines","ontario.html#stcatherines");

options[46]=new Option("Sudbury","ontario.html#sudbury");

options[47]=new Option("Thunder Bay","ontario.html#thunderbay");

options[48]=new Option("Timmins","ontario.html#timmins");

options[49]=new Option("Toronto","ontario.html#toronto");

options[50]=new Option("Uxbridge","ontario.html#uxbridge");

options[51]=new Option("Waterloo","ontario.html#waterloo");

options[52]=new Option("Whitby","ontario.html#whitby");

options[53]=new Option("Windsor","ontario.html#windsor");

options[54]=new Option("York Region","ontario.html#york");

options[0].selected=true

 

 

}

}

function MySubjectDMA9(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 

//Rewrites the text and values

options[0]=new Option("Entire Province","pei.html");


options[0].selected=true

 

 

}

}

function MySubjectDMA10(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 

//Rewrites the text and values

options[0]=new Option("Entire Province","quebec.html");

options[1]=new Option("Gatineau","quebec.html#gatineau");

options[2]=new Option("Hull","quebec.html#hull");

options[3]=new Option("Montreal","quebec.html#montreal");


options[0].selected=true

 

 

}

}

function MySubjectDMA11(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 

//Rewrites the text and values

options[0]=new Option("Entire Province","saskatchewan.html");


options[1]=new Option("Saskatoon","saskatchewan.html#saskatoon");

options[2]=new Option("Swift Current","saskatchewan.html#swiftcurrent");

options[3]=new Option("Regina","saskatchewan.html#regina");

options[4]=new Option("Yorkton","saskatchewan.html#yorkton");

options[0].selected=true

 

 

}

}

function MySubjectDMA12(aMenu){

nullOptionsDMA(aMenu)

 

with (aMenu){

 

//Rewrites the text and values

options[0]=new Option("Whole Territory","yukon.html");


options[0].selected=true

 

 

}

}



/* ####################### goDM() ####################### */

 

function goDMA(aMenu){

if (aMenu.options.value!="none")

{

location=aMenu.options[aMenu.selectedIndex].value

} 

 

}

 

/* ####################### setUp ####################### */

 

function setUpDMA(){

with (document.formDoubleMenuDMA) {

if (menuSubjectsDMA.selectedIndex==0){

menuSubjectsDMA.options[0].selected=true

menuFilesDMA.options[0].selected=true

}

 

if (menuSubjectsDMA.selectedIndex==1)

MySubjectDMA0(menuFilesDMA)

if (menuSubjectsDMA.selectedIndex==2)

MySubjectDMA1(menuFilesDMA)

if (menuSubjectsDMA.selectedIndex==3)

MySubjectDMA2(menuFilesDMA)

if (menuSubjectsDMA.selectedIndex==4)

MySubjectDMA3(menuFilesDMA)

if (menuSubjectsDMA.selectedIndex==5)

MySubjectDMA4(menuFilesDMA) 

if (menuSubjectsDMA.selectedIndex==6)

MySubjectDMA5(menuFilesDMA) 

if (menuSubjectsDMA.selectedIndex==7)

MySubjectDMA6(menuFilesDMA)

if (menuSubjectsDMA.selectedIndex==8)

MySubjectDMA7(menuFilesDMA)

if (menuSubjectsDMA.selectedIndex==9)

MySubjectDMA8(menuFilesDMA)

if (menuSubjectsDMA.selectedIndex==10)

MySubjectDMA9(menuFilesDMA)

if (menuSubjectsDMA.selectedIndex==11)

MySubjectDMA10(menuFilesDMA)

if (menuSubjectsDMA.selectedIndex==12)

MySubjectDMA11(menuFilesDMA)

if (menuSubjectsDMA.selectedIndex==13)

MySubjectDMA12(menuFilesDMA)


}

}

 

/* ####################### changeFiles ####################### */

 

function changeFilesDMA(){

aMenu=document.formDoubleMenuDMA.menuSubjectsDMA

aMenu2=document.formDoubleMenuDMA.menuFilesDMA

with (aMenu){

 

switch (selectedIndex) {

case 0:

aMenu2.options.length=0;

aMenu2.options[0]=

new Option("Select City","alberta.html")

aMenu2.options[0].selected=true;

history.go(0)

break 

case 1: 

MySubjectDMA0(aMenu2) 

aMenu2.options[0].text="Entire Province"

break 

case 2: 

MySubjectDMA1(aMenu2) 

aMenu2.options[0].text="Entire Province"

break 

case 3: 

MySubjectDMA2(aMenu2) 

aMenu2.options[0].text="Entire Province"

break 

case 4: 

MySubjectDMA3(aMenu2) 

aMenu2.options[0].text="Entire Province"

break 

case 5: 

MySubjectDMA4(aMenu2) 

aMenu2.options[0].text="Entire Province"

break 

case 6: 

MySubjectDMA5(aMenu2) 

aMenu2.options[0].text="Whole Territory"

break 

case 7: 

MySubjectDMA6(aMenu2) 

aMenu2.options[0].text="Entire Province"

break 

case 8: 

MySubjectDMA7(aMenu2) 

aMenu2.options[0].text="Whole Territory"

break 

case 9: 

MySubjectDMA8(aMenu2) 

aMenu2.options[0].text="Entire Province"

break 

case 10: 

MySubjectDMA9(aMenu2) 

aMenu2.options[0].text="Entire Province"

break 

case 11: 

MySubjectDMA10(aMenu2) 

aMenu2.options[0].text="Entire Province"

break 

case 12: 

MySubjectDMA11(aMenu2) 

aMenu2.options[0].text="Entire Province"

break 

case 13: 

MySubjectDMA12(aMenu2) 

aMenu2.options[0].text="Whole Territory"

break 

}

}

 

}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v3.0
  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); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}