function RenderContent(contentfile) {
  var pageDisplay = document.getElementById('PageContent');
  pageDisplay.innerHTML = '<img src="images/loading.gif">&nbsp;Loading';
  var content = 'site/'+contentfile
  var xmlhttp=false;
  /* running locally on IE5.5, IE6, IE7 */ 
  if(location.protocol=="file:"){
      if(!xmlhttp)try{ xmlhttp=new ActiveXObject("MSXML2.XMLHTTP"); }catch(e){xmlhttp=false;}
      if(!xmlhttp)try{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){xmlhttp=false;}
     }                    
  /* IE7, Firefox, Safari, Opera...  */
     if(!xmlhttp)try{ xmlhttp=new XMLHttpRequest(); }catch(e){xmlhttp=false;}
  /* IE6 */
  if(typeof ActiveXObject != "undefined"){
      if(!xmlhttp)try{ xmlhttp=new ActiveXObject("MSXML2.XMLHTTP"); }catch(e){xmlhttp=false;}
      if(!xmlhttp)try{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){xmlhttp=false;}
     }
  /* IceBrowser */
  if(!xmlhttp)try{ xmlhttp=createRequest(); }catch(e){xmlhttp=false;}

  if(!xmlhttp)return alert("Your browser doesn't support XMLHttpRequests.");
  xmlhttp.open("GET",content,true);
  xmlhttp.onreadystatechange=function(){
    if(xmlhttp.readyState!=4)return;
    if(!xmlhttp.status||xmlhttp.status==200)
    pageDisplay.innerHTML = xmlhttp.responseText;
  };//onreadystatechange
  xmlhttp.send(null);
}

