// JavaScript Document
function reg_get_pro(fid)
{
	xmlhttp = initxmlhttp();
	var url = '../reg_com.php?fid=' + fid;
	xmlhttp.open('POST', url, true);
	xmlhttp.onreadystatechange = function () {
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			document.getElementById('provice').innerHTML = xmlhttp.responseText;
		}
	}
	xmlhttp.send(null);
}

function FindCity(fid)
{
	xmlhttp = initxmlhttp();
	var url = '../reg_com.php?fid=' + fid+"&mod=city";
	xmlhttp.open('POST', url, true);
	xmlhttp.onreadystatechange = function () {
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			document.getElementById('city').innerHTML = xmlhttp.responseText;
		}
	}
	xmlhttp.send(null);
}
