// JavaScript Document
//get state list
function changeStateList(c_code)
	{
		//alert(c_code);
		//return false;
		//alert(infotype);
	var ajaxRequest; 	
	try
		{
		ajaxRequest = new XMLHttpRequest();
	   	}
	catch (e)
		{
		// Internet Explorer Browsers
		try
			{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
			}
		catch (e)
			{
			try
				{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
				}
			catch (e)
				{
				// Something went wrong
				alert("Your browser broke!");
				return false;
				}
			}
		}
	ajaxRequest.onreadystatechange = function()
		{
		var display_id='state_list';
		/*if(ajaxRequest.readyState == 1)
			{
			document.getElementById('state_list').innerHTML="<center>Loading...</center";	
			}*/
			
		if(ajaxRequest.readyState == 4)
			{			
			document.getElementById(display_id).innerHTML = ajaxRequest.responseText;
			}
		} 
	var queryString = "&c_code=" + c_code; //+ "&infotype=" + infotype;
	//alert(queryString);
	//ajaxRequest.open("POST", "action_ajax.php?include=modules/main/editbilling.php" + queryString, true);
	ajaxRequest.open("GET", "action_ajax.php?option=1&include=state_list" + queryString, true);
	//ajaxRequest.("application/x-www-form-urlencoded");
	ajaxRequest.send(null); 
	}
