JavaScript
// create new form section
createDiv("input_parent", "input_child");
// create form elements
Label("input_child", "curr_act_label", "curr_act_lvl", "Current Activity Level:");
selectInputElement("input_child", "curr_act_lvl");
selectOption("curr_act_lvl", "Please Select Your Current Activity Level...", "none");
selectOption("curr_act_lvl", "No Exercise or Desk Job", "1.25");
selectOption("curr_act_lvl", "Little Daily Activity or Light Exercise 1-3 Days Weekly", "1.35");
selectOption("curr_act_lvl", "Moderately Active Lifestyle or Moderate Exercise 3-5 Days Weekly", "1.55");
selectOption("curr_act_lvl", "Physically Demanding Lifestyle or Hard Exercise 6-7 Days Weekly", "1.75");
selectOption("curr_act_lvl", "Hardcore Lifestyle 24/7", "1.95");
Label("input_child", "curr_bodyfat_label", "curr_bodyfat_input", "Current Bodyfat:");
InputField("input_child", "curr_bodyfat_input", "text", 5, 3)
Label("input_child", "curr_weight_label", "curr_weight_input", "Current Weight:");
InputField("input_child", "curr_weight_input", "text", 5, 3)
Label("input_child", "meals_label", "meals_input", "Daily Meals:");
InputField("input_child", "meals_input", "text", 5, 1)
Label("input_child", "goal_bf_pct_label", "curr_weight_input", "Current Weight:");
InputField("input_child", "curr_weight_input", "text", 5, 3)
Label("input_child", "time_label", "time_input", "Weeks To Goal:");
InputField("input_child", "time_input", "text", 5, 2)
Label("input_child", "deficit_label", "deficit_select", "Decifict By:");
selectInputElement("input_child", "deficit_select");
selectOption("deficit_select", "Please Select a deficit Method:", "none");
selectOption("deficit_select", "Burn With Exercise", "burn");
selectOption("deficit_select", "Fasting/Calorie Restriction Without Exercise", "starve");
function createDiv(section_id, div_id) {
section = document.getElementById(section_id);
div = document.createElement("div");
div.setAttribute("id", div_id);
...