function getAnchorPosition(_1){var _2=false;var _3=new Object();var x=0,y=0;var _4=false,_5=false,_6=false;if(document.getElementById){_4=true;}else{if(document.all){_5=true;}else{if(document.layers){_6=true;}}}if(_4&&document.all){x=AnchorPosition_getPageOffsetLeft(document.all[_1]);y=AnchorPosition_getPageOffsetTop(document.all[_1]);}else{if(_4){var o=document.getElementById(_1);x=AnchorPosition_getPageOffsetLeft(o);y=AnchorPosition_getPageOffsetTop(o);}else{if(_5){x=AnchorPosition_getPageOffsetLeft(document.all[_1]);y=AnchorPosition_getPageOffsetTop(document.all[_1]);}else{if(_6){var _7=0;for(var i=0;i<document.anchors.length;i++){if(document.anchors[i].name==_1){_7=1;break;}}if(_7==0){_3.x=0;_3.y=0;return _3;}x=document.anchors[i].x;y=document.anchors[i].y;}else{_3.x=0;_3.y=0;return _3;}}}}_3.x=x;_3.y=y;return _3;};function getAnchorWindowPosition(_8){var _9=getAnchorPosition(_8);var x=0;var y=0;if(document.getElementById){if(isNaN(window.screenX)){x=_9.x-document.body.scrollLeft+window.screenLeft;y=_9.y-document.body.scrollTop+window.screenTop;}else{x=_9.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;y=_9.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;}}else{if(document.all){x=_9.x-document.body.scrollLeft+window.screenLeft;y=_9.y-document.body.scrollTop+window.screenTop;}else{if(document.layers){x=_9.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;y=_9.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;}}}_9.x=x;_9.y=y;return _9;};function AnchorPosition_getPageOffsetLeft(el){var ol=el.offsetLeft;while((el=el.offsetParent)!=null){ol+=el.offsetLeft;}return ol;};function AnchorPosition_getWindowOffsetLeft(el){return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;};function AnchorPosition_getPageOffsetTop(el){var ot=el.offsetTop;while((el=el.offsetParent)!=null){ot+=el.offsetTop;}return ot;};function AnchorPosition_getWindowOffsetTop(el){return AnchorPosition_getPageOffsetTop(el)-document.body.scrollTop;};var MONTH_NAMES=new Array("January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var DAY_NAMES=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat");function LZ(x){return (x<0||x>9?"":"0")+x;};function isDate(_a,_b){var _c=getDateFromFormat(_a,_b);if(_c==0){return false;}return true;};function compareDates(_d,_e,_f,_10){var d1=getDateFromFormat(_d,_e);var d2=getDateFromFormat(_f,_10);if(d1==0||d2==0){return -1;}else{if(d1>d2){return 1;}}return 0;};function formatDate(_11,_12){_12=_12+"";var _13="";var _14=0;var c="";var _15="";var y=_11.getYear()+"";var M=_11.getMonth()+1;var d=_11.getDate();var E=_11.getDay();var H=_11.getHours();var m=_11.getMinutes();var s=_11.getSeconds();var _16,yy,MMM,MM,dd,hh,h,mm,ss,_17,HH,H,KK,K,kk,k;var _18=new Object();if(y.length<4){y=""+(y-0+1900);}_18["y"]=""+y;_18["yyyy"]=y;_18["yy"]=y.substring(2,4);_18["M"]=M;_18["MM"]=LZ(M);_18["MMM"]=MONTH_NAMES[M-1];_18["NNN"]=MONTH_NAMES[M+11];_18["d"]=d;_18["dd"]=LZ(d);_18["E"]=DAY_NAMES[E+7];_18["EE"]=DAY_NAMES[E];_18["H"]=H;_18["HH"]=LZ(H);if(H==0){_18["h"]=12;}else{if(H>12){_18["h"]=H-12;}else{_18["h"]=H;}}_18["hh"]=LZ(_18["h"]);if(H>11){_18["K"]=H-12;}else{_18["K"]=H;}_18["k"]=H+1;_18["KK"]=LZ(_18["K"]);_18["kk"]=LZ(_18["k"]);if(H>11){_18["a"]="PM";}else{_18["a"]="AM";}_18["m"]=m;_18["mm"]=LZ(m);_18["s"]=s;_18["ss"]=LZ(s);while(_14<_12.length){c=_12.charAt(_14);_15="";while((_12.charAt(_14)==c)&&(_14<_12.length)){_15+=_12.charAt(_14++);}if(_18[_15]!=null){_13=_13+_18[_15];}else{_13=_13+_15;}}return _13;};function _isInteger(val){var _19="1234567890";for(var i=0;i<val.length;i++){if(_19.indexOf(val.charAt(i))==-1){return false;}}return true;};function _getInt(str,i,_1a,_1b){for(var x=_1b;x>=_1a;x--){var _1c=str.substring(i,i+x);if(_1c.length<_1a){return null;}if(_isInteger(_1c)){return _1c;}}return null;};function getDateFromFormat(val,_1d){val=val+"";_1d=_1d+"";var _1e=0;var _1f=0;var c="";var _20="";var _21="";var x,y;var now=new Date();var _22=now.getYear();var _23=now.getMonth()+1;var _24=1;var hh=now.getHours();var mm=now.getMinutes();var ss=now.getSeconds();var _25="";while(_1f<_1d.length){c=_1d.charAt(_1f);_20="";while((_1d.charAt(_1f)==c)&&(_1f<_1d.length)){_20+=_1d.charAt(_1f++);}if(_20=="yyyy"||_20=="yy"||_20=="y"){if(_20=="yyyy"){x=4;y=4;}if(_20=="yy"){x=2;y=2;}if(_20=="y"){x=2;y=4;}_22=_getInt(val,_1e,x,y);if(_22==null){return 0;}_1e+=_22.length;if(_22.length==2){if(_22>70){_22=1900+(_22-0);}else{_22=2000+(_22-0);}}}else{if(_20=="MMM"||_20=="NNN"){_23=0;for(var i=0;i<MONTH_NAMES.length;i++){var _26=MONTH_NAMES[i];if(val.substring(_1e,_1e+_26.length).toLowerCase()==_26.toLowerCase()){if(_20=="MMM"||(_20=="NNN"&&i>11)){_23=i+1;if(_23>12){_23-=12;}_1e+=_26.length;break;}}}if((_23<1)||(_23>12)){return 0;}}else{if(_20=="EE"||_20=="E"){for(var i=0;i<DAY_NAMES.length;i++){var _27=DAY_NAMES[i];if(val.substring(_1e,_1e+_27.length).toLowerCase()==_27.toLowerCase()){_1e+=_27.length;break;}}}else{if(_20=="MM"||_20=="M"){_23=_getInt(val,_1e,_20.length,2);if(_23==null||(_23<1)||(_23>12)){return 0;}_1e+=_23.length;}else{if(_20=="dd"||_20=="d"){_24=_getInt(val,_1e,_20.length,2);if(_24==null||(_24<1)||(_24>31)){return 0;}_1e+=_24.length;}else{if(_20=="hh"||_20=="h"){hh=_getInt(val,_1e,_20.length,2);if(hh==null||(hh<1)||(hh>12)){return 0;}_1e+=hh.length;}else{if(_20=="HH"||_20=="H"){hh=_getInt(val,_1e,_20.length,2);if(hh==null||(hh<0)||(hh>23)){return 0;}_1e+=hh.length;}else{if(_20=="KK"||_20=="K"){hh=_getInt(val,_1e,_20.length,2);if(hh==null||(hh<0)||(hh>11)){return 0;}_1e+=hh.length;}else{if(_20=="kk"||_20=="k"){hh=_getInt(val,_1e,_20.length,2);if(hh==null||(hh<1)||(hh>24)){return 0;}_1e+=hh.length;hh--;}else{if(_20=="mm"||_20=="m"){mm=_getInt(val,_1e,_20.length,2);if(mm==null||(mm<0)||(mm>59)){return 0;}_1e+=mm.length;}else{if(_20=="ss"||_20=="s"){ss=_getInt(val,_1e,_20.length,2);if(ss==null||(ss<0)||(ss>59)){return 0;}_1e+=ss.length;}else{if(_20=="a"){if(val.substring(_1e,_1e+2).toLowerCase()=="am"){_25="AM";}else{if(val.substring(_1e,_1e+2).toLowerCase()=="pm"){_25="PM";}else{return 0;}}_1e+=2;}else{if(val.substring(_1e,_1e+_20.length)!=_20){return 0;}else{_1e+=_20.length;}}}}}}}}}}}}}}if(_1e!=val.length){return 0;}if(_23==2){if(((_22%4==0)&&(_22%100!=0))||(_22%400==0)){if(_24>29){return 0;}}else{if(_24>28){return 0;}}}if((_23==4)||(_23==6)||(_23==9)||(_23==11)){if(_24>30){return 0;}}if(hh<12&&_25=="PM"){hh=hh-0+12;}else{if(hh>11&&_25=="AM"){hh-=12;}}var _28=new Date(_22,_23-1,_24,hh,mm,ss);return _28.getTime();};function parseDate(val){var _29=(arguments.length==2)?arguments[1]:false;generalFormats=new Array("y-M-d","MMM d, y","MMM d,y","y-MMM-d","d-MMM-y","MMM d");monthFirst=new Array("M/d/y","M-d-y","M.d.y","MMM-d","M/d","M-d");dateFirst=new Array("d/M/y","d-M-y","d.M.y","d-MMM","d/M","d-M");var _2a=new Array("generalFormats",_29?"dateFirst":"monthFirst",_29?"monthFirst":"dateFirst");var d=null;for(var i=0;i<_2a.length;i++){var l=window[_2a[i]];for(var j=0;j<l.length;j++){d=getDateFromFormat(val,l[j]);if(d!=0){return new Date(d);}}}return null;};function PopupWindow_getXYPosition(_2b){var _2c;if(this.type=="WINDOW"){_2c=getAnchorWindowPosition(_2b);}else{_2c=getAnchorPosition(_2b);}this.x=_2c.x;this.y=_2c.y;};function PopupWindow_setSize(_2d,_2e){this.width=_2d;this.height=_2e;};function PopupWindow_populate(_2f){this.contents=_2f;this.populated=false;};function PopupWindow_setUrl(url){this.url=url;};function PopupWindow_setWindowProperties(_30){this.windowProperties=_30;};function PopupWindow_refresh(){if(this.divName!=null){if(this.use_gebi){document.getElementById(this.divName).innerHTML=this.contents;}else{if(this.use_css){document.all[this.divName].innerHTML=this.contents;}else{if(this.use_layers){var d=document.layers[this.divName];d.document.open();d.document.writeln(this.contents);d.document.close();}}}}else{if(this.popupWindow!=null&&!this.popupWindow.closed){if(this.url!=""){this.popupWindow.location.href=this.url;}else{this.popupWindow.document.open();this.popupWindow.document.writeln(this.contents);this.popupWindow.document.close();}this.popupWindow.focus();}}};function PopupWindow_showPopup(_31){this.getXYPosition(_31);this.x+=this.offsetX;this.y+=this.offsetY;if(!this.populated&&(this.contents!="")){this.populated=true;this.refresh();}if(this.divName!=null){if(this.use_gebi){document.getElementById(this.divName).style.left=this.x+"px";document.getElementById(this.divName).style.top=this.y+"px";document.getElementById(this.divName).style.visibility="visible";}else{if(this.use_css){document.all[this.divName].style.left=this.x;document.all[this.divName].style.top=this.y;document.all[this.divName].style.visibility="visible";}else{if(this.use_layers){document.layers[this.divName].left=this.x;document.layers[this.divName].top=this.y;document.layers[this.divName].visibility="visible";}}}}else{if(this.popupWindow==null||this.popupWindow.closed){if(this.x<0){this.x=0;}if(this.y<0){this.y=0;}if(screen&&screen.availHeight){if((this.y+this.height)>screen.availHeight){this.y=screen.availHeight-this.height;}}if(screen&&screen.availWidth){if((this.x+this.width)>screen.availWidth){this.x=screen.availWidth-this.width;}}this.popupWindow=window.open("about:blank","window_","width=200,height="+this.height+",screenX="+this.x+",left="+this.x+",screenY="+this.y+",top="+this.y+"");}this.refresh();}};function PopupWindow_hidePopup(){if(this.divName!=null){if(this.use_gebi){document.getElementById(this.divName).style.visibility="hidden";}else{if(this.use_css){document.all[this.divName].style.visibility="hidden";}else{if(this.use_layers){document.layers[this.divName].visibility="hidden";}}}}else{if(this.popupWindow&&!this.popupWindow.closed){this.popupWindow.close();this.popupWindow=null;}}};function PopupWindow_isClicked(e){if(this.divName!=null){if(this.use_layers){var _32=e.pageX;var _33=e.pageY;var t=document.layers[this.divName];if((_32>t.left)&&(_32<t.left+t.clip.width)&&(_33>t.top)&&(_33<t.top+t.clip.height)){return true;}else{return false;}}else{if(document.all){var t=window.event.srcElement;while(t.parentElement!=null){if(t.id==this.divName){return true;}t=t.parentElement;}return false;}else{if(this.use_gebi&&e){var t=e.originalTarget;try{while(t.parentNode!=null){if(t.id==this.divName){return true;}t=t.parentNode;}}catch(err){}return false;}}}return false;}return false;};function PopupWindow_hideIfNotClicked(e){if(this.autoHideEnabled&&!this.isClicked(e)){this.hidePopup();}};function PopupWindow_autoHide(){this.autoHideEnabled=true;};function PopupWindow_hidePopupWindows(e){for(var i=0;i<popupWindowObjects.length;i++){if(popupWindowObjects[i]!=null){var p=popupWindowObjects[i];p.hideIfNotClicked(e);}}};function PopupWindow_attachListener(){if(document.layers){document.captureEvents(Event.MOUSEUP);}window.popupWindowOldEventListener=document.onmouseup;if(window.popupWindowOldEventListener!=null){document.onmouseup=new Function("window.popupWindowOldEventListener(); PopupWindow_hidePopupWindows();");}else{document.onmouseup=PopupWindow_hidePopupWindows;}};function PopupWindow(){if(!window.popupWindowIndex){window.popupWindowIndex=0;}if(!window.popupWindowObjects){window.popupWindowObjects=new Array();}if(!window.listenerAttached){window.listenerAttached=true;PopupWindow_attachListener();}this.index=popupWindowIndex++;popupWindowObjects[this.index]=this;this.divName=null;this.popupWindow=null;this.width=0;this.height=0;this.populated=false;this.visible=false;this.autoHideEnabled=false;this.contents="";this.url="";this.windowProperties="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no";if(arguments.length>0){this.type="DIV";this.divName=arguments[0];}else{this.type="WINDOW";}this.use_gebi=false;this.use_css=false;this.use_layers=false;if(document.getElementById){this.use_gebi=true;}else{if(document.all){this.use_css=true;}else{if(document.layers){this.use_layers=true;}else{this.type="WINDOW";}}}this.offsetX=0;this.offsetY=0;this.getXYPosition=PopupWindow_getXYPosition;this.populate=PopupWindow_populate;this.setUrl=PopupWindow_setUrl;this.setWindowProperties=PopupWindow_setWindowProperties;this.refresh=PopupWindow_refresh;this.showPopup=PopupWindow_showPopup;this.hidePopup=PopupWindow_hidePopup;this.setSize=PopupWindow_setSize;this.isClicked=PopupWindow_isClicked;this.autoHide=PopupWindow_autoHide;this.hideIfNotClicked=PopupWindow_hideIfNotClicked;};function CP_stop(e){if(e&&e.stopPropagation){e.stopPropagation();}};function CalendarPopup(){var c;if(arguments.length>0){c=new PopupWindow(arguments[0]);}else{c=new PopupWindow();c.setSize(150,175);}c.offsetX=-152;c.offsetY=25;c.autoHide();c.monthNames=new Array("January","February","March","April","May","June","July","August","September","October","November","December");c.monthAbbreviations=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");c.dayHeaders=new Array("S","M","T","W","T","F","S");c.returnFunction="CP_tmpReturnFunction";c.returnMonthFunction="CP_tmpReturnMonthFunction";c.returnQuarterFunction="CP_tmpReturnQuarterFunction";c.returnYearFunction="CP_tmpReturnYearFunction";c.weekStartDay=0;c.isShowYearNavigation=true;c.displayType="date";c.disabledWeekDays=new Object();c.disabledDatesExpression="";c.yearSelectStartOffset=100;c.currentDate=null;c.todayText="Today";c.cssPrefix="";c.isShowNavigationDropdowns=true;c.isShowYearNavigationInput=false;window.CP_calendarObject=null;window.CP_targetInput=null;window.CP_dateFormat="MM/dd/yyyy";c.copyMonthNamesToWindow=CP_copyMonthNamesToWindow;c.setReturnFunction=CP_setReturnFunction;c.setReturnMonthFunction=CP_setReturnMonthFunction;c.setReturnQuarterFunction=CP_setReturnQuarterFunction;c.setReturnYearFunction=CP_setReturnYearFunction;c.setMonthNames=CP_setMonthNames;c.setMonthAbbreviations=CP_setMonthAbbreviations;c.setDayHeaders=CP_setDayHeaders;c.setWeekStartDay=CP_setWeekStartDay;c.setDisplayType=CP_setDisplayType;c.setDisabledWeekDays=CP_setDisabledWeekDays;c.addDisabledDates=CP_addDisabledDates;c.setYearSelectStartOffset=CP_setYearSelectStartOffset;c.setTodayText=CP_setTodayText;c.showYearNavigation=CP_showYearNavigation;c.showCalendar=CP_showCalendar;c.hideCalendar=CP_hideCalendar;c.getStyles=getCalendarStyles;c.refreshCalendar=CP_refreshCalendar;c.getCalendar=CP_getCalendar;c.select=CP_select;c.setCssPrefix=CP_setCssPrefix;c.showNavigationDropdowns=CP_showNavigationDropdowns;c.showYearNavigationInput=CP_showYearNavigationInput;c.copyMonthNamesToWindow();return c;};function CP_copyMonthNamesToWindow(){if(typeof (window.MONTH_NAMES)!="undefined"&&window.MONTH_NAMES!=null){window.MONTH_NAMES=new Array();for(var i=0;i<this.monthNames.length;i++){window.MONTH_NAMES[window.MONTH_NAMES.length]=this.monthNames[i];}for(var i=0;i<this.monthAbbreviations.length;i++){window.MONTH_NAMES[window.MONTH_NAMES.length]=this.monthAbbreviations[i];}}};function CP_tmpReturnFunction(y,m,d){if(window.CP_targetInput!=null){var dt=new Date(y,m-1,d,0,0,0);if(window.CP_calendarObject!=null){window.CP_calendarObject.copyMonthNamesToWindow();}window.CP_targetInput.value=formatDate(dt,window.CP_dateFormat);}else{alert("Use setReturnFunction() to define which function will get the clicked results!");}};function CP_tmpReturnMonthFunction(y,m){alert("Use setReturnMonthFunction() to define which function will get the clicked results!\nYou clicked: year="+y+" , month="+m);};function CP_tmpReturnQuarterFunction(y,q){alert("Use setReturnQuarterFunction() to define which function will get the clicked results!\nYou clicked: year="+y+" , quarter="+q);};function CP_tmpReturnYearFunction(y){alert("Use setReturnYearFunction() to define which function will get the clicked results!\nYou clicked: year="+y);};function CP_setReturnFunction(_34){this.returnFunction=_34;};function CP_setReturnMonthFunction(_35){this.returnMonthFunction=_35;};function CP_setReturnQuarterFunction(_36){this.returnQuarterFunction=_36;};function CP_setReturnYearFunction(_37){this.returnYearFunction=_37;};function CP_setMonthNames(){for(var i=0;i<arguments.length;i++){this.monthNames[i]=arguments[i];}this.copyMonthNamesToWindow();};function CP_setMonthAbbreviations(){for(var i=0;i<arguments.length;i++){this.monthAbbreviations[i]=arguments[i];}this.copyMonthNamesToWindow();};function CP_setDayHeaders(){for(var i=0;i<arguments.length;i++){this.dayHeaders[i]=arguments[i];}};function CP_setWeekStartDay(day){this.weekStartDay=day;};function CP_showYearNavigation(){this.isShowYearNavigation=(arguments.length>0)?arguments[0]:true;};function CP_setDisplayType(_38){if(_38!="date"&&_38!="week-end"&&_38!="month"&&_38!="quarter"&&_38!="year"){alert("Invalid display type! Must be one of: date,week-end,month,quarter,year");return false;}this.displayType=_38;};function CP_setYearSelectStartOffset(num){this.yearSelectStartOffset=num;};function CP_setDisabledWeekDays(){this.disabledWeekDays=new Object();for(var i=0;i<arguments.length;i++){this.disabledWeekDays[arguments[i]]=true;}};function CP_addDisabledDates(_39,end){if(arguments.length==1){end=_39;}if(_39==null&&end==null){return;}if(this.disabledDatesExpression!=""){this.disabledDatesExpression+="||";}if(_39!=null){_39=parseDate(_39);_39=""+_39.getFullYear()+LZ(_39.getMonth()+1)+LZ(_39.getDate());}if(end!=null){end=parseDate(end);end=""+end.getFullYear()+LZ(end.getMonth()+1)+LZ(end.getDate());}if(_39==null){this.disabledDatesExpression+="(ds<="+end+")";}else{if(end==null){this.disabledDatesExpression+="(ds>="+_39+")";}else{this.disabledDatesExpression+="(ds>="+_39+"&&ds<="+end+")";}}};function CP_setTodayText(_3a){this.todayText=_3a;};function CP_setCssPrefix(val){this.cssPrefix=val;};function CP_showNavigationDropdowns(){this.isShowNavigationDropdowns=(arguments.length>0)?arguments[0]:true;};function CP_showYearNavigationInput(){this.isShowYearNavigationInput=(arguments.length>0)?arguments[0]:true;};function CP_hideCalendar(){if(arguments.length>0){window.popupWindowObjects[arguments[0]].hidePopup();}else{this.hidePopup();}};function CP_refreshCalendar(_3b){var _3c=window.popupWindowObjects[_3b];if(arguments.length>1){_3c.populate(_3c.getCalendar(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]));}else{_3c.populate(_3c.getCalendar());}_3c.refresh();};function CP_showCalendar(_3d){if(arguments.length>1){if(arguments[1]==null||arguments[1]==""){this.currentDate=new Date();}else{this.currentDate=new Date(parseDate(arguments[1]));}}this.populate(this.getCalendar());this.showPopup(_3d);};function CP_select(_3e,_3f,_40){_3e=document.getElementById(_3e);var _41=(arguments.length>3)?arguments[3]:null;if(!window.getDateFromFormat){alert("calendar.select: To use this method you must also include 'date.js' for date formatting");return;}if(this.displayType!="date"&&this.displayType!="week-end"){alert("calendar.select: This function can only be used with displayType 'date' or 'week-end'");return;}if(_3e.type!="text"&&_3e.type!="hidden"&&_3e.type!="textarea"){alert("calendar.select: Input object passed is not a valid form input object");window.CP_targetInput=null;return;}if(_3e.disabled){return;}window.CP_targetInput=_3e;window.CP_calendarObject=this;this.currentDate=null;var _42=0;if(_41!=null){_42=getDateFromFormat(_41,_40);}else{if(_3e.value!=""){_42=getDateFromFormat(_3e.value,_40);}}if(_41!=null||_3e.value!=""){if(_42==0){this.currentDate=null;}else{this.currentDate=new Date(_42);}}window.CP_dateFormat=_40;this.showCalendar(_3f);};function getCalendarStyles(){var _43="";var p="";if(this!=null&&typeof (this.cssPrefix)!="undefined"&&this.cssPrefix!=null&&this.cssPrefix!=""){p=this.cssPrefix;}_43+="<STYLE>\n";_43+="."+p+"cpYearNavigation,."+p+"cpMonthNavigation { background-color:#226715; text-align:center; vertical-align:center; text-decoration:none; color:#FFF; font-weight:bold; }\n";_43+="."+p+"cpDayColumnHeader, ."+p+"cpYearNavigation,."+p+"cpMonthNavigation,."+p+"cpCurrentMonthDate,."+p+"cpCurrentMonthDateDisabled,."+p+"cpOtherMonthDate,."+p+"cpOtherMonthDateDisabled,."+p+"cpCurrentDate,."+p+"cpCurrentDateDisabled,."+p+"cpTodayText,."+p+"cpTodayTextDisabled,."+p+"cpText { font-family:arial; font-size:8pt; }\n";_43+="TD."+p+"cpDayColumnHeader { text-align:right; border:solid thin #C0C0C0;border-width:0px 0px 1px 0px; }\n";_43+="."+p+"cpCurrentMonthDate, ."+p+"cpOtherMonthDate, ."+p+"cpCurrentDate  { text-align:right; text-decoration:none; }\n";_43+="."+p+"cpCurrentMonthDateDisabled, ."+p+"cpOtherMonthDateDisabled, ."+p+"cpCurrentDateDisabled { color:#D0D0D0; text-align:right; text-decoration:line-through; }\n";_43+="."+p+"cpCurrentMonthDate, .cpCurrentDate { color:#000000; }\n";_43+="."+p+"cpOtherMonthDate { color:#808080; }\n";_43+="TD."+p+"cpCurrentDate { color:white; background-color: #FFE2BF;border:1px solid #5FC658; }\n";_43+="TD."+p+"cpCurrentDateDisabled { border-width:1px; border:solid thin #FFAAAA; }\n";_43+="TD."+p+"cpTodayText, TD."+p+"cpTodayTextDisabled { border:solid thin #C0C0C0; border-width:1px 0px 0px 0px;}\n";_43+="A."+p+"cpTodayText, SPAN."+p+"cpTodayTextDisabled { height:20px; }\n";_43+="A."+p+"cpTodayText { color:black; }\n";_43+="."+p+"cpTodayTextDisabled { color:#D0D0D0; }\n";_43+="."+p+"cpBorder { border:solid thin #808080; }\n";_43+="</STYLE>\n";return _43;};function CP_getCalendar(){var now=new Date();if(this.type=="WINDOW"){var _44="window.opener.";}else{var _44="";}var _45="";if(this.type=="WINDOW"){_45+="<HTML><HEAD><TITLE>Calendar</TITLE>"+this.getStyles()+"</HEAD><BODY MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 RIGHTMARGIN=0 LEFTMARGIN=0>\n";_45+="<CENTER><TABLE WIDTH=100% BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>\n";}else{_45+="<TABLE CLASS=\""+this.cssPrefix+"cpBorder\" WIDTH=193 BORDER=0 CELLSPACING=0 CELLPADDING=1>\n";_45+="<TR><TD ALIGN=CENTER>\n";_45+="<CENTER>\n";}if(this.displayType=="date"||this.displayType=="week-end"){if(this.currentDate==null){this.currentDate=now;}if(arguments.length>0){var _46=arguments[0];}else{var _46=this.currentDate.getMonth()+1;}if(arguments.length>1&&arguments[1]>0&&arguments[1]-0==arguments[1]){var _47=arguments[1];}else{var _47=this.currentDate.getFullYear();}var _48=new Array(0,31,28,31,30,31,30,31,31,30,31,30,31);if(((_47%4==0)&&(_47%100!=0))||(_47%400==0)){_48[2]=29;}var _49=new Date(_47,_46-1,1);var _4a=_47;var _4b=_46;var _4c=1;var _4d=_49.getDay();var _4e=0;_4e=(_4d>=this.weekStartDay)?_4d-this.weekStartDay:7-this.weekStartDay+_4d;if(_4e>0){_4b--;if(_4b<1){_4b=12;_4a--;}_4c=_48[_4b]-_4e+1;}var _4f=_46+1;var _50=_47;if(_4f>12){_4f=1;_50++;}var _51=_46-1;var _52=_47;if(_51<1){_51=12;_52--;}var _53;if(this.type!="WINDOW"){_45+="<TABLE WIDTH=193 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";}_45+="<TR>\n";var _54=_44+"CP_refreshCalendar";var _55="javascript:"+_54;if(this.isShowNavigationDropdowns){_45+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"78\" COLSPAN=\"3\"><select CLASS=\""+this.cssPrefix+"cpMonthNavigation\" name=\"cpMonth\" onmouseup=\"CP_stop(event)\" onChange=\""+_54+"("+this.index+",this.options[this.selectedIndex].value-0,"+(_47-0)+");\">";for(var _56=1;_56<=12;_56++){var _57=(_56==_46)?"SELECTED":"";_45+="<option value=\""+_56+"\" "+_57+">"+this.monthNames[_56-1]+"</option>";}_45+="</select></TD>";_45+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"10\">&nbsp;</TD>";_45+="<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"56\" COLSPAN=\"3\"><select CLASS=\""+this.cssPrefix+"cpYearNavigation\" name=\"cpYear\" onmouseup=\"CP_stop(event)\" onChange=\""+_54+"("+this.index+","+_46+",this.options[this.selectedIndex].value-0);\">";var _58=new Date();_58=_58.getFullYear();for(var _59=_58+1;_59>=_58-this.yearSelectStartOffset;_59--){var _57=(_59==_47)?"SELECTED":"";_45+="<option value=\""+_59+"\" "+_57+">"+_59+"</option>";}_45+="</select></TD>";}else{if(this.isShowYearNavigation){_45+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"10\"><A CLASS=\""+this.cssPrefix+"cpMonthNavigation\" HREF=\""+_55+"("+this.index+","+_51+","+_52+");\">&lt;</A></TD>";_45+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"58\"><SPAN CLASS=\""+this.cssPrefix+"cpMonthNavigation\">"+this.monthNames[_46-1]+"</SPAN></TD>";_45+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"10\"><A CLASS=\""+this.cssPrefix+"cpMonthNavigation\" HREF=\""+_55+"("+this.index+","+_4f+","+_50+");\">&gt;</A></TD>";_45+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"10\">&nbsp;</TD>";_45+="<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"10\"><A CLASS=\""+this.cssPrefix+"cpYearNavigation\" HREF=\""+_55+"("+this.index+","+_46+","+(_47-1)+");\">&lt;</A></TD>";if(this.isShowYearNavigationInput){_45+="<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"36\"><INPUT NAME=\"cpYear\" CLASS=\""+this.cssPrefix+"cpYearNavigation\" SIZE=\"4\" MAXLENGTH=\"4\" VALUE=\""+_47+"\" onBlur=\""+_54+"("+this.index+","+_46+",this.value-0);\"></TD>";}else{_45+="<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"36\"><SPAN CLASS=\""+this.cssPrefix+"cpYearNavigation\">"+_47+"</SPAN></TD>";}_45+="<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"10\"><A CLASS=\""+this.cssPrefix+"cpYearNavigation\" HREF=\""+_55+"("+this.index+","+_46+","+(_47+1)+");\">&gt;</A></TD>";}else{_45+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"22\"><A CLASS=\""+this.cssPrefix+"cpMonthNavigation\" HREF=\""+_55+"("+this.index+","+_51+","+_52+");\">&lt;&lt;</A></TD>\n";_45+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"100\"><SPAN CLASS=\""+this.cssPrefix+"cpMonthNavigation\">"+this.monthNames[_46-1]+" "+_47+"</SPAN></TD>\n";_45+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"22\"><A CLASS=\""+this.cssPrefix+"cpMonthNavigation\" HREF=\""+_55+"("+this.index+","+_4f+","+_50+");\">&gt;&gt;</A></TD>\n";}}_45+="</TR></TABLE>\n";_45+="<TABLE WIDTH=183  class=tablebg BORDER=0 CELLSPACING=0 CELLPADDING=1 ALIGN=CENTER>\n";_45+="<TR>\n";for(var j=0;j<7;j++){_45+="<TD CLASS=\""+this.cssPrefix+"cpDayColumnHeader\" WIDTH=\"14%\"><SPAN CLASS=\""+this.cssPrefix+"cpDayColumnHeader\">"+this.dayHeaders[(this.weekStartDay+j)%7]+"</TD>\n";}_45+="</TR>\n";for(var row=1;row<=6;row++){_45+="<TR>\n";for(var col=1;col<=7;col++){var _5a=false;if(this.disabledDatesExpression!=""){var ds=""+_4a+LZ(_4b)+LZ(_4c);eval("disabled=("+this.disabledDatesExpression+")");}var _5b="";if((_4b==this.currentDate.getMonth()+1)&&(_4c==this.currentDate.getDate())&&(_4a==this.currentDate.getFullYear())){_5b="cpCurrentDate";}else{if(_4b==_46){_5b="cpCurrentMonthDate";}else{_5b="cpOtherMonthDate";}}if(_5a||this.disabledWeekDays[col-1]){_45+="\t<TD CLASS=\""+this.cssPrefix+_5b+"\"><SPAN CLASS=\""+this.cssPrefix+_5b+"Disabled\">"+_4c+"</SPAN></TD>\n";}else{var _5c=_4c;var _5d=_4b;var _5e=_4a;if(this.displayType=="week-end"){var d=new Date(_5e,_5d-1,_5c,0,0,0,0);d.setDate(d.getDate()+(7-col));_5e=d.getYear();if(_5e<1000){_5e+=1900;}_5d=d.getMonth()+1;_5c=d.getDate();}_45+="\t<TD CLASS=\""+this.cssPrefix+_5b+"\"><A HREF=\"javascript:"+_44+this.returnFunction+"("+_5e+","+_5d+","+_5c+");"+_44+"CP_hideCalendar('"+this.index+"');\" CLASS=\""+this.cssPrefix+_5b+"\">"+_4c+"</A></TD>\n";}_4c++;if(_4c>_48[_4b]){_4c=1;_4b++;}if(_4b>12){_4b=1;_4a++;}}_45+="</TR>";}var _5f=now.getDay()-this.weekStartDay;if(_5f<0){_5f+=7;}_45+="<TR>\n";_45+="\t<TD COLSPAN=7 ALIGN=CENTER CLASS=\""+this.cssPrefix+"cpTodayText\">\n";if(this.disabledDatesExpression!=""){var ds=""+now.getFullYear()+LZ(now.getMonth()+1)+LZ(now.getDate());eval("disabled=("+this.disabledDatesExpression+")");}_45+="\t\t<BR>\n";_45+="\t</TD></TR></TABLE></CENTER></TD></TR></TABLE>\n";}if(this.displayType=="month"||this.displayType=="quarter"||this.displayType=="year"){if(arguments.length>0){var _47=arguments[0];}else{if(this.displayType=="year"){var _47=now.getFullYear()-this.yearSelectStartOffset;}else{var _47=now.getFullYear();}}if(this.displayType!="year"&&this.isShowYearNavigation){_45+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";_45+="<TR>\n";_45+="\t<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"22\"><A CLASS=\""+this.cssPrefix+"cpYearNavigation\" HREF=\"javascript:"+_44+"CP_refreshCalendar("+this.index+","+(_47-1)+");\">&lt;&lt;</A></TD>\n";_45+="\t<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"100\">"+_47+"</TD>\n";_45+="\t<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"22\"><A CLASS=\""+this.cssPrefix+"cpYearNavigation\" HREF=\"javascript:"+_44+"CP_refreshCalendar("+this.index+","+(_47+1)+");\">&gt;&gt;</A></TD>\n";_45+="</TR></TABLE>\n";}}if(this.displayType=="month"){_45+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n";for(var i=0;i<4;i++){_45+="<TR>";for(var j=0;j<3;j++){var _60=((i*3)+j);_45+="<TD WIDTH=33% ALIGN=CENTER><A CLASS=\""+this.cssPrefix+"cpText\" HREF=\"javascript:"+_44+this.returnMonthFunction+"("+_47+","+(_60+1)+");"+_44+"CP_hideCalendar('"+this.index+"');\" CLASS=\""+_53+"\">"+this.monthAbbreviations[_60]+"</A></TD>";}_45+="</TR>";}_45+="</TABLE></CENTER></TD></TR></TABLE>\n";}if(this.displayType=="quarter"){_45+="<BR><TABLE WIDTH=120 BORDER=1 CELLSPACING=0 CELLPADDING=0 ALIGN=CENTER>\n";for(var i=0;i<2;i++){_45+="<TR>";for(var j=0;j<2;j++){var _61=((i*2)+j+1);_45+="<TD WIDTH=50% ALIGN=CENTER><BR><A CLASS=\""+this.cssPrefix+"cpText\" HREF=\"javascript:"+_44+this.returnQuarterFunction+"("+_47+","+_61+");"+_44+"CP_hideCalendar('"+this.index+"');\" CLASS=\""+_53+"\">Q"+_61+"</A><BR><BR></TD>";}_45+="</TR>";}_45+="</TABLE></CENTER></TD></TR></TABLE>\n";}if(this.displayType=="year"){var _62=4;_45+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";_45+="<TR>\n";_45+="\t<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"50%\"><A CLASS=\""+this.cssPrefix+"cpYearNavigation\" HREF=\"javascript:"+_44+"CP_refreshCalendar("+this.index+","+(_47-(_62*2))+");\">&lt;&lt;</A></TD>\n";_45+="\t<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"50%\"><A CLASS=\""+this.cssPrefix+"cpYearNavigation\" HREF=\"javascript:"+_44+"CP_refreshCalendar("+this.index+","+(_47+(_62*2))+");\">&gt;&gt;</A></TD>\n";_45+="</TR></TABLE>\n";_45+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n";for(var i=0;i<_62;i++){for(var j=0;j<2;j++){var _63=_47+(j*_62)+i;_45+="<TD WIDTH=50% ALIGN=CENTER><A CLASS=\""+this.cssPrefix+"cpText\" HREF=\"javascript:"+_44+this.returnYearFunction+"("+_63+");"+_44+"CP_hideCalendar('"+this.index+"');\" CLASS=\""+_53+"\">"+_63+"</A></TD>";}_45+="</TR>";}_45+="</TABLE></CENTER></TD></TR></TABLE>\n";}if(this.type=="WINDOW"){_45+="</BODY></HTML>\n";}return _45;};
