The name data that is entered gets populated/formatted into the name text filed as Last Name, First Name MI.
I've attached a document showing what I describe, but I'm not sure whether or not the images will be viewable, so that is why I've tried describing the feature as best as I can.
As far as what I've seen in JS tutorials, the onclick is only used for buttons. Can it work for empty text fields on a jsp as well? I tried placing the onclick="show_popup()" within a <input > element, which would be the textbox, but clicking on the text box did not result in the window coming up.