function getHTTPObject()
{
	// code for Mozilla, etc.
	if (window.XMLHttpRequest)
  	{
  		xmlhttp=new XMLHttpRequest()
  	}
// code for IE
	else if (window.ActiveXObject)
  	{
  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
  	}
	return xmlhttp;
}
var ajax = getHTTPObject();

function SelState(id)
{
//	alert("demo");
	ajax.open("GET","ajaxstate.php?conid="+id);
	ajax.onreadystatechange = CountryCombo;
	ajax.send(null);
}
function CountryCombo()
{	
	if(ajax.readyState == 4)
	{
		var respons = ajax.responseText;
		document.getElementById('CointList').innerHTML = respons;
	}
}


