<body>
<script language="JavaScript">
     var cnt = parseInt(window.prompt("Start at?","1"));
     var max = parseInt(window.prompt("Stop at?","5"));
     while ( cnt <= max ){
         document.write(cnt+" play it again, Sam<br>");
         cnt = cnt+1;
         }
</script>
</body>