function isNumber(numberString) 
{
	var intVal;
	//alert("about to parse int");
	intVal = parseInt(numberString);
	//alert("about to ask if NAN");
	if (isNaN(intVal)) {
		//alert("invalid number");
		return false;
	}
	//alert("valid number");
	return true;
}


function isDateInThePast(startYearStr, startMonthStr, startDateStr) 
{

	var now = new Date();
	var startDate;
	var difference;		
	
	startDate = new Date();
	
	startDate.setFullYear(startYearStr);
	//alert(startYearStr);
	startDate.setMonth(startMonthStr - 1);
	//alert(startMonthStr);
	startDate.setDate(startDateStr);
	//alert(startDateStr);
	
	difference = (startDate - now);
	//alert(startDate);
	//alert(now);
	//alert(difference);
	//return true;
//difference = 1	
	return (difference < 0);	
}

function isValidStartDate(startYearStr, startMonthStr, startDateStr) {
	var now;			
	var startDate;
	var difference;
	
	now = new Date(); // create today's date
	//alert(now);
	
	startDate = new Date();
	startDate.setFullYear(startYearStr);
	startDate.setMonth(startMonthStr - 1);
	startDate.setDate(startDateStr);
	//alert(startDate);
	
	difference = (startDate - now) / (1000 * 60 * 60 * 24);
	//alert(difference);
	//difference = 100;
	return (difference > MINIMUM_DAYS);	
}	

function getMinimumDaysFromStart() {
	return MINIMUM_DAYS;
}
