Hello, how are you?

I am having a little issue, well may a major issue. Lol....

I am designing a WordPress Custom Home Page, and I have an External Javascript file, ' function.js ' to be exact.

Anyways, here is the code:

Code:
// remap jQuery to $
(function($){})(window.jQuery);


// your functions go here
	

});


/* optional triggers

$(window).load(function() {
	
});

$(window).resize(function() {
	
});

*/
I am interested in knowing how to call a function from this file. Can someone please help me?

Also, is there a way I can call this function as well:

Code:
<p id="date">
                	<script language="javascript">
					
                	// Today's Date function
						var now=new Date();
						var days=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
						var months=new Array('January','February','March','April','May','June','July','August','September','October','November','December');
						var date=((now.getDate()<10)? "0" : "")+ now.getDate();
		
						function fourdigits(number){
		
						return(number<1000)? number+ 1900:number;
			
				}
			
						today= days[now.getDay()] + " , "  + months[now.getMonth()] + "  "  + date + " , " +  (fourdigits(now.getYear()));
						
						document.write(today);
						
					</script>	
				</p>
Thank you....