/**
 * @author Peter Gallagher
 */

/**
 * this method will check the value of the country selected and disable the 
 * province/state drop-down list if they selected anything other than Canada
 * 
 * @param frmEle the form element
 */
function checkCountry(frmEle){
	//alert("selected index:"+frmEle.options[frmEle.selectedIndex].text);
	//alert(frmEle.value);
	//set the value of the hidden field 'countryName' to the selected Country
	//get the form containing the select box
	var curForm = frmEle.form;
	var pDD = document.getElementById("prov");
	curForm.countryName.value = frmEle.options[frmEle.selectedIndex].text;
	if(frmEle.value == "ca"){
		//they didn't select Canada or U.s. so we want to disable the prov/state drop-down
		pDD.disabled = false;
	}else if(frmEle.value == 'us'){
		pDD.disabled = false;
	}else{
		pDD.disabled = true;
	}
	
}

