var http = false;

if(navigator.appName == "Microsoft Internet Explorer") {
	http = new ActiveXObject("Microsoft.XMLHTTP");
} else {
	http = new XMLHttpRequest();
}

function changemonth(year, month, ssbmid) {
	
	irandom = Math.random();
	irandom = 10000 * irandom;
	irandom = Math.round(irandom);
	
	http.abort();
	http.open("GET", "../../modules/calendar/user/ajax.php?year=" + year + "&month=" + month + "&ssbmid=" + ssbmid + "&random=" + irandom, true);
	http.onreadystatechange=function() {
		if(http.readyState == 4) {
			document.getElementById('caldiv').innerHTML = http.responseText;
		}
	}
	http.send(null);
}