rem:  if(getYear(dates[i])<= getYear(dates[iplus1])&& (getMonth(dates[i])<= getMonth(dates[iplus1]) && getDay(dates[i])<= getDay(dates[iplus1]))) 
add: getTime(dates[i]) if(getDate(dates[i])< getDate(dates[iplus1])) 
context: function checkDeadlines(){	var numReviews = document.getElementById('assignment_helper_no_of_reviews');	var limit=numReviews.value;	var dates = new Array()	dates[0]= document.getElementById('submit_deadline_due_at').value	dates[1]= document.getElementById('review_deadline_due_at').value	var datesCount=2;	for (i=1;i<limit;i++)	{		var j = i+1;		var resubmitFieldName = "additional_submit_deadline_"+j+"_due_at"		var rereviewFieldName = "additional_review_deadline_"+j+"_due_at"		dates[datesCount]= document.getElementById(resubmitFieldName).value		datesCount++		dates[datesCount]= document.getElementById(rereviewFieldName).value		datesCount++	}	dates[datesCount] = document.getElementById('reviewofreview_deadline_due_at').value	 	for (i=0;i<datesCount;i++)	{		var check = 0		var iplus1 = i+1 				if(getYear(dates[i])<= getYear(dates[iplus1])&& (getMonth(dates[i])<= getMonth(dates[iplus1]) && getDay(dates[i])<= getDay(dates[iplus1])))		{		  if(i == datesCount-1)			{				return true			}		}		else		{			var iplus2=i+2			//alert ("Deadlines incorrect. Make sure each date in a deadline is greater than or equal to the date its preceding deadline.")			alert ("Deadline on line "+iplus2+" must be after deadline on line "+iplus1)			return false		}	}	}
meta: 5156	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5156/91ff3aca26e9685fb4324a50bc396f18a0cc0459/application.js/clean/public/javascripts/application.js