
function loadInterstitialWindow(data,viewId,width,closeButtonLabel){var showInterstitial=true;if(showInterstitial){var webServiceUrl="/EasySiteWeb/WebService/DataStoreRecordRender.asmx/RenderRecord?data="+encodeURIComponent(data);$.ajax({type:"GET",url:webServiceUrl,dataType:"xml",success:function(responseXml){onResponseSuccess({responseXml:responseXml,viewId:viewId,width:width,closeButtonLabel:closeButtonLabel});}});}}
function onResponseSuccess(config){var html=$(config.responseXml).find("string").text();if(html.length==0)
html=config.responseXml;if(html.length>0){var openingHtml="<div class=\"page-interstitial-outer view-"+config.viewId+"-interstitial\">"
+"  <div class=\"page-interstitial-inner\">"
+"     <div class=\"body-outer\">"
+"        <div class=\"body-inner clear\">";var closingButtonHtml="<div class=\"oInterstitialButtonContainer\">"
+"              <button onclick=\"closeInterstitial();\" class=\"oDataFormButton\">"
+config.closeButtonLabel
+"              </button>"
+"           </div>";var closingHtml="        </div>"
+"     </div>"
+"   </div>"
+"</div>";html=openingHtml+html
if(config.closeButtonLabel!=""){html=html+closingButtonHtml;}
html=html+closingHtml;var left=(100/2)-(config.width/2);$.blockUI({message:html,css:{top:"20%",left:left+"%",width:config.width+"%",textAlign:"left",cursor:"default",border:"0"},overlayCSS:{cursor:"default"}});}}
function closeInterstitial(){$.unblockUI();}