		var ajax = new sack();

		function getStates(sel) {
			var countryCode = sel.options[sel.selectedIndex].value;
			document.getElementById('ajax_state').options.length = 0;
			if(countryCode.length>0) {
				ajax.requestFile = 'includes/getStates.php?countryCode='+countryCode;
				ajax.onCompletion = createState;
				ajax.runAJAX();
			}
		}

		function createState() {
			var obj = document.getElementById('ajax_state');
			eval(ajax.response);
		}
		
		function getCity(form) {
			var stateCode = form.ajax_state.options[form.ajax_state.selectedIndex].value;
			document.getElementById('ajax_city').options.length = 0;
			if(stateCode.length>0) {
				ajax.requestFile = 'includes/getCity.php?stateCode='+stateCode;
				ajax.onCompletion = createCity;
				ajax.runAJAX();
			}
		}

		function createCity() {
			var obj = document.getElementById('ajax_city');
			eval(ajax.response);
		}

