// declare new variables for each new div that you add, and link to the div by ID
// var region_div = document.getElementById("region_div");
var doc = null;

function ajax() {
	// Make a new XMLHttp object
	if (typeof window.ActiveXObject != 'undefined' ) doc = new ActiveXObject("Microsoft.XMLHTTP");
	else doc = new XMLHttpRequest();
}

function Select_region(country){
		ajax();
		// Load the result from the response page
		// ** As far a I know firefox will only load a document on the SAME domain!!	
	    if (doc){
	       doc.open("GET", "./location.php?section=region&country="+country, false);
	       doc.send(null);
	       document.getElementById('region_div').innerHTML = doc.responseText;
	    }
	    else{
	      
	       destination.innerHTML = 'Browser unable to create XMLHttp Object';
	    }  
					
}

function Select_city(state){
		ajax();
		if (doc){
			doc.open("GET", "./location.php?section=city&state="+state, false);
	        doc.send(null);
	    	document.getElementById('city_div').innerHTML = doc.responseText;
	   			 }	
	    else{
	       destination.innerHTML = 'Browser unable to create XMLHttp Object';
		    }  
	}



