function calcDrill(){var stroke=document.getElementById("stroke").value;var area=document.getElementById("area").value;var drills={"freestyle":{"catch":"Catch-up drill","body":"Fingertip drag scull","breath":"3-stroke breathe pattern","turn":"10m underwater dolphin","kick":"Board kick with ankle flexibility"},"backstroke":{"catch":"Single-arm backstroke with pause","body":"Flotation + single kick","breath":"5-3-5 breathing pattern","turn":"Backstroke-to-front-flip","kick":"Wide flutter board kick"},"breaststroke":{"catch":"Breaststroke pullout with 3s glide","body":"Progressive stroke with pause","breath":"3-pull-1-breathe","turn":"Whip turn","kick":"Board whip kick"},"butterfly":{"catch":"2-kick-1-pull drill","body":"Dolphin kick on back","breath":"Mouth-only breathing","turn":"Open turn","kick":"6-6-6 drill"}};var d=(drills[stroke]||drills["freestyle"])[area]||drills["freestyle"][area];document.getElementById("r1").textContent=d;document.getElementById("r2").textContent="8x25m";document.getElementById("desc").innerHTML=""+stroke+" — "+area+"
Drill: "+d+"
Prescription: 8x25m @ :45 or 6x50m @ 1:00 — slow and controlled
Drill tip: if the drill is easier than your normal stroke, you are doing it right.";document.getElementById("results").style.display="block";}