
function fillCategory()
	{ 
	 // this function is used to fill the category list on load
	addOption(document.theForm.Category, "AB - Alberta", "AB - Alberta", "");
	addOption(document.theForm.Category, "BC - British Columbia", "BC - British Columbia", "");
	addOption(document.theForm.Category, "MB - Manitoba", "MB - Manitoba", "");
	addOption(document.theForm.Category, "NB - New Brunswick", "NB - New Brunswick", "");
	addOption(document.theForm.Category, "NL - Newfoundland & Labrador", "NL - Newfoundland & Labrador", "");
	addOption(document.theForm.Category, "NS - Nova Scotia", "NS - Nova Scotia", "");
	addOption(document.theForm.Category, "NT - Northwest Territories", "NT - Northwest Territories", "");
	addOption(document.theForm.Category, "NU - Nunavut", "NU - Nunavut", "");
	addOption(document.theForm.Category, "ON - Ontario", "ON - Ontario", "");
	addOption(document.theForm.Category, "PE - Prince Edward Island", "PE - Prince Edward Island", "");
	addOption(document.theForm.Category, "QC - Québec", "QC - Québec", "");
	addOption(document.theForm.Category, "SK - Saskatchewan", "SK - Saskatchewan", "");
	addOption(document.theForm.Category, "YT - Yukon Territory", "YT - Yukon Territory", "");
	}

function SelectSubCat(){
// ON selection of category this function will work

removeAllOptions(document.theForm.SubCat);
addOption(document.theForm.SubCat, "", "City", "");

if(document.theForm.Category.value == 'AB - Alberta')
	{
	addOption(document.theForm.SubCat,"Airdrie", "Airdrie");
	addOption(document.theForm.SubCat,"Brooks", "Brooks");
	addOption(document.theForm.SubCat,"Calgary", "Calgary");
	addOption(document.theForm.SubCat,"Camrose", "Camrose");
	addOption(document.theForm.SubCat,"Cochrane", "Cochrane");
	addOption(document.theForm.SubCat,"Cold Lake", "Cold Lake");
	addOption(document.theForm.SubCat,"Drayton Valley", "Drayton Valley");
	addOption(document.theForm.SubCat,"Drumheller", "Drumheller");
	addOption(document.theForm.SubCat,"Edmonton", "Edmonton");
	addOption(document.theForm.SubCat,"Fort McMurray", "Fort McMurray");
	addOption(document.theForm.SubCat,"Fort Saskatchewan", "Fort Saskatchewan");
	addOption(document.theForm.SubCat,"Grande Prairie", "Grande Prairie");
	addOption(document.theForm.SubCat,"Hinton", "Hinton");
	addOption(document.theForm.SubCat,"Leduc", "Leduc");
	addOption(document.theForm.SubCat,"Lethbridge", "Lethbridge");
	addOption(document.theForm.SubCat,"Lloydminster", "Lloydminster");
	addOption(document.theForm.SubCat,"Medicine Hat", "Medicine Hat");
	addOption(document.theForm.SubCat,"Okotoks", "Okotoks");
	addOption(document.theForm.SubCat,"Peace River", "Peace River");
	addOption(document.theForm.SubCat,"Red Deer", "Red Deer");
	addOption(document.theForm.SubCat,"Rocky Mountain House", "Rocky Mountain House");
	addOption(document.theForm.SubCat,"Sherwood Park", "Sherwood Park");
	addOption(document.theForm.SubCat,"Slave Lake", "Slave Lake");
	addOption(document.theForm.SubCat,"Spruce Grove", "Spruce Grove");
	addOption(document.theForm.SubCat,"St. Albert", "St. Albert");
	addOption(document.theForm.SubCat,"Strathmore", "Strathmore");
	addOption(document.theForm.SubCat,"Vegreville", "Vegreville");
	addOption(document.theForm.SubCat,"Wainwright", "Wainwright");
	addOption(document.theForm.SubCat,"Wetaskiwin", "Wetaskiwin");
	addOption(document.theForm.SubCat,"Whitecourt", "Whitecourt");
	}
if(document.theForm.Category.value == 'BC - British Columbia')
	{
	addOption(document.theForm.SubCat,"Abbotsford", "Abbotsford");
	addOption(document.theForm.SubCat,"Burnaby", "Burnaby");
	addOption(document.theForm.SubCat,"Campbell River", "Campbell River");
	addOption(document.theForm.SubCat,"Castlegar", "Castlegar");
	addOption(document.theForm.SubCat,"Chilliwack", "Chilliwack");
	addOption(document.theForm.SubCat,"Coquitlam", "Coquitlam");
	addOption(document.theForm.SubCat,"Courtenay", "Courtenay");
	addOption(document.theForm.SubCat,"Cranbrook", "Cranbrook");
	addOption(document.theForm.SubCat,"Dawson Creek", "Dawson Creek");
	addOption(document.theForm.SubCat,"Duncan", "Duncan");
	addOption(document.theForm.SubCat,"Fernie", "Fernie");
	addOption(document.theForm.SubCat,"Fort St. John", "Fort St. John");
	addOption(document.theForm.SubCat,"Kamloops", "Kamloops");
	addOption(document.theForm.SubCat,"Kelowna", "Kelowna");
	addOption(document.theForm.SubCat,"Langley", "Langley");
	addOption(document.theForm.SubCat,"Maple Ridge", "Maple Ridge");
	addOption(document.theForm.SubCat,"Merritt", "Merritt");
	addOption(document.theForm.SubCat,"Mission", "Mission");
	addOption(document.theForm.SubCat,"Nanaimo", "Nanaimo");
	addOption(document.theForm.SubCat,"North Vancouver", "North Vancouver");
	addOption(document.theForm.SubCat,"Penticton", "Penticton");
	addOption(document.theForm.SubCat,"Port Alberni", "Port Alberni");
	addOption(document.theForm.SubCat,"Port Coquitlam", "Port Coquitlam");
	addOption(document.theForm.SubCat,"Powell River", "Powell River");
	addOption(document.theForm.SubCat,"Prince George", "Prince George");
	addOption(document.theForm.SubCat,"Quesnel", "Quesnel");
	addOption(document.theForm.SubCat,"Richmond", "Richmond");
	addOption(document.theForm.SubCat,"Salmon Arm", "Salmon Arm");
	addOption(document.theForm.SubCat,"Sechelt", "Sechelt");
	addOption(document.theForm.SubCat,"Smithers", "Smithers");
	addOption(document.theForm.SubCat,"Squamish", "Squamish");
	addOption(document.theForm.SubCat,"Surrey", "Surrey");
	addOption(document.theForm.SubCat,"Terrace", "Terrace");
	addOption(document.theForm.SubCat,"Trail", "Trail");
	addOption(document.theForm.SubCat,"Vancouver", "Vancouver");
	addOption(document.theForm.SubCat,"Vancouver Region", "Vancouver Region");
	addOption(document.theForm.SubCat,"Vernon", "Vernon");
	addOption(document.theForm.SubCat,"Victoria", "Victoria");
	addOption(document.theForm.SubCat,"Westbank", "Westbank");
	addOption(document.theForm.SubCat,"Whiterock", "Whiterock");
	addOption(document.theForm.SubCat,"Williams Lake", "Williams Lake");
	}
if(document.theForm.Category.value == 'MB - Manitoba')
	{
	addOption(document.theForm.SubCat,"Brandon", "Brandon");
	addOption(document.theForm.SubCat,"Dauphin", "Dauphin");
	addOption(document.theForm.SubCat,"Flin Flon", "Flin Flon");
	addOption(document.theForm.SubCat,"Portage La Prairie", "Portage La Prairie");
	addOption(document.theForm.SubCat,"Selkirk", "Selkirk");
	addOption(document.theForm.SubCat,"Steinbach", "Steinbach");
	addOption(document.theForm.SubCat,"Thompson", "Thompson");
	addOption(document.theForm.SubCat,"Winkler", "Winkler");
	addOption(document.theForm.SubCat,"Winnipeg", "Winnipeg");
	}

if(document.theForm.Category.value == 'NB - New Brunswick')
	{
	addOption(document.theForm.SubCat,"Atholville", "Atholville");
	addOption(document.theForm.SubCat,"Bathurst", "Bathurst");
	addOption(document.theForm.SubCat,"Dieppe", "Dieppe");
	addOption(document.theForm.SubCat,"Edmundston", "Edmundston");
	addOption(document.theForm.SubCat,"Fredericton", "Fredericton");
	addOption(document.theForm.SubCat,"Grand Falls", "Grand Falls");
	addOption(document.theForm.SubCat,"Miramichi", "Miramichi");
	addOption(document.theForm.SubCat,"Moncton", "Moncton");
	addOption(document.theForm.SubCat,"Oromocto", "Oromocto");
	addOption(document.theForm.SubCat,"Rothesay", "Rothesay");
	addOption(document.theForm.SubCat,"Saint John", "Saint John");
	addOption(document.theForm.SubCat,"St. Stephen", "St. Stephen");
	addOption(document.theForm.SubCat,"Sussex", "Sussex");
	addOption(document.theForm.SubCat,"Tracadie - Sheila", "Tracadie - Sheila");
	addOption(document.theForm.SubCat,"Woodstock", "Woodstock");	
	}
	
if(document.theForm.Category.value == 'NL - Newfoundland & Labrador')
	{
	addOption(document.theForm.SubCat,"Carbonear", "Carbonear");
	addOption(document.theForm.SubCat,"Clarenville", "Clarenville");
	addOption(document.theForm.SubCat,"Corner Brook", "Corner Brook");
	addOption(document.theForm.SubCat,"Gander", "Gander");
	addOption(document.theForm.SubCat,"Grand Falls", "Grand Falls");
	addOption(document.theForm.SubCat,"Lewisporte", "Lewisporte");
	addOption(document.theForm.SubCat,"Marystown", "Marystown");
	addOption(document.theForm.SubCat,"Mount Pearl", "Mount Pearl");
	addOption(document.theForm.SubCat,"Port aux Basques", "Port aux Basques");
	addOption(document.theForm.SubCat,"St. John's", "St. John's");
	addOption(document.theForm.SubCat,"Stephenville", "Stephenville");
	}

if(document.theForm.Category.value == 'NS - Nova Scotia')
	{
	addOption(document.theForm.SubCat,"Amherst", "Amherst");
	addOption(document.theForm.SubCat,"Antigonish", "Antigonish");
	addOption(document.theForm.SubCat,"Bedford", "Bedford");
	addOption(document.theForm.SubCat,"Bridgewater", "Bridgewater");
	addOption(document.theForm.SubCat,"Dartmouth", "Dartmouth");
	addOption(document.theForm.SubCat,"Digby", "Digby");
	addOption(document.theForm.SubCat,"Glace Bay", "Glace Bay");
	addOption(document.theForm.SubCat,"Greenwood", "Greenwood");
	addOption(document.theForm.SubCat,"Halifax", "Halifax");
	addOption(document.theForm.SubCat,"Lower Sackville", "Lower Sackville");
	addOption(document.theForm.SubCat,"New Glasgow", "New Glasgow");
	addOption(document.theForm.SubCat,"New Minas", "New Minas");
	addOption(document.theForm.SubCat,"North Sydney", "North Sydney");
	addOption(document.theForm.SubCat,"Port Hawkesbury", "Port Hawkesbury");
	addOption(document.theForm.SubCat,"Sydney", "Sydney");
	addOption(document.theForm.SubCat,"Truro", "Truro");
	addOption(document.theForm.SubCat,"Yarmouth", "Yarmouth");
	}
	
if(document.theForm.Category.value == 'ON - Ontario')
	{
	addOption(document.theForm.SubCat,"Agincourt", "Agincourt");
	addOption(document.theForm.SubCat,"Ajax", "Ajax");
	addOption(document.theForm.SubCat,"Alexandria", "Alexandria");
	addOption(document.theForm.SubCat,"Alliston", "Alliston");
	addOption(document.theForm.SubCat,"Amherstburg", "Amherstburg");
	addOption(document.theForm.SubCat,"Ancaster", "Ancaster");
	addOption(document.theForm.SubCat,"Arnprior", "Arnprior");
	addOption(document.theForm.SubCat,"Aurora", "Aurora");
	addOption(document.theForm.SubCat,"Aylmer", "Aylmer");
	addOption(document.theForm.SubCat,"Bancroft", "Bancroft");
	addOption(document.theForm.SubCat,"Barrie", "Barrie");
	addOption(document.theForm.SubCat,"Belleville", "Belleville");
	addOption(document.theForm.SubCat,"Blenheim", "Blenheim");
	addOption(document.theForm.SubCat,"Bolton", "Bolton");
	addOption(document.theForm.SubCat,"Bowmanville", "Bowmanville");
	addOption(document.theForm.SubCat,"Bracebridge", "Bracebridge");
	addOption(document.theForm.SubCat,"Bradford", "Bradford");
	addOption(document.theForm.SubCat,"Brampton", "Brampton");
	addOption(document.theForm.SubCat,"Brantford", "Brantford");
	addOption(document.theForm.SubCat,"Brockville", "Brockville");
	addOption(document.theForm.SubCat,"Burlington", "Burlington");
	addOption(document.theForm.SubCat,"Caledonia", "Caledonia");
	addOption(document.theForm.SubCat,"Cambridge", "Cambridge");
	addOption(document.theForm.SubCat,"Campbellford", "Campbellford");
	addOption(document.theForm.SubCat,"Carleton Place", "Carleton Place");
	addOption(document.theForm.SubCat,"Casselman", "Casselman");
	addOption(document.theForm.SubCat,"Chatham", "Chatham");
	addOption(document.theForm.SubCat,"Chelmsford", "Chelmsford");
	addOption(document.theForm.SubCat,"Cobourg", "Cobourg");
	addOption(document.theForm.SubCat,"Cochrane", "Cochrane");
	addOption(document.theForm.SubCat,"Collingwood", "Collingwood");
	addOption(document.theForm.SubCat,"Cornwall", "Cornwall");
	addOption(document.theForm.SubCat,"Deep River", "Deep River");
	addOption(document.theForm.SubCat,"Delhi", "Delhi");
	addOption(document.theForm.SubCat,"Downsview", "Downsview");
	addOption(document.theForm.SubCat,"Dryden", "Dryden");
	addOption(document.theForm.SubCat,"Dundas", "Dundas");
	addOption(document.theForm.SubCat,"Dunnville", "Dunnville");
	addOption(document.theForm.SubCat,"Elliot Lake", "Elliot Lake");
	addOption(document.theForm.SubCat,"Espanola", "Espanola");
	addOption(document.theForm.SubCat,"Essex", "Essex");
	addOption(document.theForm.SubCat,"Exeter", "Exeter");
	addOption(document.theForm.SubCat,"Fenelon Falls", "Fenelon Falls");
	addOption(document.theForm.SubCat,"Fergus", "Fergus");
	addOption(document.theForm.SubCat,"Forest", "Forest");
	addOption(document.theForm.SubCat,"Fort Erie", "Fort Erie");
	addOption(document.theForm.SubCat,"Fort Frances", "Fort Frances");
	addOption(document.theForm.SubCat,"Gananoque", "Gananoque");
	addOption(document.theForm.SubCat,"Georgetown", "Georgetown");
	addOption(document.theForm.SubCat,"Gloucester", "Gloucester");
	addOption(document.theForm.SubCat,"Goderich", "Goderich");
	addOption(document.theForm.SubCat,"Gravenhurst", "Gravenhurst");
	addOption(document.theForm.SubCat,"Grimsby", "Grimsby");
	addOption(document.theForm.SubCat,"Guelph", "Guelph");
	addOption(document.theForm.SubCat,"Hamilton", "Hamilton");
	addOption(document.theForm.SubCat,"Hanmer", "Hanmer");
	addOption(document.theForm.SubCat,"Hanover", "Hanover");
	addOption(document.theForm.SubCat,"Hawkesbury", "Hawkesbury");
	addOption(document.theForm.SubCat,"Hearst", "Hearst");
	addOption(document.theForm.SubCat,"Huntsville", "Huntsville");
	addOption(document.theForm.SubCat,"Ingersoll", "Ingersoll");
	addOption(document.theForm.SubCat,"Islington", "Islington");
	addOption(document.theForm.SubCat,"Kanata", "Kanata");
	addOption(document.theForm.SubCat,"Kapuskasing", "Kapuskasing");
	addOption(document.theForm.SubCat,"Kemptville", "Kemptville");
	addOption(document.theForm.SubCat,"Kenora", "Kenora");
	addOption(document.theForm.SubCat,"Keswick", "Keswick");
	addOption(document.theForm.SubCat,"Kincardine", "Kincardine");
	addOption(document.theForm.SubCat,"Kingston", "Kingston");
	addOption(document.theForm.SubCat,"Kirkland Lake", "Kirkland Lake");
	addOption(document.theForm.SubCat,"Kitchener", "Kitchener");
	addOption(document.theForm.SubCat,"Leamington", "Leamington");
	addOption(document.theForm.SubCat,"Lindsay", "Lindsay");
	addOption(document.theForm.SubCat,"Listowel", "Listowel");
	addOption(document.theForm.SubCat,"London", "London");
	addOption(document.theForm.SubCat,"Maple", "Maple");
	addOption(document.theForm.SubCat,"Marathon", "Marathon");
	addOption(document.theForm.SubCat,"Markham", "Markham");
	addOption(document.theForm.SubCat,"Midland", "Midland");
	addOption(document.theForm.SubCat,"Milton", "Milton");
	addOption(document.theForm.SubCat,"Mississauga", "Mississauga");
	addOption(document.theForm.SubCat,"Morrisburg", "Morrisburg");
	addOption(document.theForm.SubCat,"Mount Forest", "Mount Forest");
	addOption(document.theForm.SubCat,"Napanee", "Napanee");
	addOption(document.theForm.SubCat,"Nepean", "Nepean");
	addOption(document.theForm.SubCat,"New Liskeard", "New Liskeard");
	addOption(document.theForm.SubCat,"Newmarket", "Newmarket");
	addOption(document.theForm.SubCat,"Niagara Falls", "Niagara Falls");
	addOption(document.theForm.SubCat,"Niagara Region", "Niagara Region");
	addOption(document.theForm.SubCat,"Nipigon", "Nipigon");
	addOption(document.theForm.SubCat,"North Bay", "North Bay");
	addOption(document.theForm.SubCat,"North York", "North York");
	addOption(document.theForm.SubCat,"Oakville", "Oakville");
	addOption(document.theForm.SubCat,"Orangeville", "Orangeville");
	addOption(document.theForm.SubCat,"Orillia", "Orillia");
	addOption(document.theForm.SubCat,"Orleans", "Orleans");
	addOption(document.theForm.SubCat,"Oshawa", "Oshawa");
	addOption(document.theForm.SubCat,"Ottawa", "Ottawa");
	addOption(document.theForm.SubCat,"Ottawa-Gatineau", "Ottawa-Gatineau");
	addOption(document.theForm.SubCat,"Owen Sound", "Owen Sound");
	addOption(document.theForm.SubCat,"Paris", "Paris");
	addOption(document.theForm.SubCat,"Parry Sound", "Parry Sound");
	addOption(document.theForm.SubCat,"Pembroke", "Pembroke");
	addOption(document.theForm.SubCat,"Perth", "Perth");
	addOption(document.theForm.SubCat,"Peterborough", "Peterborough");
	addOption(document.theForm.SubCat,"Pickering", "Pickering");
	addOption(document.theForm.SubCat,"Picton", "Picton");
	addOption(document.theForm.SubCat,"Port Colborne", "Port Colborne");
	addOption(document.theForm.SubCat,"Port Elgin", "Port Elgin");
	addOption(document.theForm.SubCat,"Port Perry", "Port Perry");
	addOption(document.theForm.SubCat,"Prescott", "Prescott");
	addOption(document.theForm.SubCat,"Renfrew", "Renfrew");
	addOption(document.theForm.SubCat,"Rexdale", "Rexdale");
	addOption(document.theForm.SubCat,"Richmond Hill", "Richmond Hill");
	addOption(document.theForm.SubCat,"Rockland", "Rockland");
	addOption(document.theForm.SubCat,"Sarnia", "Sarnia");
	addOption(document.theForm.SubCat,"Sault Ste. Marie", "Sault Ste. Marie");
	addOption(document.theForm.SubCat,"Scarborough", "Scarborough");
	addOption(document.theForm.SubCat,"Simcoe", "Simcoe");
	addOption(document.theForm.SubCat,"Smiths Falls", "Smiths Falls");
	addOption(document.theForm.SubCat,"St. Catharines", "St. Catharines");
	addOption(document.theForm.SubCat,"St. Marys", "St. Marys");
	addOption(document.theForm.SubCat,"St. Thomas", "St. Thomas");
	addOption(document.theForm.SubCat,"Stoney Creek", "Stoney Creek");
	addOption(document.theForm.SubCat,"Stouffville", "Stouffville");
	addOption(document.theForm.SubCat,"Stratford", "Stratford");
	addOption(document.theForm.SubCat,"Strathroy", "Strathroy");
	addOption(document.theForm.SubCat,"Sturgeon Falls", "Sturgeon Falls");
	addOption(document.theForm.SubCat,"Sudbury", "Sudbury");
	addOption(document.theForm.SubCat,"Thornhill", "Thornhill");
	addOption(document.theForm.SubCat,"Thunder Bay", "Thunder Bay");
	addOption(document.theForm.SubCat,"Tilbury", "Tilbury");
	addOption(document.theForm.SubCat,"Tillsonburg", "Tillsonburg");
	addOption(document.theForm.SubCat,"Timmins", "Timmins");
	addOption(document.theForm.SubCat,"Toronto", "Toronto");
	addOption(document.theForm.SubCat,"Trenton", "Trenton");
	addOption(document.theForm.SubCat,"Uxbridge", "Uxbridge");
	addOption(document.theForm.SubCat,"Vaughan", "Vaughan");
	addOption(document.theForm.SubCat,"Wallaceburg", "Wallaceburg");
	addOption(document.theForm.SubCat,"Waterloo", "Waterloo");
	addOption(document.theForm.SubCat,"Wawa", "Wawa");
	addOption(document.theForm.SubCat,"Welland", "Welland");
	addOption(document.theForm.SubCat,"Weston", "Weston");
	addOption(document.theForm.SubCat,"Whitby", "Whitby");
	addOption(document.theForm.SubCat,"Willowdale", "Willowdale");
	addOption(document.theForm.SubCat,"Windsor", "Windsor");
	addOption(document.theForm.SubCat,"Woodbridge", "Woodbridge");
	addOption(document.theForm.SubCat,"Woodstock", "Woodstock");
	}

if(document.theForm.Category.value == 'NT - Northwest Territories')
	{
	addOption(document.theForm.SubCat,"Yellowknife", "Yellowknife");
	}
	
if(document.theForm.Category.value == 'NU - Nunavut')
	{
	addOption(document.theForm.SubCat,"Arviat", "Arviat");
	addOption(document.theForm.SubCat,"Baker Lake", "Baker Lake");
	addOption(document.theForm.SubCat,"Cambridge Bay", "Cambridge Bay");
	addOption(document.theForm.SubCat,"Cape Dorset", "Cape Dorset");
	addOption(document.theForm.SubCat,"Iqaluit", "Iqaluit");
	addOption(document.theForm.SubCat,"Igloolik", "Igloolik");
	addOption(document.theForm.SubCat,"Kugluktuk", "Kugluktuk");
	addOption(document.theForm.SubCat,"Pangnirtung", "Pangnirtung");
	addOption(document.theForm.SubCat,"Pond Inlet", "Pond Inlet");
	addOption(document.theForm.SubCat,"Rankin Inlet", "Rankin Inlet");
	}

if(document.theForm.Category.value == 'PE - Prince Edward Island')
	{
	addOption(document.theForm.SubCat,"Charlottetown", "Charlottetown");
	addOption(document.theForm.SubCat,"Summerside", "Summerside");
	}
	
if(document.theForm.Category.value == 'QC - Québec')
	{
	addOption(document.theForm.SubCat,"Alma", "Alma");
	addOption(document.theForm.SubCat,"Amos", "Amos");
	addOption(document.theForm.SubCat,"Aylmer", "Aylmer");
	addOption(document.theForm.SubCat,"Baie-Comeau", "Baie-Comeau");
	addOption(document.theForm.SubCat,"Beauport", "Beauport");
	addOption(document.theForm.SubCat,"Beloeil", "Beloeil");
	addOption(document.theForm.SubCat,"Blainville", "Blainville");
	addOption(document.theForm.SubCat,"Boucherville", "Boucherville");
	addOption(document.theForm.SubCat,"Brossard", "Brossard");
	addOption(document.theForm.SubCat,"Buckingham", "Buckingham");
	addOption(document.theForm.SubCat,"Cap de la Madeleine", "Cap de la Madeleine");
	addOption(document.theForm.SubCat,"Charlesbourg", "Charlesbourg");
	addOption(document.theForm.SubCat,"Chicoutimi-Jonquière", "Chicoutimi-Jonquière");
	addOption(document.theForm.SubCat,"Châteauguay", "Châteauguay");
	addOption(document.theForm.SubCat,"Coaticook", "Coaticook");
	addOption(document.theForm.SubCat,"Cowansville", "Cowansville");
	addOption(document.theForm.SubCat,"Delson", "Delson");
	addOption(document.theForm.SubCat,"Dolbeau Mistassini", "Dolbeau Mistassini");
	addOption(document.theForm.SubCat,"Dollard-des-Ormeaux", "Dollard-des-Ormeaux");
	addOption(document.theForm.SubCat,"Donnacona", "Donnacona");
	addOption(document.theForm.SubCat,"Drummondville", "Drummondville");
	addOption(document.theForm.SubCat,"Fabreville", "Fabreville");
	addOption(document.theForm.SubCat,"Fleurimont", "Fleurimont");
	addOption(document.theForm.SubCat,"Gaspé", "Gaspé");
	addOption(document.theForm.SubCat,"Gatineau", "Gatineau");
	addOption(document.theForm.SubCat,"Granby", "Granby");
	addOption(document.theForm.SubCat,"Greenfield Park", "Greenfield Park");
	addOption(document.theForm.SubCat,"Hull", "Hull");
	addOption(document.theForm.SubCat,"Joliette", "Joliette");
	addOption(document.theForm.SubCat,"Jonquière", "Jonquière");
	addOption(document.theForm.SubCat,"Kirkland", "Kirkland");
	addOption(document.theForm.SubCat,"L'Ancienne-Lorette", "L'Ancienne-Lorette");
	addOption(document.theForm.SubCat,"La Malbaie", "La Malbaie");
	addOption(document.theForm.SubCat,"La Sarre", "La Sarre");
	addOption(document.theForm.SubCat,"La Tuque", "La Tuque");
	addOption(document.theForm.SubCat,"LaSalle", "LaSalle");
	addOption(document.theForm.SubCat,"Lac Mégantic", "Lac Mégantic");
	addOption(document.theForm.SubCat,"Lachute", "Lachute");
	addOption(document.theForm.SubCat,"Laval", "Laval");
	addOption(document.theForm.SubCat,"Longueuil", "Longueuil");
	addOption(document.theForm.SubCat,"Lévis", "Lévis");
	addOption(document.theForm.SubCat,"Magog", "Magog");
	addOption(document.theForm.SubCat,"Maniwaki", "Maniwaki");
	addOption(document.theForm.SubCat,"Matane", "Matane");
	addOption(document.theForm.SubCat,"Mont Tremblant", "Mont Tremblant");
	addOption(document.theForm.SubCat,"Montmagny", "Montmagny");
	addOption(document.theForm.SubCat,"Montréal", "Montréal");
	addOption(document.theForm.SubCat,"Montréal - East", "Montréal - East");
	addOption(document.theForm.SubCat,"Montréal - South Shore", "Montréal - South Shore");
	addOption(document.theForm.SubCat,"Montréal - West Island", "Montréal - West Island");
	addOption(document.theForm.SubCat,"Montréal - surroundings", "Montréal - surroundings");
	addOption(document.theForm.SubCat,"Montréal Nord", "Montréal Nord");
	addOption(document.theForm.SubCat,"Ottawa-Gatineau", "Ottawa-Gatineau");
	addOption(document.theForm.SubCat,"Paspebiac", "Paspebiac");
	addOption(document.theForm.SubCat,"Pincourt", "Pincourt");
	addOption(document.theForm.SubCat,"Québec", "Québec");
	addOption(document.theForm.SubCat,"Repentigny", "Repentigny");
	addOption(document.theForm.SubCat,"Rimouski", "Rimouski");
	addOption(document.theForm.SubCat,"Rivière du Loup", "Rivière du Loup");
	addOption(document.theForm.SubCat,"Roberval", "Roberval");
	addOption(document.theForm.SubCat,"Rosemère", "Rosemère");
	addOption(document.theForm.SubCat,"Rouyn-Noranda", "Rouyn-Noranda");
	addOption(document.theForm.SubCat,"Sept-Îles", "Sept-Îles");
	addOption(document.theForm.SubCat,"Shawinigan", "Shawinigan");
	addOption(document.theForm.SubCat,"Shawville", "Shawville");
	addOption(document.theForm.SubCat,"Sherbrooke", "Sherbrooke");
	addOption(document.theForm.SubCat,"Sorel", "Sorel");
	addOption(document.theForm.SubCat,"St-Bruno", "St-Bruno");
	addOption(document.theForm.SubCat,"St-Eustache", "St-Eustache");
	addOption(document.theForm.SubCat,"St-Georges-de-Beauce", "St-Georges-de-Beauce");
	addOption(document.theForm.SubCat,"St-Jean-sur-Richelieu", "St-Jean-sur-Richelieu");
	addOption(document.theForm.SubCat,"St-Jérôme", "St-Jérôme");
	addOption(document.theForm.SubCat,"St-Léonard", "St-Léonard");
	addOption(document.theForm.SubCat,"St. Romuald", "St. Romuald");
	addOption(document.theForm.SubCat,"Ste-Agathe-des-Monts", "Ste-Agathe-des-Monts");
	addOption(document.theForm.SubCat,"Ste-Foy", "Ste-Foy");
	addOption(document.theForm.SubCat,"Ste-Hyacinthe", "Ste-Hyacinthe");
	addOption(document.theForm.SubCat,"Ste-Marie-de-Beauce", "Ste-Marie-de-Beauce");
	addOption(document.theForm.SubCat,"Terrebonne", "Terrebonne");
	addOption(document.theForm.SubCat,"Thetford Mines", "Thetford Mines");
	addOption(document.theForm.SubCat,"Trois Rivières", "Trois Rivières");
	addOption(document.theForm.SubCat,"Val d'Or", "Val d'Or");
	addOption(document.theForm.SubCat,"Valleyfield", "Valleyfield");
	addOption(document.theForm.SubCat,"Vanier", "Vanier");
	addOption(document.theForm.SubCat,"Vaudreuil", "Vaudreuil");
	addOption(document.theForm.SubCat,"Verdun", "Verdun");
	addOption(document.theForm.SubCat,"Victoriaville", "Victoriaville");
	addOption(document.theForm.SubCat,"Ville LaSalle", "Ville LaSalle");
	addOption(document.theForm.SubCat,"Ville de La Baie", "Ville de La Baie");
	addOption(document.theForm.SubCat,"Ville-St-Laurent", "Ville-St-Laurent");
	addOption(document.theForm.SubCat,"Vimont", "Vimont");
	}
	
if(document.theForm.Category.value == 'SK - Saskatchewan')
	{
	addOption(document.theForm.SubCat,"Estevan", "Estevan");
	addOption(document.theForm.SubCat,"Kindersley", "Kindersley");
	addOption(document.theForm.SubCat,"Moose Jaw", "Moose Jaw");
	addOption(document.theForm.SubCat,"North Battleford", "North Battleford");
	addOption(document.theForm.SubCat,"Prince Albert", "Prince Albert");
	addOption(document.theForm.SubCat,"Regina", "Regina");
	addOption(document.theForm.SubCat,"Saskatoon", "Saskatoon");
	addOption(document.theForm.SubCat,"Swift Current", "Swift Current");
	addOption(document.theForm.SubCat,"Weyburn", "Weyburn");
	addOption(document.theForm.SubCat,"Yorkton", "Yorkton");
	}
	
if(document.theForm.Category.value == 'YT - Yukon Territory')
	{
	addOption(document.theForm.SubCat,"Whitehorse", "Whitehorse");
	}


}
////////////////// 

function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		//selectbox.options.remove(i);
		selectbox.remove(i);
	}
}


function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}

