var xmlHttp

function naghsheh(ostan)
{ 
	//alert(href);
	
	
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}        
	var url="naghsheh.php"
	url=url+"?ostan="+ostan;
	
	url=encodeURI(url)
	//alert(url)
	xmlHttp.onreadystatechange=stateChanged
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
	clearControlsPajooheshi()
	document.getElementById('inform').style.display="none";
}

function information(value)
{ 
	//document.getElementById('pic').style.display="";
	//alert(value);
	
	
	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}        
	var url="information.php"
	url=url+"?value="+value;
	
	url=encodeURI(url)
	//alert(url)
	xmlHttp.onreadystatechange=stateChanged2
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
	clearControlsPajooheshi()
	document.getElementById('inform').style.display="";
}




function clearControlsPajooheshi()
{
	
}

function stateChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	   { 
	   		document.getElementById('ostan').innerHTML=xmlHttp.responseText
	   }
} 

function stateChanged2() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	   { 
	   		document.getElementById('inform').innerHTML=xmlHttp.responseText
	   }
} 


function stateChangedAct() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	   { 
	   		document.getElementById('Activity').innerHTML=xmlHttp.responseText
	   }
} 

function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}
