<!--
	//	Initialize class for Type and state

	function state(id, cboCountry, state){
		this.id = id;
		this.country = cboCountry;
		this.stateProvince = state;
	}

    //	Initialize Array's Data for Type and state

	stateArray = new Array(
			new state('AK', 'US', "AK - Alaska"),
			new state('AL', 'US', "AL - Alabama"),
			new state('AR', 'US', "AR - Arkansas"),
			new state('AZ', 'US', "AZ - Arizona"),
			new state('CA', 'US', "CA - California"),
			new state('CO', 'US', "CO - Colorado"),
			new state('CT', 'US', "CT - Connecticut"),
			new state('DC', 'US', "DC - District of Columbia"),
			new state('DE', 'US', "DE - Delaware"),
			new state('FL', 'US', "FL - Florida"),
			new state('GA', 'US', "GA - Georgia"),
			new state('HI', 'US', "HI - Hawaii"),
			new state('IA', 'US', "IA - Iowa"),
			new state('ID', 'US', "ID - Idaho"),
			new state('IL', 'US', "IL - Illinois"),
			new state('IN', 'US', "IN - Indiana"),
			new state('KS', 'US', "KS - Kansas"),
			new state('KY', 'US', "KY - Kentucky"),
			new state('LA', 'US', "LA - Louisiana"),
			new state('MA', 'US', "MA - Massachusetts"),
			new state('MD', 'US', "MD - Maryland"),
			new state('ME', 'US', "ME - Maine"),
			new state('MI', 'US', "MI - Michigan"),
			new state('MN', 'US', "MN - Minnesota"),
			new state('MO', 'US', "MO - Missouri"),
			new state('MS', 'US', "MS - Mississippi"),
			new state('MT', 'US', "MT - Montana"),
			new state('NC', 'US', "NC - North Carolina"),
			new state('ND', 'US', "ND - North Dakota"),
			new state('NE', 'US', "NE - Nebraska"),
			new state('NH', 'US', "NH - New Hampshire"),
			new state('NJ', 'US', "NJ - New Jersey"),
			new state('NM', 'US', "NM - New Mexico"),
			new state('NV', 'US', "NV - Nevada"),
			new state('NY', 'US', "NY - New York"),
			new state('OH', 'US', "OH - Ohio"),
			new state('OK', 'US', "OK - Oklahoma"),
			new state('OR', 'US', "OR - Oregon"),
			new state('PA', 'US', "PA - Pennsylvania"),
			new state('RI', 'US', "RI - Rhode Island"),
			new state('SC', 'US', "SC - South Carolina"),
			new state('SD', 'US', "SD - South Dakota"),
			new state('TN', 'US', "TN - Tennessee"),
			new state('TX', 'US', "TX - Texas"),
			new state('UT', 'US', "UT - Utah"),
			new state('VA', 'US', "VA - Virginia"),
			new state('VT', 'US', "VT - Vermont"),
			new state('WA', 'US', "WA - Washington"),
			new state('WI', 'US', "WI - Wisconsin"),
			new state('WV', 'US', "WV - West Virginia"),
			new state('WY', 'US', "WY - Wyoming"),
			new state('AB', 'CA', "AB - Alberta"),
			new state('BC', 'CA', "BC - British Columbia"),
			new state('MB', 'CA', "MB - Manitoba"),
			new state('NB', 'CA', "NB - New Brunswick"),
			new state('NL', 'CA', "NL - Newfoundland and Labrador"),
			new state('NT', 'CA', "NT - Northwest Territories"),
			new state('NS', 'CA', "NS - Nova Scotia"),
			new state('NU', 'CA', "NU - Nunavut"),
			new state('ON', 'CA', "ON - Ontario"),
			new state('PE', 'CA', "PE - Prince Edward Island"),
			new state('QC', 'CA', "QC - Quebec"),
			new state('SK', 'CA', "SK - Saskatchewan"),
			new state('YT', 'CA', "YT - Yukon")
	);

function OnChange(){
	document.forms[0].stateProvince.options[0] = new Option("Choisissez un État/ une Province","none"); // initialize
	sel_type_index = document.forms[0].country.selectedIndex;
	sel_type_value = document.forms[0].country[sel_type_index].value;
	for(i = document.forms[0].stateProvince.length - 1; i > 0; i--)
		document.forms[0].stateProvince.options[i] = null;
	// Populate options
	j=1;
	for(i = 1; i <= stateArray.length; i++){
		if(stateArray[i-1].country == sel_type_value){
			document.forms[0].stateProvince.options[j] = new Option(stateArray[i-1].stateProvince, stateArray[i-1].id);
			j++;
		}
	}
}
//-->