﻿var _source;

function showConfirm(source, title, content)
{
    this._source = source;
    
    if(title)
    {
        var spanTitle = $get('spanTitle');
        spanTitle.innerHTML = title;
    }
    
    if(content)
    {
        var divContent = $get('divContent');
        divContent.innerHTML = content;
    }
    
    showConfirmFloat();
}         

function submitConfirm()
{
    hideConfirmFloat();
    var name = this._source.id.replace(/_/g,"$");
    __doPostBack(name, '');                       
}

function cancelConfirm()
{
    hideConfirmFloat();
    this._source = null;
}

function showConfirmFloat()
{
    showFloat("DivInteractionCoverConfirm","DivInteractionFloatConfirm");
}

function hideConfirmFloat()
{
    hideFloat("DivInteractionCoverConfirm","DivInteractionFloatConfirm");
}