//LIST EACH MISSION ACCORDING TO DATES BELOW

var missions = new Array();
missions[0] = "Make or buy a snack or meal for your coworkers or classmates.";
missions[1] = "Go to www.AreUkind.com and donate a dollar.";
missions[2] = "Take a nice long walk and pick up all the trash on your way.";
missions[3] = "Watch somebody's kids for an evening/night.";
missions[4] = "Double your daily Benevolence Missions.";
missions[5] = "Go to a dollar theater and buy the tickets of two couples behind you in line.";
missions[6] = "Walk somebody else's dog(s).";
missions[7] = "Buy a case of water bottles for some construction workers on a sunny day. They're only $6 for a pack of 24 nowadays.";
missions[8] = "Look for somebody who really needs help and do what you can for them.";
missions[9] = "Go to the grocery store and pay for someone's items. Even if it's just a gallon of milk.";
missions[10] = "Buy the meal of somebody behind you in the drive-thru.";
missions[11] = "Write a letter of appreciation about a worker that took good care of you, and mail or email it to their boss with a recommendation to give them a raise.";
missions[12] = "Look for somebody who really needs help and do what you can for them.";

//SUNDAY IS BEGINNING OF WEEK
//ALWAYS START WITH PREVIOUS SUNDAY AS sunday0
//LIST WEEKS BY YEAR,MONTH,DATE
//MONTHS IN JAVASCRIPT ARE LISTED 0-11
//JAN=0, FEB=1, MAR=2, APR=3, MAY=4, JUN=5, JUL=6, AUG=7, SEP=8, OCT=9, NOV=10, DEC=11

var sunday0=new Date()
sunday0.setFullYear(2010,3,18)

var sunday1=new Date()
sunday1.setFullYear(2010,3,25)

var sunday2=new Date()
sunday2.setFullYear(2010,4,2)

var sunday3=new Date()
sunday3.setFullYear(2010,4,9)

var sunday4=new Date()
sunday4.setFullYear(2010,4,16)

var sunday5=new Date()
sunday5.setFullYear(2010,4,23)

var sunday6=new Date()
sunday6.setFullYear(2010,4,30)

var sunday7=new Date()
sunday7.setFullYear(2010,5,6)

var sunday8=new Date()
sunday8.setFullYear(2010,5,13)

var sunday9=new Date()
sunday9.setFullYear(2010,5,20)

var sunday10=new Date()
sunday10.setFullYear(2010,5,27)

var sunday11=new Date()
sunday11.setFullYear(2010,6,4)

var sunday12=new Date()
sunday12.setFullYear(2010,6,11)

var sunday13=new Date()
sunday13.setFullYear(2010,6,18)


//DO NOT MODIFY SCRIPT BELOW!

var today = new Date();

if (today>=sunday0 && today<sunday1){
document.write(missions[0])
}

else if (today>=sunday1 && today<sunday2){
document.write(missions[1])
}

else if (today>=sunday2 && today<sunday3){
document.write(missions[2])
}

else if (today>=sunday3 && today<sunday4){
document.write(missions[3])
}

else if (today>=sunday4 && today<sunday5){
document.write(missions[4])
}

else if (today>=sunday5 && today<sunday6){
document.write(missions[5])
}

else if (today>=sunday6 && today<sunday7){
document.write(missions[6])
}

else if (today>=sunday7 && today<sunday8){
document.write(missions[7])
}

else if (today>=sunday8 && today<sunday9){
document.write(missions[8])
}

else if (today>=sunday9 && today<sunday10){
document.write(missions[9])
}

else if (today>=sunday10 && today<sunday11){
document.write(missions[10])
}

else if (today>=sunday11 && today<sunday12){
document.write(missions[11])
}

else if (today>=sunday12 && today<sunday13){
document.write(missions[12])
}

else
{
document.write("Make up your own mission!")
}
