// FUNCTION chgPW - change user's HTTP password function chgPW() { // if ( confirm( "Change Password:\n\nThis will allow you to change your password used to access Web applications on this server. You will be required to log in again to verify your identity before changing your password.\n\nDo you wish to continue?" ) ) { if ( !accept() ) { alert( "Sorry, but your browser must accept cookies in order for you to change your password from a browser." ) } else { // create a temporary cookie before forcing the user to login. When the Homepage is reloaded, it will see this // cookie and then load the Change Password page to allow the user to change his/her HTTP password // create or find a cookie used to tell the Homepage to load the Change Password page // var chgPWCookie = new Cookie("NCCSC_ChgPW"); // set cookie properties - temp cookie expires in 5 minutes //chgPWCookie.set( "domain=/" + this.location.host ,"value=status->true","expire=/+5M" ); // force the user to log into the server //var newURL = "/" + DBName + "?login"; var newURL = "/NccsWeb/NCWebForms.nsf/UpdHTTPPW/" ; this.location.replace( newURL ); } // } else { // this.location.replace( this.location.protocol + "//" + this.location.host ) // } }