
// global
var xmlhttp = null;

function loadurl(dest)
{
	try
	{
		if ( window.XMLHttpRequest )
		{
		xmlhttp = new XMLHttpRequest();
		}
		else
		{
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	catch (e)
	{
		alert('oops.. browserul');
		return;
	}
	
	xmlhttp.onreadystatechange = triggered;
	xmlhttp.open("GET", dest);
	xmlhttp.send(null);
}



function triggered()
{
	// 0=Uninitialised 1=Loading 2=Loaded 3=Interactive
	if ( xmlhttp.readyState == 1 )
	{
	// loading....
	}
	else
	{
	// hz..
	}

	if ( (xmlhttp.readyState == 4) && (xmlhttp.status == 200) )
	{
		// xmlhttp.responseText object contains the response.
		document.getElementById("town_row").innerHTML = xmlhttp.responseText;
	}
}

