var xmlHttp2;
var xmlHttp2_message;

function stateChanged2() 
 { 
  if (xmlHttp2.readyState==4)
   { 
    document.getElementById("cald").innerHTML=xmlHttp2.responseText;
   }
 }

function GetXmlHttpObject2()
 {
  var xmlHttp2=null;
  try
   {
    // Firefox, Opera 8.0+, Safari
    xmlHttp2=new XMLHttpRequest();
   }
  catch (e1)
   {
    // Internet Explorer
    try
     {
      xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
     }
    catch (e2)
     {
      xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
     }
   }
  return xmlHttp2;
 }

function goNextMonth(m, y, lng)
 { 
  var month;
  var year;
  if(m == "12") 
   { 
    year = parseInt(y, 10)+1; 
    month = 1; 
   } 
  else
   {
    month = parseInt(m, 10)+1;
    year = y;
   }
  //alert(month + " " + year);
  xmlHttp2=GetXmlHttpObject2();
  if (xmlHttp2===null)
   {
    return;
   } 
  var url="";
  url="getmonth.php";
  url=url+"?sid="+Math.random() + "&month=" + month + "&year=" + year + "&lng=" + lng;
  xmlHttp2.onreadystatechange=stateChanged2;
  xmlHttp2.open("GET",url,true);
  xmlHttp2.send(null);  
 }