orig_pass = prompt("Please enter password","");
To remove the password prompt, just replace the above line with whichever fixed value you want.
orig_pass = "XYZ";
This code is not very good, the variables aren't properly declared and they're using outdated attributes. If you're intending to hide your source code from people, I will have to warn you that it is impossible. If the browser is able to read the source code then so can anybody.