// JavaScript Document

	function ajaxCall(iCal)
		{
			if (window.XMLHttpRequest)     // Object of the current windows
			{
		    	var xmlhttp = new XMLHttpRequest();     // Firefox, Safari, ...
			}
			else
		 	if (window.ActiveXObject)   // ActiveX version
		 	{
		    	var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");  // Internet Explorer
			}

			if (xmlhttp!=null){
			
				var strURL='/assets/ajax/calbox.php?iCal='+iCal+'&rnd='+Math.random();

				xmlhttp.open('GET', strURL, true);

				xmlhttp.onreadystatechange = function()
				{
					if (xmlhttp.readyState == 4) {
						if (xmlhttp.status == 200) {

							document.getElementById('ajaxcontent').innerHTML = xmlhttp.responseText;
							document.getElementById('ajaxloading').style.display='none';
							document.getElementById('ajaxcontent').style.display="block";

						}
		        	}
				}
				xmlhttp.send(null);
			}
			else{
				alert("Your browser does not support XMLHTTP");
			}


		}