<HTML> <HEAD> <TITLE>String Slicing and Dicing, Part II</TITLE> <SCRIPT LANGUAGE="JavaScript"> var mainString = "This is a test"
function showResults() { var form = document.forms[0] var param1 = parseInt(form.param1.options[form.param1.selectedIndex].value) var param2 = parseInt(form.param2.options[form.param2.selectedIndex].value)