function bonload()
{
	document.getElementById("calendar_frame").innerHTML = "";


}



function getCal(year,mon) {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", '/cal_ajax.php?year='+year+'&mon='+mon, true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
        }
        if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            document.getElementById("calendar_frame").innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
} 

function getCalDay(day) {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", '/cal_ajax.php?day='+day);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
        }
        if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            document.getElementById("colTwo").innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
} 

