// get the url path
var path = location.href;
path = path.replace("http://", "");
p = path.split("/");
//path = "http://"+p[0]+"/"+p[1]+"/";
path = "http://"+p[0]+"/";
function getMonth(month,year){

			var theyear = null;
			var themonth = null;
			if(year){ theyear = "year="+year; }
			if(month){ themonth = "month="+month; }
			//alert(themonth);
			
			var targetName = 'calendar_holder';
			var target = document.getElementById(targetName);
			
			// Empty target divs contents
			while(target.firstChild) {
				target.removeChild(target.firstChild);
			}
			
			// Create new div with loading gif.
			loadingDiv = document.createElement('div');
			loadingDiv.className = 'loading';
			//loadingDiv.appendChild(document.createTextNode("loading..."));
			target.appendChild(loadingDiv);

			new ajax (path+'includes/calendar.inc.php', {postBody: (themonth+'&'+theyear), update: $(targetName), onComplete: addTips});

			//new ajax ('<?php print "http://".$_SERVER['SERVER_NAME'].SERVER_PATH; ?>includes/calendar.inc.php', {postBody: (themonth+'&'+theyear), update: $(targetName), onComplete: addTips});
		}
		
		function addTips(){
			setTimeout( function(){tooltip.init();},30);
		}
