function changemonth(month,year){
		document.getElementById('calchange').innerHTML = '<img src="images/ajax-loader2.gif" width="220" height="19">';
		var xmlhttp=false; //Clear our fetching variable
        try {
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } catch (e) {
                try {
                        xmlhttp = new
                        ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } catch (E) {
                xmlhttp = false;
                        }
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
                xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        //var file = 'includes/monthcalendar.php?month='; //This is the path to the file we just finished making *
	   // var file = 'includes/monthcalendarnew.php?month='; //This is the path to the file we just finished making *
	    var file = 'includes/monthcalendarget.php?month='; //This is the path to the file we just finished making *
		var file2 = '&year=';
    xmlhttp.open('GET', file + month + file2 + year, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4) { //Check if it is ready to recieve data
                var content = xmlhttp.responseText; //The content data which has been retrieved ***
                if( content ){ //Make sure there is something in the content variable
                      document.getElementById('calchange').innerHTML = content; //Change the inner content of your div to the newly retrieved content ****
                }
        }
        }
        xmlhttp.send(null) //Nullify the XMLHttpRequest
return;
}

function selectmonth(month,year){
	var smonth = month
	var syear = year;
	window.location.href='selectmonth.php?month=' + smonth +'&year=' + syear;
}

function getEvent(eventid){
			document.getElementById('event').innerHTML = '<img src="images/ajax-loader2.gif" width="220" height="19">';
		var xmlhttp=false; //Clear our fetching variable
        try {
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } catch (e) {
                try {
                        xmlhttp = new
                        ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } catch (E) {
                xmlhttp = false;
                        }
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
                xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        var file = 'event.php?eid='; //This is the path to the file we just finished making *
    xmlhttp.open('GET', file + eventid, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
    xmlhttp.onreadystatechange=function() {
        	if (xmlhttp.readyState==4) { //Check if it is ready to recieve data
                var content1 = xmlhttp.responseText; //The content data which has been retrieved ***
                if( content1 ){ //Make sure there is something in the content variable
                      document.getElementById('event').innerHTML = content1;
                }
        	}
        }
        xmlhttp.send(null) //Nullify the XMLHttpRequest
return;
}
