//First find all of the required elements indicated by the red *
$(
"span[class=redEmphasis]").each( function() { //Then get ahold of the next object (td) and find all the input //fields therein (only for radio buttons, checkboxes and/or //single text fields) and add class$(
this).parent("td").next().find("input").each( function() {$(
this).addClass("required");}
);
//Then loop again and find any select objects within the sister //td and add class$(
this).parent("td").next().find("select").each( function() {$(
this).addClass("required");}
);