﻿var printed = false;
function PrintPreview() 
{
    printed = true;
    window.print();
}    
    
function PromptSave() {

    Page_ClientValidate();
    if(Page_IsValid)
    {
        return confirm('Are you sure you want to save? Once saved, this page will be published to the live website!');
    }
    else
    {
        alert('Sorry, your information contains invalid data, please review and correct.');
        return false;
    }
}

function PromptPreview()
{
    if(Page_IsValid == false)
    {
        alert('Sorry, your information contains invalid data, please review and correct.');
        return false;
    }
}