if(dayofyear){ dateObject.setMonth(0); dateObject.setDate(Number(dayofyear)); } else if(week){ dateObject.setMonth(0); dateObject.setDate(1); var gd = dateObject.getDay(); var day =  gd ? gd : 7; var offset = Number(dayofweek) + (7 * Number(week));  if(day <= 4){ dateObject.setDate(offset + 1 - day); } else{ dateObject.setDate(offset + 8 - day); } } else{ if(month){ dateObject.setDate(1); dateObject.setMonth(month - 1); } if(date){ dateObject.setDate(date); } }  return dateObject; 
if(dayofyear){ dateObject.setMonth(0); dateObject.setDate(Number(dayofyear)); } else if(week){ dateObject.setMonth(0); dateObject.setDate(1); var gd = dateObject.getDay(); var day =  gd ? gd : 7; var offset = Number(dayofweek) + (7 * Number(week));  if(day <= 4){ dateObject.setDate(offset + 1 - day); } else{ dateObject.setDate(offset + 8 - day); } } else{ if(month){ dateObject.setDate(1); dateObject.setMonth(month - 1); } if(date){ dateObject.setDate(date); } }  return dateObject; 
dojo.date.setIso8601Date = function(/*String*/dateObject, /*String*/formattedString){	// summary: sets a Date object based on an ISO 8601 formatted string (date only)	var regexp = "^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|" +			"(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$";	var d = formattedString.match(new RegExp(regexp));	if(!d){		dojo.debug("invalid date string: " + formattedString);		return null; // null	}	var year = d[1];	var month = d[4];	var date = d[6];	var dayofyear = d[8];	var week = d[10];	var dayofweek = d[12] ? d[12] : 1;	dateObject.setFullYear(year);	if(dayofyear){		dateObject.setMonth(0);		dateObject.setDate(Number(dayofyear));	}	else if(week){		dateObject.setMonth(0);		dateObject.setDate(1);		var gd = dateObject.getDay();		var day =  gd ? gd : 7;		var offset = Number(dayofweek) + (7 * Number(week));				if(day <= 4){ dateObject.setDate(offset + 1 - day); }		else{ dateObject.setDate(offset + 8 - day); }	} else{		if(month){			dateObject.setDate(1);			dateObject.setMonth(month - 1); 		}		if(date){ dateObject.setDate(date); }	}		return dateObject; // Date};
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js