
// **************************************************************************** //
//                                                                              //
//   CHANGE THE NUMBERS BELOW TO THE RELEVANT DATE AND TIME OF THE NEXT ROUND   //
//                                                                              //
// **************************************************************************** //
//																				//
// 				 FORMAT: YEAR, MONTH (-1), DAY, HOURS, MINUTES					//
//																				//
// NB: YOU MUST -1 FROM THE NUMBER OF THE MONTH. SO MARCH WOULD BE '2', NOT '3' //
//                                                                              //
// **************************************************************************** //
//																				//
//  EXAMPLE: 18th March 2010 @ 9.30 PM => 18/3/2010 @ 21.30 => 2010,2,18,21,30  //
//                                                                              //
//  EXAMPLE: 1st April 2010 @ 6.00 PM => 3/4/2010 @ 18.00 = > 2010,3,1,18,0	    //
//																				//
// **************************************************************************** //

nextSubmissions = new Date(
	
	
2010,2,17,14,0 
// year, month-1, day, hours, minutes //


// *************************** //
// DO NOT EDIT BELOW THIS LINE //
// *************************** //
);

function GetCount2(){

	dateNowS = new Date();
	amountS = nextSubmissions.getTime() - dateNowS.getTime();
	delete dateNowS;

    if(amountS < (0-3600000)){
	    document.getElementById('nextsubmissions').innerHTML="Closed";
	}
	else{
	if(amountS < 0){
		document.getElementById('nextsubmissions').innerHTML="Closed";
	}
	else{
		daysS=0;hoursS=0;minsS=0;secsS=0;outS="";

		amountS = Math.floor(amountS/1000);

		daysS=Math.floor(amountS/86400);
		amountS=amountS%86400;

		hoursS=Math.floor(amountS/3600);
		amountS=amountS%3600;

		minsS=Math.floor(amountS/60);
		amountS=amountS%60;

		secsS=Math.floor(amountS);
		
		if(daysS > 0.9){outS += daysS +" day"+((daysS!=1)?"s":"");}
		if(2 > daysS){
		if(hoursS != 0){outS += ((daysS > 0)?" and ":"") + hoursS +" hour"+((hoursS!=1)?"s":"");}}
		if(12 > hoursS){outS += ((hoursS > 0)?" and ":"") + minsS +" minute"+((minsS!=1)?"s":"");}
		
		document.getElementById('nextsubmissions').innerHTML="Due in " + outS +".";

		setTimeout("GetCount2()", 1000);
	}
	}
}

window.onload=function(){GetCount2();}