can this script be made simpler? I\'m just learning about javascript, so I don\'t really know which syntax to use.
My HTML I have several id consisti