preliminary javascript logic in place and functional for Hidro page. Considering using Jquery instead...