// JavaScript Document
function getXmlObject()
{
	if (window.XMLHttpRequest) 
             { // Mozilla, Safari, ...
            xmlobject = new XMLHttpRequest();
            if (xmlobject.overrideMimeType)
            {
                xmlobject.overrideMimeType('text/xml');
                // See note below about this line
            }
        } 
        else if (window.ActiveXObject) { // IE
            try {
                xmlobject = new ActiveXObject("Msxml2.XMLHTTP");
                } 
                catch (e) {
                           try {
                                xmlobject = new ActiveXObject("Microsoft.XMLHTTP");
                               } 
                             catch (e) {}
                          }
     }
	return  xmlobject;
   }

function showstate(str)
{
		xmlobject=new getXmlObject();
		if(xmlobject==null)
		{
			alert("Error in processing");
		}
		else
		{
			xmlobject.onreadystatechange=mystatechange;
			xmlobject.open("GET","ajax.php?id="+str,true);
			xmlobject.send(null);
		}
	
}

function mystatechange()
	{	
	if(xmlobject.readyState==4)
		{
			//document.getElementById("sp_no_val").innerHTML="";
			document.getElementById("cityshow").innerHTML=xmlobject.responseText;
		}
	}
	
function shownotification(str)
{
		//alert(str);
		xmlobject=new getXmlObject();
		if(xmlobject==null)
		{
			alert("Error in processing");
		}
		else
		{
			xmlobject.onreadystatechange=mystatechange11;
			xmlobject.open("GET","ajax11.php?id="+str,true);
			xmlobject.send(null);
		}
	
}

function mystatechange11()
	{	
	if(xmlobject.readyState==4)
		{
			//document.getElementById("sp_no_val").innerHTML="";
			document.getElementById("notifi").innerHTML=xmlobject.responseText;
		}
	}
	
	
function show_other(str)
{
		//alert(str);
		xmlobject=new getXmlObject();
		if(xmlobject==null)
		{
			alert("Error in processing");
		}
		else
		{
			xmlobject.onreadystatechange=mystatechange12;
			xmlobject.open("GET","ajax_other.php?id="+str,true);
			xmlobject.send(null);
		}
	
}

function mystatechange12()
	{	
	if(xmlobject.readyState==4)
		{
			//document.getElementById("sp_no_val").innerHTML="";
			document.getElementById("othr").innerHTML=xmlobject.responseText;
		}
	}
	
function show_event(str)
{
		//alert(str);
		xmlobject=new getXmlObject();
		if(xmlobject==null)
		{
			alert("Error in processing");
		}
		else
		{
			xmlobject.onreadystatechange=mystatechange13;
			xmlobject.open("GET","ajax_event.php?id="+str,true);
			xmlobject.send(null);
		}
	
}

function mystatechange13()
	{	
	if(xmlobject.readyState==4)
		{
			//document.getElementById("sp_no_val").innerHTML="";
			document.getElementById("evdt").innerHTML=xmlobject.responseText;
		}
	}			
		
