If you want the javascript to be inline (not including an external file), it would look like this:
Code:
<script language="javascript" type="text/javascript">
// Your code
</script>
However, you should just include it in your header. It's the exact same thing as putting it inline.