var months = new makeArray('January','February','March','April','May',
'June','July','August','September','October','November','December');
var date = new Date();
var month = date.getMonth() + 1;
var year = date.getFullYear();
var linebreak = "<br /><br />"

function makeArray() 
{
for (i = 0; i<makeArray.arguments.length; i++)
this[i + 1] = makeArray.arguments[i];
}

function setDate(a)
{
 document.getElementById(a).value = months[month]+" "+year;
}

function update(a)
{
var y=document.getElementById(a).value;
document.getElementById(a).value=months[month]+" "+year;
}

function nextMonth()
{
month++;
if(month>12)
{
year++
month=month-12;
}
cal.location.href="calendar/"+year+"m"+month+".htm";
}

function prevMonth()
{
month=month-1;
if(month<1)
{
year=year-1;
month=month+12;
}
cal.location.href="calendar/"+year+"m"+month+".htm";
}

function displayCalendar()
{
	document.write("<iframe src='calendar/monthhd.htm' height='20' width='500' frameborder='0' scrolling='no'></iframe><iframe src='calendar/"+year+"m"+month+".htm' name='cal' height='550' width='500' frameborder='0' scrolling='no'></iframe>");
}

function displayTopMenu()
{

	document.write("<div id='header' align='center'></div><div id='topMenu' align='right'><div id='topLink'>");
	document.write("<a href='../asg/index.html' title='ASG'>ASG</a>");
	document.write("<a href='html/clubs/clubintro.html' title='Clubs' >Clubs</a>");
	document.write("</div></div>");
}

function displayMainMenu()
{
	document.write("<div align='right' style='width:189px; height:8px;'><img src='images/mnu_topshadow.gif' width='189' height='8' /></div><div id='sideLink' align='center'>");
	document.write("<a href='index.html' title='Home'>Home</a>");
	document.write("<a href='html/bus_passes.html' title='Sprinter/Breeze Passes'>Sprinter/Breeze Passes</a>");
	document.write("<a href='html/calendar.html' title='Calendar'>Calendar</a>");
	document.write("<a href='html/commencement.html' title='Commencement'>Commencement</a>");
	document.write("<a href='html/forms.html' title='Forms'>Forms</a>");
	document.write("<a href='html/gene_jackson_loan.html' title='Gene Jackson Loan'>Gene Jackson Loans</a>");
	document.write("<a href='html/housing.html' title='Houseing'>Housing</a>");
	document.write("<a href='html/icc.html' title='ICC'>ICC</a>");
	document.write("<a href='html/id_card.html' title='ID Card'>ID Card</a>");
	document.write("<a href='html/job_board.html' title='Job Board'>Job Board</a>");
	document.write("<a href='html/mission_2B_clean_&_Green.html' title='Mission 2B Clean & Green'>Mission 2B Clean & Green</a>");
	document.write("<a href='html/mission_2B_clean_&_Greenpoints.html' title='Mission 2B Clean & Green Points'>Mission 2B Clean & Green Points</a>");
	document.write("<a href='html/palomar_college_mission_statement.html' title='Palomar College Mission Statement'>Palomar College Mission Statement</a>");
	document.write("<a href='html/policies.html' title='Policies'>Policies</a>");
	document.write("<a href='html/Student_Activities_Office.html' title='Student Activities Office'>Student Activities Office</a>");
	document.write("<a href='html/student_discounts.html' title='Discounts'>Discounts</a>");
	document.write("<a href='html/Student_Activities_Bulletin.html' title='Student Activities Bulletin'>Student Activities Bulletin</a>");
	document.write("<a href='html/textbook_program.html' title='Textbook Program'>Textbook Program</a>");
	document.write("<a href='html/tutoring.html' title='Turtoring'>Tutoring</a>");
	document.write("<a href='html/contact.html' title='Contact'>Contact</a>");
	document.write("</div><div align='right' style='width:189px; height:8px;'><img src='images/mnu_bottomshadow.gif' width='189' height='8' /></div>");
}

function displayClubMenu()
{
	document.write("<div align='right' style='width:189px; height:8px;'><img src='images/mnu_topshadow.gif' width='189' height='8' /></div><div id='sideLink' align='center'>");
	document.write("<a href='index.html' title='Home'>Back to Student Affairs</a>");
	document.write("<a href='html/clubs/Animeclub.html' title='Anime Club'>Anime Club</a>");
	document.write("<a href='html/clubs/Appleclub.html' title='Apple Club'>Apple Club</a>");
	document.write("<a href='html/clubs/BlackStudentUnion.html' title='Black Student Union'>Black Student Union</a>");
	document.write("<a href='html/clubs/ChildDevelopmentClub.html' title='Child Development'>Child Development</a>");
	document.write("<a href='html/clubs/EnvironmentalStudentOrganization.html' title='Environmental Student Organization'>Environmental Student Organization</a>");
	document.write("<a href='html/clubs/EOP&SClub.html' title='EOP&S Reach Club'>EOP&S Reach Club</a>");
	document.write("<a href='html/clubs/ExtremeCreativeTalentClub.html' title='Extreme Creative Talent Club'>Extreme Creative Talent Club</a>");
	document.write("<a href='html/clubs/FashionClub.html' title='Fashion Club'>Fashion Club</a>");
	document.write("<a href='html/clubs/FrenchClub.html' title='French Club'>French Club</a>");
	document.write("<a href='html/clubs/GayStraightAllianceClub.html' title='Gay/Straight Alliance Club'>Gay/Straight Alliance Club</a>");
	document.write("<a href='html/clubs/GeosciencesClub.html' title='Geoscience Club'>Geoscience Club</a>");
	document.write("<a href='html/clubs/InternationalClub.html' title='International Club'>International Club</a>");
	document.write("<a href='html/clubs/JapaneseCultureClub.html' title='Japan Culture Club'>Japanese Cluture Club</a>");
	document.write("<a href='html/clubs/TheJesusClub.html' title='The Jesus Club'>The Jesus Club</a>");
	document.write("<a href='html/clubs/JordanClub.html' title='5:02 PM 12/17/2007Jordan Club'>Jordan Club</a>");
	document.write("<a href='html/clubs/LDSSAClub.html' title='LDSSA Club'>LDSSA Club</a>");
	document.write("<a href='html/clubs/MECHaClub.html' title='MECHa Club'>MECHa Club</a>");
	document.write("<a href='html/clubs/NASAClub.html' title='NASAClub'>NASA Club</a>");
	document.write("<a href='html/clubs/PhiThetaKappaChapter.html' title='Phi Theta Kappa Chapter'>Phi Theta Kappa Chapter</a>");
	document.write("<a href='html/clubs/Palomarencuentrosleadership.html' title='Palomar Encuentros Leadership'>Palomar Encuentros Leadership</a>");
	document.write("<a href='html/clubs/PalomarCollegeDemocratsClub.html' title='Palomar College Democrats Club'>Palomar College Democrats Club</a>");
	document.write("<a href='html/clubs/PalomarCollegeRepublicanClub.html' title='Palomar College Republican Club'>Palomar College Republican Club</a>");
	document.write("<a href='html/clubs/PalomarEngineeringandPhysicsStudentOrganization.html' title='Palomar Engineering and Physics Student Organization'>Palomar Engineering and Physics Student Organization</a>");
	document.write("<a href='html/clubs/PreMedClub.html' title='Premed Club'>Premed Club</a>");
	document.write("<a href='html/clubs/PalomarCollegeFilmClub.html' title='Palomar College Film Club'>Palomar College Film Club</a>");
	document.write("<a href='html/clubs/PalomarCollegeFireClub.html' title='Palomar College Fire Club'>Palomar College Fire Club</a>");
	document.write("<a href='html/clubs/PCPhotographyClub.html' title='PC Photography Club'>PC Photography Club</a>");
	document.write("<a href='html/clubs/PalomarTheatreGuild.html' title='Paomar Theatre Guild'>Palomar Theatre Guild</a>");
	document.write("<a href='html/clubs/RadioandTelevisionClub.html' title='Radio and Television Club'>Radio and Television Club</a>");
	document.write("<a href='html/clubs/ReachClub.html' title='Reach Club'>Reach Club</a>");
	document.write("<a href='html/clubs/societyforthecommonlaw.html' title='Society for the Common Law'>Society for the common law</a>");
	document.write("<a href='html/clubs/studentshelpingstudents.html' title='Students Helping Students'>Students Helping Students</a>");
	document.write("<a href='html/clubs/Tifaolemoanasamoanclub.html' title='Tifaolemoana Samoan Club'>Tifaolemoana Samoan Club</a>");
	document.write("<a href='html/clubs/Veteransstudentalliance.html' title='Veterans' Student Alliance'>Veterans' Student Alliance</a>");
	document.write("</div><div align='right' style='width:189px; height:8px;'><img src='images/mnu_bottomshadow.gif' width='189' height='8' /></div>");
}
function displayCheerMenu()
{
	document.write("<div align='right' style='width:189px; height:8px;'><img src='images/mnu_topshadow.gif' width='189' height='8' /></div><div id='sideLink' align='center'>");
	document.write("<a href='index.html' title='Home'>Back to Student Affairs</a>");
	document.write("<a href='html/Cheerleading/staff.html' title='Staff'>Staff</a>");
	document.write("<a href='html/Cheerleading/team.html' title='Cheer Team'>Cheer Team</a>");
	document.write("<a href='html/Cheerleading/calendar.html' title='Calendar'>Calendar</a>");
	document.write("<a href='html/Cheerleading/requirments.html' title='Requirments'>Requirments</a>");
	document.write("<a href='html/Cheerleading/contact.html' title='Contact'>Contact</a>");
	document.write("</div><div align='right' style='width:189px; height:8px;'><img src='images/mnu_bottomshadow.gif' width='189' height='8' /></div>");
}