function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
    hs.graphicsDir = 'images/graphics/';
    hs.outlineType = 'rounded-white';
    window.onload = function() {
        hs.preloadImages(5);
    }

function navigate(month,year) {

     var url = "http://"+document.domain+"/ajax_calendar/calendar1.php?month="+month+"&year="+year;
	 //var url = "../../ajax_calendar/calendar1.php?month="+month+"&year="+year;
	    if(window.XMLHttpRequest) {
                req = new XMLHttpRequest();
        } else if(window.ActiveXObject) {
                req = new ActiveXObject("Microsoft.XMLHTTP");
        }
        req.open("GET", url, true);
		req.onreadystatechange = callback;
        req.send(null);
		
		
}

function callback() {
        if(req.readyState == 4) {
                if(req.status == 200) {
                        response = req.responseText;
                        document.getElementById("calendar").innerHTML = response;
                } else {
                        alert("There was a problem retrieving the data:\n" + req.statusText);
                }
        }
}

