use document location instead of applet location because of Java update 7_25
add an error msg for resolveFilename
update deprecated function call
rename some variables to reflect new contents
remove unused flag
allow resolveFilename to report its own error
update some comments and javadoc