Examples of including a nice popup message box in applications

I would consider myself fairly new to Scriptcase (even after about a year) and new to JavaScript and HTML. I have created some nice Forms/Grids with Scriptcase for a couple of applications I am developing, but would like to incorporate popup dialogs for the user. Some would be messages only and some others would prompt the user to make a selection between a couple of options.

Some of the examples I have seen on the net place all of the code in the header that defines a popup, but if you have a Control or Form or Blank application in Scriptcase the placement will be different.

I haven’t seen a sample that uses these popups. Does anyone know of a good example or rule of thumb as to where to place the initialization code for popups or dialogs in Scriptcase applications? In one case I saw a JBox library. I have seen Scriptcase talk about Bootstrap too in a blog.

May I have someone’s assistance please? Thank you!