Jump to content

HELP


cb23th

Recommended Posts

I am having trouble with my code, for some reason the functions in the "reservation_schedule.js" file aren't being executed when called, but all other function in other js files are working fine. Here is the portion of the code where link the file and the section where I call the functions. Plus at the bottom are the functions themselves from the reservation_schedule.js file. Can someone help me out and tell me what I am doing wrong because I have looked at this too many times and just can't seem to figure it out?

 

 

<head>

<meta http-equiv="Content-Language" content="en-us">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Computer Services & Telecommunications - The Computer Labs</title>

<link type="text/css" rel="stylesheet" href="style/global.css"/>

<script language="JavaScript" src="includes/hide.js"></script>

<script language="JavaScript" src="includes/day_schedule_new.js"></script>

<script language="JavaScript" src="includes/reservation_schedule.js"></script>

</head>

 

 

<table bgcolor="#DDDDDD" width="80%"><tr><td width="100%">

<h5>Announcements for Today, <script type="text/JavaScript">pasteCurrentDate()</script></h5>

<h5 align="center">Over the winter break, we installed brand new computers in the Classroom Lab, CL1-101.</h5>

<h3 align="center">Come check us out!</h3><table><tr><td width="90%">

<script type="text/JavaScript">pasteRegistration()</script></td></tr></table></td>

</tr><tr><td><h5 align="center"><i>For more UCF news and events click

<ahref="http://www.ucf.edu">here</a></i></h5></td></tr></table>

 

 

 

 

function pasteRegistration(){

 

var weekday=new Array(13)

for (i=0; i <31; i++)

weekday=new Array(31)

 

weekday[0][1]=""

weekday[0][2]=""

weekday[0][3]=""

weekday[0][4]=""

weekday[0][5]=""

weekday[0][6]=""

weekday[0][7]=""

weekday[0][8]=""

weekday[0][9]=""

weekday[0][10]=""

weekday[0][11]=""

weekday[0][12]=""

weekday[0][13]=""

weekday[0][14]="The Business lab will be closed from 6:00pm - 8:00pm for a class."

weekday[0][15]=""

weekday[0][16]=""

weekday[0][17]=""

weekday[0][18]=""

weekday[0][19]="The Classroom lab will be closed from 10:00am - 3:00pm for a class."

weekday[0][20]=""

weekday[0][21]="MLK Day.<br>All labs are Closed. Holiday<br> Classes resume Jan 22nd"

weekday[0][22]="The Classroom lab will be closed from 1:30pm - 3:30pm for a class."

weekday[0][23]="The Classroom lab will be closed from 1:30pm - 3:30pm for a class."

weekday[0][24]="The Classroom lab will be closed from 1:30pm - 3:30pm for a class."

weekday[0][25]=""

weekday[0][26]=""

weekday[0][27]=""

weekday[0][28]="The East lab will be closed from 8:00am - 8:30pm for a class."

weekday[0][29]=""

weekday[0][30]=""

weekday[0][31]=""

 

weekday[1][1]=""

weekday[1][2]=""

weekday[1][3]=""

weekday[1][4]=""

weekday[1][5]=""

weekday[1][6]=""

weekday[1][7]=""

weekday[1][8]=""

weekday[1][9]=""

weekday[1][10]=""

weekday[1][11]=""

weekday[1][12]=""

weekday[1][13]=""

weekday[1][14]=""

weekday[1][15]=""

weekday[1][16]=""

weekday[1][17]=""

weekday[1][18]=""

weekday[1][19]=""

weekday[1][20]=""

weekday[1][21]=""

weekday[1][22]=""

weekday[1][23]=""

weekday[1][24]=""

weekday[1][25]=""

weekday[1][26]="The Business lab will be closed from 9:00am - 10:30am and from 6:00pm - 9:00pm for classes."

weekday[1][27]=""

weekday[1][28]="The Business lab will be closed from 9:00am - 10:30am for a class."

weekday[1][29]=""

weekday[1][30]=""

weekday[1][31]=""

 

weekday[2][1]=""

weekday[2][2]=""

weekday[2][3]=""

weekday[2][4]=""

weekday[2][5]=""

weekday[2][6]=""

weekday[2][7]=""

weekday[2][8]="The Classroom lab will be closed from 12:00pm - 8:00pm for a function."

weekday[2][9]=""

weekday[2][10]="The East lab will be closed from 8:00am - 5:00pm for a class."

weekday[2][11]="The East lab will be closed from 8:00am - 5:00pm for a class."

weekday[2][12]="The East lab will be closed from 8:00am - 5:00pm for a class."

weekday[2][13]="The East lab will be closed from 8:00am - 5:00pm for a class." 

weekday[2][14]="The East lab will be closed from 8:00am - 5:00pm for a class."

weekday[2][15]=""

weekday[2][16]=""

weekday[2][17]=""

weekday[2][18]=""

weekday[2][19]=""

weekday[2][20]=""

weekday[2][21]=""

weekday[2][22]=""

weekday[2][23]=""

weekday[2][24]=""

weekday[2][25]="The Business lab will be closed from 7:30pm - 9:00pm for a class."

weekday[2][26]=""

weekday[2][27]="The Business lab will be closed from 9:00am - 10:30am for a class."

weekday[2][28]="The Business, East Lab, and Classroom Lab will be closed for registration from noon until 5pm."

weekday[2][29]=""

weekday[2][30]=""

weekday[2][31]=""

 

weekday[3][1]="The Business lab will be closed from 7:30pm - 9:00pm for a class."

weekday[3][2]=""

weekday[3][3]="The Business lab will be closed from 9:00am - 10:30am for a class."

weekday[3][4]=""

weekday[3][5]=""

weekday[3][6]=""

weekday[3][7]=""

weekday[3][8]="The Business lab will be closed from 7:30pm - 9:00pm for a class."

weekday[3][9]=""

weekday[3][10]="The Business lab will be closed from 9:00am - 10:30am for a class."

weekday[3][11]=""

weekday[3][12]=""

weekday[3][13]=""

weekday[3][14]=""

weekday[3][15]=""

weekday[3][16]=""

weekday[3][17]=""

weekday[3][18]=""

weekday[3][19]=""

weekday[3][20]=""

weekday[3][21]=""

weekday[3][22]=""

weekday[3][23]=""

weekday[3][24]=""

weekday[3][25]=""

weekday[3][26]=""

weekday[3][27]=""

weekday[3][28]=""

weekday[3][29]=""

weekday[3][30]="The East and West lab will be closed from 5:00pm - midnight for a function."

weekday[3][31]=""

 

weekday[4][1]=""

weekday[4][2]=""

weekday[4][3]=""

weekday[4][4]=""

weekday[4][5]=""

weekday[4][6]=""

weekday[4][7]=""

weekday[4][8]=""

weekday[4][9]="The Business, East Lab, and Classroom Lab will be closed for registration from noon until 5pm."

weekday[4][10]=""

weekday[4][11]=""

weekday[4][12]=""

weekday[4][13]=""

weekday[4][14]=""

weekday[4][15]="The Business, East Lab, and Classroom Lab will be closed for registration from noon until 5pm."

weekday[4][16]=""

weekday[4][17]="The Classroom lab will be closed from 9:30am - 3:00pm for a class."

weekday[4][18]=""

weekday[4][19]=""

weekday[4][20]="The Business, East Lab, and Classroom Lab will be closed for registration from noon until 5pm."

weekday[4][21]=""

weekday[4][22]=""

weekday[4][23]="The Business, East Lab, and Classroom Lab will be closed for registration from noon until 5pm."

weekday[4][24]=""

weekday[4][25]=""

weekday[4][26]="Memorial Day.<br>All labs are Closed. Holiday<br> Classes resume May 27th""

weekday[4][27]=""

weekday[4][28]=""

weekday[4][29]="The Business, East Lab, and Classroom Lab will be closed for registration from noon until 5pm."

weekday[4][30]="The Business, East Lab, and Classroom Lab will be closed for registration from noon until 5pm."

weekday[4][31]=""

 

weekday[5][1]="Nothing, have a good day!"

weekday[5][2]="Nothing, have a good day!"

weekday[5][3]="Nothing, have a good day!"

weekday[5][4]="Nothing, have a good day!"

weekday[5][5]="Nothing, have a good day!"

weekday[5][6]="Nothing, have a good day!"

weekday[5][7]="Nothing, have a good day!"

weekday[5][8]="Nothing, have a good day!"

weekday[5][9]="Nothing, have a good day!"

weekday[5][10]="Nothing, have a good day!"

weekday[5][11]="Nothing, have a good day!"

weekday[5][12]="Nothing, have a good day!"

weekday[5][13]="Nothing, have a good day!"

weekday[5][14]="Nothing, have a good day!"

weekday[5][15]="Nothing, have a good day!"

weekday[5][16]="Nothing, have a good day!"

weekday[5][17]="Nothing, have a good day!"

weekday[5][18]="Nothing, have a good day!"

weekday[5][19]="Nothing, have a good day!"

weekday[5][20]="Nothing, have a good day!"

weekday[5][21]="Nothing, have a good day!"

weekday[5][22]="Nothing, have a good day!"

weekday[5][24]="Nothing, have a good day!"

weekday[5][23]="Nothing, have a good day!"

weekday[5][25]="Nothing, have a good day!"

weekday[5][26]="Nothing, have a good day!"

weekday[5][27]="Nothing, have a good day!"

weekday[5][28]="Nothing, have a good day!"

weekday[5][29]="Nothing, have a good day!"

weekday[5][30]="Nothing, have a good day!"

weekday[5][31]="Nothing, have a good day!"

 

weekday[6][1]="Nothing, have a good day!"

weekday[6][2]="Nothing, have a good day!"

weekday[6][3]="Nothing, have a good day!"

weekday[6][4]="Nothing, have a good day!"

weekday[6][5]="Nothing, have a good day!"

weekday[6][6]="Nothing, have a good day!"

weekday[6][7]="Nothing, have a good day!"

weekday[6][8]="Nothing, have a good day!"

weekday[6][9]="The Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[6][10]="The Business, East Lab, and Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[6][11]="The Classroom Lab will be closed for a reservation from noon until 4pm."

weekday[6][12]="The Classroom Lab will be closed for an orientation from 1pm until 3pm."

weekday[6][13]="The Business, East Lab, and Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[6][14]="Nothing, have a good day!"

weekday[6][15]="Nothing, have a good day!"

weekday[6][16]="Nothing, have a good day!"

weekday[6][17]="The Classroom Lab will be closed for a reservation from noon until 2pm."

weekday[6][18]="The Business, East Lab, and Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[6][19]="The Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[6][20]="The Business, East Lab, and Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[6][21]="Nothing, have a good day!"

weekday[6][22]="Nothing, have a good day!"

weekday[6][23]="The Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[6][24]="The Business, East Lab, and Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[6][25]="The Business, East Lab, and Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[6][26]="The Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[6][27]="The Business, East Lab, West Lab and Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[6][28]="Nothing, have a good day!"

weekday[6][29]="Nothing, have a good day!"

weekday[6][30]="Nothing, have a good day!"

weekday[6][31]="Nothing, have a good day!"

 

weekday[7][1]="Nothing, have a good day!"

weekday[7][2]="Nothing, have a good day!"

weekday[7][3]="Nothing, have a good day!"

weekday[7][4]="Nothing, have a good day!"

weekday[7][5]="Nothing, have a good day!"

weekday[7][6]="Nothing, have a good day!"

weekday[7][7]="Nothing, have a good day!"

weekday[7][8]="Nothing, have a good day!"

weekday[7][9]="Nothing, have a good day!"

weekday[7][10]="Nothing, have a good day!"

weekday[7][11]="Nothing, have a good day!"

weekday[7][12]="Nothing, have a good day!"

weekday[7][13]="Nothing, have a good day!"

weekday[7][14]="The Business, East Lab, and Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[7][15]="The Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[7][16]="The Business, East Lab, West Lab and Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[7][17]="The Business, East Lab, and Classroom Lab will be closed for an orientation from noon until 5pm."

weekday[7][18]="The West Lab is closed for a programming compeitition."

weekday[7][19]="Nothing, have a good day!"

weekday[7][20]="Nothing, have a good day!"

weekday[7][21]="Nothing, have a good day!"

weekday[7][22]="Nothing, have a good day!"

weekday[7][23]="Nothing, have a good day!"

weekday[7][24]="Nothing, have a good day!"

weekday[7][25]="The West Lab has been reserved for a programming compeitition.<br>The Classroom Lab has being reserved for a professor."

weekday[7][26]="Nothing, have a good day!"

weekday[7][27]="Nothing, have a good day!"

weekday[7][28]="The Classroom Lab has been reserved for a professor from 2:31-3:31."

weekday[7][29]="Nothing, have a good day!"

weekday[7][30]="Nothing, have a good day!"

weekday[7][31]="Nothing, have a good day!"

 

weekday[8][1]="Nothing, have a good day!"

weekday[8][2]="Nothing, have a good day!"

weekday[8][3]="Nothing, have a good day!"

weekday[8][4]="Nothing, have a good day!"

weekday[8][5]="Nothing, have a good day!"

weekday[8][6]="Nothing, have a good day!"

weekday[8][7]="Nothing, have a good day!"

weekday[8][8]="Nothing, have a good day!"

weekday[8][9]="Nothing, have a good day!"

weekday[8][10]="Nothing, have a good day!"

weekday[8][11]="Nothing, have a good day!"

weekday[8][12]="Nothing, have a good day!"

weekday[8][13]="Nothing, have a good day!"

weekday[8][14]="Nothing, have a good day!"

weekday[8][15]="Nothing, have a good day!"

weekday[8][16]="Nothing, have a good day!"

weekday[8][17]="Nothing, have a good day!"

weekday[8][18]="Nothing, have a good day!"

weekday[8][19]="Nothing, have a good day!"

weekday[8][20]="Nothing, have a good day!"

weekday[8][21]="Nothing, have a good day!"

weekday[8][22]="All labs will be closed due to UCF gameday events, GO UCF!"

weekday[8][23]="Nothing, have a good day!"

weekday[8][24]="Nothing, have a good day!"

weekday[8][25]="Nothing, have a good day!"

weekday[8][26]="Nothing, have a good day!"

weekday[8][27]="Nothing, have a good day!"

weekday[8][28]="Nothing, have a good day!"

weekday[8][29]="All labs will be closed due to UCF gameday events, GO UCF!"

weekday[8][30]="Nothing, have a good day!"

weekday[8][31]="Nothing, have a good day!"

 

weekday[9][1]="Nothing, have a good day!"

weekday[9][2]="Nothing, have a good day!"

weekday[9][3]="Nothing, have a good day!"

weekday[9][4]="Nothing, have a good day!"

weekday[9][5]="Nothing, have a good day!"

weekday[9][6]="Nothing, have a good day!"

weekday[9][7]="Nothing, have a good day!"

weekday[9][8]="Nothing, have a good day!"

weekday[9][9]="The Business lab will be closed from 4:30pm - 7:30pm for a class."

weekday[9][10]="Nothing, have a good day!"

weekday[9][11]="The Business lab will be closed from 4:30pm - 6pm for a class."

weekday[9][12]="Nothing, have a good day!"

weekday[9][13]="Nothing, have a good day!"

weekday[9][14]="Nothing, have a good day!"

weekday[9][15]="Nothing, have a good day!"

weekday[9][16]="Nothing, have a good day!"

weekday[9][17]="Nothing, have a good day!"

weekday[9][18]="Nothing, have a good day!"

weekday[9][19]="Nothing, have a good day!"

weekday[9][20]="All labs will be closed due to UCF gameday events, GO UCF!"

weekday[9][21]="Nothing, have a good day!"

weekday[9][22]="Nothing, have a good day!"

weekday[9][23]="Nothing, have a good day!"

weekday[9][24]="Nothing, have a good day!"

weekday[9][25]="Nothing, have a good day!"

weekday[9][26]="Nothing, have a good day!"

weekday[9][27]="Nothing, have a good day!"

weekday[9][28]="Nothing, have a good day!"

weekday[9][29]="Nothing, have a good day!"

weekday[9][30]="The Business lab will be closed from 7:30pm - 9pm for a class."

weekday[9][31]="Nothing, have a good day!"

 

weekday[10][1]="The Business lab will be closed from 4:30pm - 6pm for a class."

weekday[10][2]="Nothing, have a good day!"

weekday[10][3]="All labs will be closed due to UCF gameday events, GO UCF!"

weekday[10][4]="Nothing, have a good day!"

weekday[10][5]="Nothing, have a good day!"

weekday[10][6]="The Business lab will be closed from 7:30pm - 9pm for a class."

weekday[10][7]="Nothing, have a good day!"

weekday[10][8]="The Business lab will be closed from 4:30pm - 6pm for a class."

weekday[10][9]="The Business lab will be closed at noon for an orientation."

weekday[10][10]="Nothing, have a good day!"

weekday[10][11]="Nothing, have a good day!"

weekday[10][12]="Nothing, have a good day!"

weekday[10][13]="The Business lab will be closed from 7:30pm - 9pm for a class."

weekday[10][14]="Nothing, have a good day!"

weekday[10][15]="Nothing, have a good day!"

weekday[10][16]="Nothing, have a good day!"

weekday[10][17]="Nothing, have a good day!"

weekday[10][18]="Nothing, have a good day!"

weekday[10][19]="Nothing, have a good day!"

weekday[10][20]="Nothing, have a good day!"

weekday[10][21]="Nothing, have a good day!"

weekday[10][22]="Nothing, have a good day!"

weekday[10][23]="Nothing, have a good day!"

weekday[10][24]="All labs will be closed due to UCF gameday events, GO UCF!"

weekday[10][25]="Nothing, have a good day!"

weekday[10][26]="Nothing, have a good day!"

weekday[10][27]="Nothing, have a good day!"

weekday[10][28]="Nothing, have a good day!"

weekday[10][29]="Nothing, have a good day!"

weekday[10][30]="Nothing, have a good day!"

weekday[10][31]="Nothing, have a good day!"

 

weekday[11][1]="Nothing, have a good day!"

weekday[11][2]="Nothing, have a good day!"

weekday[11][3]="Nothing, have a good day!"

weekday[11][4]="Nothing, have a good day!"

weekday[11][5]="Nothing, have a good day!"

weekday[11][6]="Nothing, have a good day!"

weekday[11][7]="Nothing, have a good day!"

weekday[11][8]="Nothing, have a good day!"

weekday[11][9]="Nothing, have a good day!"

weekday[11][10]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][11]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][12]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][13]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][14]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][15]="Winter Break.<br>West Lab is open 8am - 5pm Monday through Friday. <br> Classes resume Jan 7th."

weekday[11][16]="Winter Break.<br>West Lab is open 8am - 5pm Monday through Friday. <br> Classes resume Jan 7th."

weekday[11][17]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][18]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][19]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][20]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][21]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][22]="Winter Break.<br>West Lab is open 8am - 5pm Monday through Friday. <br> Classes resume Jan 7th."

weekday[11][23]="Winter Break.<br>West Lab is open 8am - 5pm Monday through Friday. <br> Classes resume Jan 7th."

weekday[11][24]="Winter Break.<br> Merry Christmas Eve"

weekday[11][25]="Winter Break.<br> Merry Christmas!"

weekday[11][26]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][27]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][28]="Winter Break.<br>West Lab is open 8am - 5pm.<br> Classes resume Jan 7th."

weekday[11][29]="Winter Break.<br>West Lab is open 8am - 5pm Monday through Friday. <br> Classes resume Jan 7th." 

weekday[11][30]="Winter Break.<br>West Lab is open 8am - 5pm Monday through Friday. <br> Classes resume Jan 7th."

weekday[11][31]="Winter Break.<br>West Lab is Closed. Holiday<br> Classes resume Jan 7th."

 

 

document.write(""+weekday[(new Date()).getMonth()][(new Date()).getDate()])

               

      }

 

function pasteCurrentDate(){

var month=new Array(12)

var weekday=new Array(7)

month[0]="January"

month[1]="February"

month[2]="March"

month[3]="April"

month[4]="May"

month[5]="June"

month[6]="July"

month[7]="August"

month[8]="September"

month[9]="October"

month[10]="November"

month[11]="December"

 

weekday[0]="Sunday"

weekday[1]="Monday"

weekday[2]="Tuesday"

weekday[3]="Wednesday"

weekday[4]="Thursday"

weekday[5]="Friday"

weekday[6]="Saturday"

 

document.write(""+weekday[(new Date()).getDay()]+", "+month[(new Date()).getMonth()]+" "+ (new Date()).getDate()+" "+ (new Date()).getFullYear())

}

 

 

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.