﻿    function LoadContent(element, siteKey, pageKey, contentKey)
    {
        var xmlhttp;
        if (window.XMLHttpRequest)
        {
            xmlhttp=new XMLHttpRequest();
        }
        else if (window.ActiveXObject)
        {
            xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
        else
        {
            alert("Your browser does not support XMLHTTP!");
        }
        xmlhttp.onreadystatechange=function()
        {
           if(xmlhttp.readyState==4)
            {
                element.innerHTML=xmlhttp.responseText;
            }
        }
        xmlhttp.open("GET","/GetPageContent.aspx?siteKey=" + siteKey + "&pageKey=" + pageKey + "&contentKey=" + contentKey ,true);
        xmlhttp.send(null);
    }
