
function selLocation(aa)
{
var b;
b=aa.options[aa.selectedIndex].value;


		if(window.XMLHttpRequest)
		{
		xmlObj = new XMLHttpRequest();
		}
		else if(window.ActiveXObject)
		{
		xmlObj = new ActiveXObject("Microsoft.XMLHTTP");
		}

//xmlObj.open("post","http://demo20.dimensioni.net/franchise/cityList.php",true);
//xmlObj.open("post","http://ft.polsemannen.se/franchise/cityList.php",true);
xmlObj.open("post","/franchise/cityList.php",true);

//xmlObj.open("post","http://polsemen.di.com/franchise/cityList.php",true);
xmlObj.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");


xmlObj.onreadystatechange = function() 
	{
	if (xmlObj.readyState == 4) 
		{
			document.getElementById('cityLoc').innerHTML=xmlObj.responseText;
		}
	}
post_data= "cityID="+b;
xmlObj.send(post_data);
}// end of main ajax function
function submitForm()
{
with(window.document.locationForm)
	{	
		 if(city.value=="")
		{	alert("Select the city."); 
			city.focus(); return false;
		}
		 if(cityLocation.value=="")
		{	alert("Select the location."); 
			cityLocation.focus(); return false;
		}
	document.locationForm.submit();
		return true;
	}

}
