var xmlHttp1

function changemag(magid,magyear,magmonth)
{ 
		xmlHttp1=GetXmlHttpObject1()
		
		if (xmlHttp1==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		}
		//document.getElementById("listsubcat").style.display = "none";
		var url1="change_mag.php"
		url1=url1+"?magid="+magid+"&magyear="+magyear+"&magmonth="+magmonth;
		url1=url1+"&sid="+Math.random()
		xmlHttp1.onreadystatechange=stateChanged1 
		xmlHttp1.open("GET",url1,true)
		xmlHttp1.send(null)
}

function stateChanged1() 
{ 
if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
   { 
   document.getElementById("showimagemag").innerHTML=xmlHttp1.responseText
   
   } 
} 


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

