Removed lame code %pughelper.formLoaded

was using a variable to determine if a dialog was open or not, can use
the $dialog(dialogname) identifier to find if a window is open or not