﻿function OpenHtmlPreview() {
    var URL = GetCRMServerUrl() + "WebResources/iotap_/Addons/ReportScheduler/HtmlPreview.htm";
    //window.open(URL, null, "dialogWidth:800px;dialogHeight:600px;center :yes on 1;scrollbars=yes");    
    window.open(URL, null, "scrollbars = 1, resizable=1, width = 800, height = 600"); 
}

function GetCRMServerUrl() {
    return Xrm.Page.context.getClientUrl();
}
