html='';
http=false;
try { http=window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP") }
catch (e) { http=''; alert("Your browser does not support Ajax, sorry") }
function handlefact() {
if (http.readyState == 4){
  var ftxt=http.responseText;
  document.getElementById('fact').innerHTML=ftxt;
}
}
function showfact() {
http.open("GET", '/facts/showfact.php?t='+new Date().getTime());
http.onreadystatechange=handlefact;
http.send(null);
}
