	
		var emailship="";
		var emaillink="";
		function getXMLHTTPRequest() {
		try{
		req = new XMLHttpRequest();
		} catch(err1) {
		try {
		req=new ActiveXobject("Msxml2.XMLHTTP");
		} catch (err2) {
		try {
		req=new ActiveXObject("Microsoft.XMLHTTP");
		} catch (err3) {
		req = false;
		}
		}
		}
		return req;
		}
		
		var http = getXMLHTTPRequest();
		
		function useHttpResponse() {
			if (http.readyState==4) {
				if (http.status == 200) {
					var mytext = http.responseText;
					document.getElementById('calendar').innerHTML=mytext;
				}
			} else {document.getElementById('calendar').innerHTML="";}
		}
		
		
		function useHttpResponse2() {
			if (http.readyState==4) {
				if (http.status == 200) {
					var mytext = http.responseText;
					document.getElementById('blogs').innerHTML=mytext;
				}
			} else {document.getElementById('blogs').innerHTML="";}
		}		
		// - End of JavaScript - -->
		
		
		function showmonth(prm, chm){
		var myurl = "http://www.allaboutlaw.co.uk/index.php/diary/calendar/";
		myRand = parseInt(Math.random()*999999999999999);
		var modurl = myurl+"?prm="+prm+"&chm="+chm;
		http.open("GET", modurl, true);
		http.onreadystatechange = useHttpResponse;
		http.send(null);
		}
		
		function showcal(prm, chm){
		var myurl = "http://www.allaboutlaw.co.uk/index.php/diary/calendar/";
		myRand = parseInt(Math.random()*999999999999999);
		var modurl = myurl+"?prm="+prm+"&chm="+chm;
		http.open("GET", modurl, true);
		http.onreadystatechange = useHttpResponse;
		http.send(null);
		}
		
		function showdate(dates){
		var myurl = "blog.php";
		myRand = parseInt(Math.random()*999999999999999);
		var modurl = myurl+"?dates="+dates;
		http.open("GET", modurl, true);
		http.onreadystatechange = useHttpResponse2;
		http.send(null);
		}		
