/*
    Version Control
    $URL: http://svn.quru/bonhams/Progress/Release/www/pubjs/pubConfirm.js $
    Last Changed: $Date: 2010-01-28 15:01:40 +0000 (Thu, 28 Jan 2010) $ $Rev: 2782 $ by $Author: toby $
*/
var answerFunction;

function myConfirm(text,button1,button2,answerFunc) 
{
    var mask = document.getElementById("backgroundMask");
    var box = document.getElementById("confirmBox");
    box.getElementsByTagName("p")[0].firstChild.nodeValue = text;
    var button = box.getElementsByTagName("input");
    button[0].value=button1;
    button[1].value=button2;
    answerFunction = answerFunc;
    mask.style.display='Inline';
    box.style.display='Inline';
}

function answer(response) 
{
    document.getElementById("confirmBox").style.display='none';
    document.getElementById("backgroundMask").style.display='none';
    
    answerFunction(response);
}

