rem: alert ("Year greater for "+i) 
add: var iplus2=i+2  alert ("Deadline on line "+iplus2+" must be after deadline on line "+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 datesCounter=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[datesCounter]= document.getElementById(resubmitFieldName).value		datesCounter++		dates[datesCounter]= document.getElementById(rereviewFieldName).value		datesCounter++	}	dates[datesCounter] = document.getElementById('reviewofreview_deadline_due_at').value	 	for (i=0;i<datesCounter;i++)	{		var check = 0		var iplsvn = i+1 				if(getYear(dates[i])<= getYear(dates[iplsvn]))		{			if(getMonth(dates[i])<= getMonth(dates[iplsvn]))			{				if(getDay(dates[i])<= getDay(dates[iplsvn]))				{					if(i == datesCounter-1)					{						return true					}				}				else				{					alert ("Deadlines incorrect- Make sure each date in a deadline is greater than or equal to the date its preceeding deadline.")					return false				}			}			else			{				alert ("Month greater for "+i)				return false			}			}		else		{			alert ("Year greater for "+i)			return false		}	}	}
meta: 5156	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5156/60cda4add8bb5405012eedb34082f87401e06772/application.js/clean/public/javascripts/application.js