days-=(_d14*2); 
days-=(_d0f*2); 
dojo.date.diff=function(dtA,dtB,_d05){if(typeof dtA=="number"){dtA=new Date(dtA);}if(typeof dtB=="number"){dtB=new Date(dtB);}var _d06=dtB.getFullYear()-dtA.getFullYear();var _d07=(dtB.getMonth()-dtA.getMonth())+(_d06*12);var _d08=dtB.getTime()-dtA.getTime();var _d09=_d08/1000;var _d0a=_d09/60;var _d0b=_d0a/60;var _d0c=_d0b/24;var _d0d=_d0c/7;var _d0e=0;with(dojo.date.dateParts){switch(_d05){case YEAR:_d0e=_d06;break;case QUARTER:var mA=dtA.getMonth();var mB=dtB.getMonth();var qA=Math.floor(mA/3)+1;var qB=Math.floor(mB/3)+1;qB+=(_d06*4);_d0e=qB-qA;break;case MONTH:_d0e=_d07;break;case WEEK:_d0e=parseInt(_d0d);break;case DAY:_d0e=_d0c;break;case WEEKDAY:var days=Math.round(_d0c);var _d14=parseInt(days/7);var mod=days%7;if(mod==0){days=_d14*5;}else{var adj=0;var aDay=dtA.getDay();var bDay=dtB.getDay();_d14=parseInt(days/7);mod=days%7;var _d19=new Date(dtA);_d19.setDate(_d19.getDate()+(_d14*7));var _d1a=_d19.getDay();if(_d0c>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_d1a+mod)>5:adj=-2;break;default:break;}}else{if(_d0c<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_d1a+mod)<0:adj=2;break;default:break;}}}days+=adj;days-=(_d14*2);}_d0e=days;break;case HOUR:_d0e=_d0b;break;case MINUTE:_d0e=_d0a;break;case SECOND:_d0e=_d09;break;case MILLISECOND:_d0e=_d08;break;default:break;}}return Math.round(_d0e);};
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/8d5e2ec356191d3f7b7197ccdd754d1a5010e15f/struts_dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js