function go(y,m)
 { 
   destroy_all_divs();
   get_results(y,m);
 }
 //*****************************************
 function get_results(y,m)
 {	
  getURL('cal_reload.php?y='+y+'&m='+m,callbackFunction);
 }
 //*****************************************   
 var http;
 function getURL(url, callback)
  { 
   if (url != "")
    {
     if (window.XMLHttpRequest)
      {
       http = new XMLHttpRequest();
       http.onreadystatechange = callback;
       try
        {
	  http.open("GET", url, true);
        }
       catch (e)
        {
         alert(e);
        }
        http.send(null);
      }
     else if (window.ActiveXObject)
      {
       http = new ActiveXObject("Microsoft.XMLHTTP");
       if (http)
        {
	 http.onreadystatechange = callback;
	 http.open("GET", url, true);
	 http.send();
        }
      }
    }    
 }
//*****************************************     
function callbackFunction()
{ 
 switch (http.readyState)
  {
   case 1:
    document.getElementById('cal').style.border='1px solid white';
    document.getElementById('cal').style.color='red';
    document.getElementById('cal').innerHTML='Loading ....';  
    break;
   case 4:
    if (http.status == 200)
     {	     
      var data = http.responseText;  
           
      tablestr='<table border=1 width=98% height=80% class=text cellspacing=0 cellpadding=0>'+data+'</table>';
      document.getElementById('cal').innerHTML=tablestr;
      location.href="#thecal";      
      //location.hash="#thecal";
     }
    else
     {
      alert('Error: '+ http.statusText);	
     }
      break;
   }
}