var xmlHttp = new XMLHttpRequest();
function getCity()
{
	xmlHttp.open('get','getcity.php?id='+ document.AddNewAdForm.AdCountry.value);
	xmlHttp.onreadystatechange = handleInfo;
	xmlHttp.send(null);
}

function handleInfo()
{
	if(xmlHttp.readyState == 1)
	{
		document.getElementById('main').innerHTML = '<img src="images/loading-anim.gif">';
	}

	else if(xmlHttp.readyState == 4)
	{
		var response = xmlHttp.responseText;
		document.getElementById('main').innerHTML = response;
	}
}




