var xmlHttp;

function fnCheckRegion()	{ 
	xmlHttp=GetXmlHttpObject();
	
	if (xmlHttp==null)	{
	  alert ("Your browser does not support this feature.");
	  return;
	}  
	
	var FromSub=document.getElementById("FromSub").value;
	var FromState=document.getElementById("FromState").value;
	var ToSub=document.getElementById("ToSub").value;
	var ToState=document.getElementById("ToState").value;
	
	var url="asyncregioncheck.asp";
	url=url+"?FromState="+FromState+"&FromSub="+FromSub;
	url=url+"&ToState="+ToState+"&ToSub="+ToSub;
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=function()	{
		if (xmlHttp.readyState==4)	{
	      if (xmlHttp.responseText.search(/Error! /)!=-1)  {
			alert(xmlHttp.responseText.replace(/Error! /,""));
	      }
		  else  {
		    fnValidate();
		  }
		}
	}
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}