function cFact() { return confirm("Do you really want to restore factory settings?\nAll current settings will be lost.") } ...