Date.prototype.addDays = function(days) {
	this.setDate(this.getDate()+days);
}

function ovulation(dt1) {

	var values = [null, null, null, null]; 
	var tmp = null;
	
	if (dt1.getDate().toString() != "NaN") {	
		tmp = new Date(dt1);
		tmp.addDays(12);
		values[0] = tmp.getDate() + "/" + (tmp.getMonth()+1) + "/" + tmp.getFullYear();
	
		tmp = new Date(dt1);
		tmp.addDays(16);
		values[1] = tmp.getDate() + "/" + (tmp.getMonth()+1) + "/" + tmp.getFullYear();
		
		tmp = new Date(dt1);
		tmp.addDays(278);
		values[2] = tmp.getDate() + "/" + (tmp.getMonth()+1) + "/" + tmp.getFullYear();
		
		tmp = new Date(dt1);
		tmp.addDays(282);
		values[3] = tmp.getDate() + "/" + (tmp.getMonth()+1) + "/" + tmp.getFullYear();
	} else {
		values[0] = "00/00/0000";
		values[1] = "00/00/0000";
		values[2] = "00/00/0000";
		values[3] = "00/00/0000";
	}
	
	return values;
}
