Rationalize jQuery dialog usage

1. Use JSON to call help_text.php.
2. New function(displayDialog() to create and display a modal dialog and
modify modalDialog(), helpDialog() & modalNotes to call it (provides
consistent functioning)
3. New function modalConfirm replaces native confirm dialog
usage: modalConfirm(title,text).then(function (reply) {...};