I have created my own messagebox window which is working however this is how I currently use it:
var msgbox = new msgbox("Please confirm patients phone numbe