Possible Duplicate:
How do you dynamically load a javascript file? (Think C's #include)
Include JavaScript file inside JavaScript file?
I know that one can link to external javascript files with html code akin to:
<script type="text/javascript" src="http://external.com/code.js"></script>
Is there a way to do this within a javascript (.js) file?