<!-- Begin //SHOW DEADLINES SCRIPT FOR HOME PAGE



function showDeadlines(which)

{

// Get today's current date.

var now = new Date();



// Array list of days.

var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');



// Array list of months.

var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');



// Calculate the number of the current day in the week.

var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();



// Calculate four digit year.

function fourdigits(number)	{

	return (number < 1000) ? number + 1900 : number;

								}

// Concatenate all values

today =  days[now.getDay()] + ", " +

              months[now.getMonth()] + " " +

               date + ", " +

                (fourdigits(now.getYear())) ;



ccday = days[now.getDay()]

ccmonth = now.getMonth()+1

ccmonthname = months[now.getMonth()]

ccdate = date

ccyear = fourdigits(now.getYear())



//--------------------------------------------------------



//===== DETERMINE TIME OF MONTH ======



//If the month is JANUARY 1

 if (ccmonth == 1){ccdead = 2}



//If the month is FEBRUARY 2

 if (ccmonth == 2)

 {if (ccdate < 20){ccdead = 2}

 if (ccdate >= 20){ccdead = 3}}



//If the month is MARCH 3

 if (ccmonth == 3){ccdead = 3}

 

 //If the month is APRIL 4

 if (ccmonth == 4)

 {if (ccdate < 20){ccdead = 3}

 if (ccdate >= 20){ccdead = 4}}



//If the month is MAY 5

 if (ccmonth == 5){ccdead = 4}



//If the month is JUNE 6

 if (ccmonth == 6)

 {if (ccdate < 20){ccdead = 4}

 if (ccdate >= 20){ccdead = 5}}

 

//If the month is JULY 7

 if (ccmonth == 7){ccdead = 5}

 

 //If the month is AUGUST 8

 if (ccmonth == 8)

 {if (ccdate < 20){ccdead = 5}

 if (ccdate >= 20){ccdead = 6}}



//If the month is SEPTEMBER 9

 if (ccmonth == 9){ccdead = 6}



//If the month is OCTOBER 10

 if (ccmonth == 10)

 {if (ccdate < 20){ccdead = 6}

 if (ccdate >= 20){ccdead = 1; ccyear++}}



//If the month is NOVEMBER 11

 if (ccmonth == 11){ccdead = 1; ccyear++}

 

//If the month is DECEMBER 12



 if (ccmonth == 12)

 {if (ccdate < 20){ccdead = 1; ccyear++}

 if (ccdate >= 20){ccdead = 2; ccyear++}}

 

 //--------------------------------------------------------





	 if (ccdead == 1) {ccissue = "January/February"; ccdeadmonth = "December"}

	 if (ccdead == 2) {ccissue = "March/April"; ccdeadmonth = "February"}

	 if (ccdead == 3) {ccissue = "May/June"; ccdeadmonth = "April"}

	 if (ccdead == 4) {ccissue = "July/August"; ccdeadmonth = "June"}

	 if (ccdead == 5) {ccissue = "September/October"; ccdeadmonth = "August"}

	 if (ccdead == 6) {ccissue = "November/December"; ccdeadmonth = "October"}





//--------------------------------------------------------





//Display the Deadline on Screen



//DETERMINE WHICH ELEMENT TO DISPLAY - SET FONT ATTRIBUTES

if (which == 1)

  {
   //document.write("<B><FONT face='Arial, Helvetica, sans-serif' size='2' color='#FFFFFF'>");

   document.write("Deadline for " + ccissue + " " + ccyear);}

  

if (which == 2)

  {//document.write("<FONT face='Verdana, Arial, Helvetica, sans-serif' size='1' color='#000066'>");

   document.write(ccdeadmonth + " 20th");}

  

if (which == 3)

  {//document.write("<FONT face='Verdana, Arial, Helvetica, sans-serif' size='1' color='#000066'>");

   document.write(ccdeadmonth + " 20th");}





  //document.write("<b>Today's date is " + ccmonthname + ", " + ccdate + "</b>");

  //document.write("<br>");

  //document.write("The Deadline is " + ccdeadmonth + " 10th for the upcoming " + ccissue + ", " + ccyear + " " + ccname + " Issue ");



}



//  End -->
