﻿



function ConversationDialog(url,onclose)
{
    var self = this;
    
    self.dialog = new CustomDialog();
    self.dialog.DialogUrl = url;
    self.dialog.DialogID = "ConversationDialogWindow";
    self.dialog.Width = 600;
    self.dialog.Height = 500;
    self.dialog.Resizeable = false;


    self.dialog.ShowDialog();

  //  $(".ScrollDown").scrollTo("max");

    if (typeof (onclose) != 'undefined') {
       
        self.dialog.DialogDiv.bind('dialogbeforeclose', onclose);
        self.dialog.DialogDiv.bind('dialogbeforeclose', onclose);
    }
    


}
