	var respArray = new Array();
	function fnRegStateUpdates_AJAX(obj, form, https){
		if (obj.value == ''){return;}

		//if (https) root = sroot;

		lroot = (window.location.protocol == 'https:') ? sroot : root;

		ajaxresp = new Ajax.Request(lroot + 'public_panel/ajax/register.php?mode=su&state='+obj.value, {
			method: 'get',
			onSuccess: function(resp) {
				eval('respArray = '+resp.responseText);
				fnRegCityUpdates(form);
			}
		});
	}

	function fnRegCityUpdates(form){
		form.city.innerHTML = '';
		if (respArray['city']['html']!=''){
			form.city.disabled = false;
		}else{
			form.city.disabled = true;
		}

		for(var i = 0; i < respArray['city']['ary'].length ; i++){
			var oOption 	= document.createElement("OPTION");
			var oText		= document.createTextNode(respArray['city']['ary'][i]['text']);
			oOption.appendChild(oText);
			oOption.value	= respArray['city']['ary'][i]['value'];
			form.city.appendChild(oOption);
		}

		//form.city.innerHTML = respArray['city']['html'];
	}
