function GetContent(action , country_id , city_id) //for seelecte code city_id = posted_code value
{	
	var url;
	var param;
	var target;
	var myAjax;
	switch (action)
	{
		case "showCities":
			//alert("Z");
			//alert(city_id);
			
			url = "includes/ajax/professional.php";
			param = "action="+ action + "&country_id="+ country_id + "&city_id="+ city_id +"&rand="+ Math.floor(Math.random() * 1000000), true;
			target = action;
			
			myAjax = new Ajax.Updater(target,url,{method: 'get', parameters: param});

		break;

		case "showCompanyCities":
			//alert(city_id);
			//alert(country_id);
	
			url = "includes/ajax/professional.php";
			param = "action="+ action + "&country_id="+ country_id + "&city_id="+ city_id +"&rand="+ Math.floor(Math.random() * 1000000), true;
			target = action;
			
			myAjax = new Ajax.Updater(target,url,{method: 'get', parameters: param});

		break;
		

		case "showPhoneCountryCode":
			//alert("Z");
			//alert(country_id);

			url = "includes/ajax/professional.php";
			param = "action="+ action + "&country_id="+ country_id +"&rand="+ Math.floor(Math.random() * 1000000), true;
			target = action;
			
			myAjax = new Ajax.Updater(target,url,{method: 'get', parameters: param});

		break;
		
		case "showMobileCountryCode":

			url = "includes/ajax/professional.php";
			param = "action="+ action + "&country_id="+ country_id +"&rand="+ Math.floor(Math.random() * 1000000), true;
			target = action;
			
			myAjax = new Ajax.Updater(target,url,{method: 'get', parameters: param});

		break;

		case "showLoginStatus":

			url = "includes/ajax/professional.phpp";
			param = "action="+ action + "&country_id="+ country_id +"&rand="+ Math.floor(Math.random() * 1000000), true;
			target = action;
			
			myAjax = new Ajax.Updater(target,url,{method: 'get', parameters: param});

		break;



	}
}


function GetLoginStatusContent(action,username, user_type)
{	
	var url;
	var param;
	var target;
	var myAjax;
	switch (action)
	{
/*		case "showCities":
			//alert("Z");
			//alert(country_id);
			
			url = "scripts/content.php";
			param = "action="+ action + "&country_id="+ country_id +"&rand="+ Math.floor(Math.random() * 1000000), true;
			target = action;
			
			myAjax = new Ajax.Updater(target,url,{method: 'get', parameters: param});

		break;*/

		case "showLoginStatus":

			url = "includes/ajax/professional.php";
			param = "action="+ action + "&username="+ username +"&user_type=" + user_type + "&rand="+ Math.floor(Math.random() * 1000000), true;
			//alert(param);
			target = action;
			
			myAjax = new Ajax.Updater(target,url,{method: 'get', parameters: param});

		break;



	}
}
