function country_change (this_form){
	var country_select= (this_form.frm_country) ? this_form.frm_country : this_form.frm_country_id;
	var state_select= (this_form.frm_state) ? this_form.frm_state : this_form.frm_state_id;

	var country_id = country_select.options[country_select.selectedIndex].value;
	//alert('c'+country_id);
	if (country_id != 0){
		try {
			var country_state_mapping = eval('c'+country_id);
		}
		catch (e){
			var country_state_mapping = [];
		}
	}
	var options_cnt = (state_select.options.length && state_select.options[0].value == '0' ) ? 1 : 0; //if have "select state"
	//alert(country_state_mapping.length);
	for (var i=0; i<country_state_mapping.length; i++){
		var o = new Option(country_state_mapping[i][0], country_state_mapping[i][1]);
		//alert(o.text);
		state_select.options[options_cnt]=o;
		//if(full_appraiser_select[i][0]==1) o.selected=true;
		options_cnt++;
	}
	state_select.options.length=options_cnt;
	state_select.disabled = (state_select.options.length > 1) ? false : true;

	//alert(country_select);
}
