So I have an assignment that is due tonight, and I'm very lost. The more I read the book for reference, the more lost I seem to get. I'm just about ready to hand in what I have and hope for partial credit.

The assignment is to build a website for our college using HTML, which I have done. This was actually a previous assignment. The current assignment is, using JavaScript we need to add a feature that allows students to build their schedule online. So essentially a student needs to be able to input a CRN number and hit submit and all the course information is supposed to come to the screen.

I've created a constructor for the course with the parameters for title, crn, credits, class times, days, and the professor name. I've also created all the objects. My issue is I'm very bad with JavaScript (I have a little experience with VB and Java) and I don't know how to tie it into my html, or if the JavaScript is even correct. I'll paste what I have and hopefully someone can help me.

This is a VERY BIG part of my grade, so you will be doing me a huge favor!

Code:
window.onload = init;
function init() {
var button = document.getElementById("addButton");
button.onclick = handleButtonClick;
loadCourse();
}
function handleButtonClick() {

function Course(name, crn, credit, time, day, professor) {
this.name = name;
this.crn = crn;
this.credit = credit;
this.day = day;
this.time = time;
this.professor = professor;


this.anything = function() {
if (this.crn == 0001) {
alert(this.name + " " + this.crn + " " + this.credit);
} else {
alert(this.name + " says Yip!");
		}
						};
													
var $0001 = new Course("Intro to Comp", "0001", "4", "9am-11am", "M/W" "Chen, Ben");
var $0002 = new Course("Intro to Comp", "0002", "4", "9am-11am", "Tu/Th", "Chen, Ben");	

var $0003 = new Course("Spreadsheets", "0003", "4", "12pm-2pm", "M/W", "Chen, Ben");
var $0004 = new Course("Spreadsheets", "0004", "4", "12pm-2pm", "Tu/Th", "Chen, Ben");

var $0005 = new Course("Intro to IT", "0005", "4", "3pm-5pm", "M/W", "Chen, Ben");									
var $0006 = new Course("Intro to IT", "0006", "4", "3pm-5pm", "Tu/Th", "Chen, Ben");

var $0007 = new Course("Intro to Programming", "0007", "4", "6pm-8pm", "M/W", "Chen, Ben");
var $0008 = new Course("Intro to Programming", "0008", "4", "6pm-8pm", "Tu/Th", "Chen, Ben");

var $0009 = new Course("Computer Organization", "0009", "4", "9pm-11pm", "M/W", "Chen, Ben");
var $0010 = new Course("Computer Organization", "0010", "4", "9pm-11pm", "Tu/Th", "Chen, Ben");													

var $0011 = new Course("Windows", "0011", "4", "9am-11am", "M/W", "N/A");
var $0012 = new Course("Windows", "0012", "4", "9am-11am", "Tu/Th", "N/A");	

var $0013 = new Course("Linux/Unix", "0013", "4", "12p-2pm", "M/W", "N/A");	
var $0014 = new Course("Linus/Unix", "0014", "4", "12pm-2pm", "Tu/Th", "N/A");													

var $0015 = new Course("GUIs with VB", "0015", "4", "3pm-5pm", "M/W", "N/A");	
var $0016 = new Course("GUIs with VB", "0016", "4", "3pm-5pm", "Tu/Th", "N/A");	

var $0017 = new Course("Java", "0017", "4", "6pm-8pm", "M/W", "N/A");	
var $0018 = new Course("Java", "0018", "4", "6pm-8pm", "Tu/Th", "N/A");	

var $0019 = new Course("Web Design", "0019", "4", "9pm-11pm", "M/W", "N/A");	
var $0020 = new Course("Web Design", "0020", "4", "9pm-11pm", "Tu/Th", "N/A");	

											
													}
							}

var