function ConfirmDialog(Message, Title, YesClickFunction, NoClickFunction, hideCancel, level)
{
    var args = 'message='+ Message + '&title='+ Title;
    if(hideCancel != null)
    {
		args += '&hideCancel=' + hideCancel;
	}
    var sFeatures = "height=50,width=450,left=250,top=250,status=no,toolbar=no,menubar=no,location=no";
    var URL = "";
    if (level == 0)
    {
		URL = 'Presentation/ConfirmDialog.aspx?';
    }
    else
    {
		URL = 'ConfirmDialog.aspx?';
    }
	var win = window.open(URL + args, null, sFeatures);
    
	this.YesClickFunction = YesClickFunction;
	this.NoClickFunction = NoClickFunction;
};

ConfirmDialog.prototype = new Object();

ConfirmDialog.prototype.YesClick = function()
{
	eval(this.YesClickFunction + '();');
};

ConfirmDialog.prototype.NoClick = function()
{
	eval(this.NoClickFunction + '();');
};