	function doChangeProvince() {
		var _select = document.getElementById("provinceId");		
		var provinceId = _select.options[_select.selectedIndex].value;				
		x_dochangeprovince(provinceId, lang, pageid, do_callback_dochangeprovince);	
	}
	function do_callback_dochangeprovince(result) {		
		eval(result);	
		if (!advsearch) {								
			var objCity = document.getElementById('cityId');		
			objCity.disabled = ((__cities.length == 0)?"disabled":"");		
			var iterator = 0;
			try {
				for(b in objCity.options) {		
					objCity.options[b] = null;
				}
			} catch (ex) {			
				objCity.innerHTML = '';	
			}	
			objCity.options[iterator++] = new Option(city,"");			
			for(a in __cities) {
				objCity.options[iterator++] = new Option(__cities[a],a);			
			}
		} else {
			try {			
				if (tbodyElement = document.getElementById("tblcity")) {							
					var parent = tbodyElement.parentNode;
					parent.removeChild(tbodyElement);							
					tbodyElement = document.createElement("tbody");
					tbodyElement.id = "tblcity";												
					for(a in __cities) {
						row  = document.createElement("TR");
	         			cell = document.createElement("TD");         
	         			cb	= document.createElement("input");
	         			p = document.createElement("p");
	         			cb.type = "checkbox";
	         			cb.id = "c" + a;
	         			cb.value = a;
	         			cb.name = "cityId["+ a + "]";
	         			la = document.createElement("label");
	         			la.htmlFor = "c" + a;         			     			 
	         			textnode = document.createTextNode(" " + __cities[a]);
	         			la.appendChild(textnode);    
	         			p.appendChild(cb);         			
	         			p.appendChild(la);
	         			cell.appendChild(p);
	         			row.appendChild(cell);
	         			tbodyElement.appendChild(row);
         			}
         			parent.appendChild(tbodyElement);				
				}
			} catch (exception) {
				alert(exception);			
			}	
		}
	}	
