var d = document; //startup, called on page load function S() { //populate labels var l = d.getElementsByClassName("l"); for (var i=0;i