function changeState()
{
	var obCountry = document.forms[0].country;
	var obOtherCountry = document.forms[0].othercountry;
	var obOtherCountryRow = document.getElementById("othercountryrow");
	var obStates = document.forms[0].state;
	var obProvinces = document.forms[0].province;
	var obOtherProvinces = document.forms[0].otherprovince;
	var obZip = document.forms[0].zipcode;
	var obPostal = document.forms[0].postalcode;
	var obOtherCode = document.forms[0].othercode;

	var selectedIndex = obCountry.selectedIndex;
	//if ((obCountry.options[selectedIndex].text == "CANADA") || (obCountry.options[selectedIndex].text == "Canada"))
	if (selectedIndex == 0) { //Canada
		//hide states
		//obStates.name = "";
		obStates.style.display = "none";
		obZip.style.display = "none";
		obZip.value = "99999";
		
		//hide otherprovinces
		//obOtherProvinces.name = "";
		obOtherProvinces.style.display = "none";
		obOtherCode.style.display = "none";
		obOtherCode.value = "AAAAAA";			
		
		//show provinces
		obProvinces.style.display = "";
		//obProvinces.name = "province";	
		obPostal.style.display = "";
		//obPostal.name = "zipcode";
		//if (obPostal.value == "A1A1A1") {
			obPostal.value = "";
		//}
		
		//hide other country
		obOtherCountry.style.display = "none";
		obOtherCountry.style.display = "none";
		obOtherCountry.value = "OTHER";	
		obOtherCountryRow.style.display = "none";
	}
	else if (selectedIndex == 1) { //USA
		//hide provinces
		//obProvinces.name = "";
		obProvinces.style.display = "none";
		obPostal.style.display = "none";
		obPostal.value = "A1A1A1";
		
		//hide otherprovinces
		//obOtherProvinces.name = "";
		obOtherProvinces.style.display = "none";
		obOtherProvinces.value = "OTHER";
		obOtherCode.style.display = "none";
		obOtherCode.value = "AAAAAA";		
		
		//show states
		obStates.style.display = "";
		//obStates.name = "province";		
		obZip.style.display = "";
		//obZip.name = "zipcode";		
		//if (obZip.value == "99999") {
			obZip.value = "";
		//}		
		
		//hide other country
		obOtherCountry.style.display = "none";
		obOtherCountry.style.display = "none";
		obOtherCountry.value = "OTHER";	
		obOtherCountryRow.style.display = "none";
	}
	else {
		//hide states
		//obStates.name = "";
		obStates.style.display = "none";
		obZip.style.display = "none";
		obZip.value = "99999";
		
		//hide provinces
		//obProvinces.name = "";
		obProvinces.style.display = "none";
		obPostal.style.display = "none";
		obPostal.value = "A1A1A1";
		
		//show otherprovinces
		obOtherProvinces.style.display = "";
		//obOtherProvinces.name = "province";		
		obOtherCode.style.display = "";
		//obOtherCode.name = "zipcode";		
		//if (obOtherCode.value == "AAAAAA") {
			obOtherCode.value = "";
			obOtherProvinces.value = "";
		//}
		
		//show other country
		obOtherCountry.style.display = "";
		obOtherCountry.value = "";	
		obOtherCountryRow.style.display = "";
	}
}