<script type="text/javascript"> function functionname(parameter-list) { statements } </script>