CRM 2011 JS: Execute a Dialog using Jscript

//Code snippet

 

var dialogId = "a13ad982-d812-40a0-ab67-f314cdabbd2b";  // This must be your Dialog ID

var returnValue = showModalDialog("/" + Xrm.Page.context.getOrgUniqueName() +

"/cs/dialog/rundialog.aspx?DialogId=%7b" + dialogId +

"%7d&EntityName=account&ObjectId=" + Xrm.Page.data.entity.getId());