function loadPageContent(contentpageName)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp = new XMLHttpRequest();
     
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
        document.getElementById("contentContainer").innerHTML = xmlhttp.responseText;
    }
  }

// makes the same page unike each time so it will not be cashed...
chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
randNum = "";
for (x = 0; x < 8; x++) {
    i = Math.floor(Math.random() * 62);
    randNum += chars.charAt(i);
}

contentpageName = contentpageName + '?id=' + randNum;


xmlhttp.open("GET", contentpageName, true);

// is not always reliable 
xmlhttp.send();
}


