isCursorInWindow=false;function getAnchorPosition(N){var V=false;var Q=new Object();var R=0,T=0;var L=false,U=false,S=false;if(document.getElementById){L=true}else{if(document.all){U=true}else{if(document.layers){S=true}}}if(L&&document.all){R=AnchorPosition_getPageOffsetLeft(document.all[N]);T=AnchorPosition_getPageOffsetTop(document.all[N])}else{if(L){var O=document.getElementById(N);R=AnchorPosition_getPageOffsetLeft(O);T=AnchorPosition_getPageOffsetTop(O)}else{if(U){R=AnchorPosition_getPageOffsetLeft(document.all[N]);T=AnchorPosition_getPageOffsetTop(document.all[N])}else{if(S){var P=0;for(var M=0;M<document.anchors.length;M++){if(document.anchors[M].name==N){P=1;break}}if(P==0){Q.x=0;Q.y=0;return Q}R=document.anchors[M].x;T=document.anchors[M].y}else{Q.x=0;Q.y=0;return Q}}}}Q.x=R;Q.y=T;return Q}function getAnchorWindowPosition(H){var G=getAnchorPosition(H);var E=0;var F=0;if(document.getElementById){if(isNaN(window.screenX)){E=G.x-document.body.scrollLeft+window.screenLeft;F=G.y-document.body.scrollTop+window.screenTop}else{E=G.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;F=G.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset}}else{if(document.all){E=G.x-document.body.scrollLeft+window.screenLeft;F=G.y-document.body.scrollTop+window.screenTop}else{if(document.layers){E=G.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;F=G.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset}}}G.x=E;G.y=F;return G}function AnchorPosition_getPageOffsetLeft(D){var C=D.offsetLeft;while((D=D.offsetParent)!=null){C+=D.offsetLeft}return C}function AnchorPosition_getWindowOffsetLeft(B){return AnchorPosition_getPageOffsetLeft(B)-document.body.scrollLeft}function AnchorPosition_getPageOffsetTop(C){var D=C.offsetTop;while((C=C.offsetParent)!=null){D+=C.offsetTop}return D}function AnchorPosition_getWindowOffsetTop(B){return AnchorPosition_getPageOffsetTop(B)-document.body.scrollTop}function LZ(B){return(B<0||B>9?"":"0")+B}function isDate(E,F){var D=getDateFromFormat(E,F);if(D==0){return false}return true}function compareDates(I,H,K,J){var L=getDateFromFormat(I,H);var G=getDateFromFormat(K,J);if(L==0||G==0){return -1}else{if(L>G){return 1}}return 0}function formatDate(AG,AJ){AJ=AJ+"";var u="";var k=0;var AH="";var z="";var v=AG.getYear()+"";var y=AG.getMonth()+1;var AI=AG.getDate();var s=AG.getDay();var t=AG.getHours();var c=AG.getMinutes();var q=AG.getSeconds();var o,m,AB,p,AF,AA,E,H,M,r,AD,t,AE,x,AC,K;var d=new Object();if(v.length<4){v=""+(v-0+1900)}d.y=""+v;d.yyyy=v;d.yy=v.substring(2,4);d.M=y;d.MM=LZ(y);d.MMM=MONTH_NAMES[y-1];d.NNN=MONTH_NAMES[y+11];d.d=AI;d.dd=LZ(AI);d.E=DAY_NAMES[s+7];d.EE=DAY_NAMES[s];d.H=t;d.HH=LZ(t);if(t==0){d.h=12}else{if(t>12){d.h=t-12}else{d.h=t}}d.hh=LZ(d.h);if(t>11){d.K=t-12}else{d.K=t}d.k=t+1;d.KK=LZ(d.K);d.kk=LZ(d.k);if(t>11){d.a="PM"}else{d.a="AM"}d.m=c;d.mm=LZ(c);d.s=q;d.ss=LZ(q);while(k<AJ.length){AH=AJ.charAt(k);z="";while((AJ.charAt(k)==AH)&&(k<AJ.length)){z+=AJ.charAt(k++)}if(d[z]!=null){u=u+d[z]}else{u=u+z}}return u}function _isInteger(E){var F="1234567890";for(var D=0;D<E.length;D++){if(F.indexOf(E.charAt(D))==-1){return false}}return true}function _getInt(H,J,I,K){for(var G=K;G>=I;G--){var L=H.substring(J,J+G);if(L.length<I){return null}if(_isInteger(L)){return L}}return null}function getDateFromFormat(V,d){V=V+"";d=d+"";var W=0;var j=0;var b="";var o="";var X="";var m,n;var r=new Date();var l=r.getYear();var Y=r.getMonth()+1;var Z=1;var q=r.getHours();var c=r.getMinutes();var f=r.getSeconds();var k="";while(j<d.length){b=d.charAt(j);o="";while((d.charAt(j)==b)&&(j<d.length)){o+=d.charAt(j++)}if(o=="yyyy"||o=="yy"||o=="y"){if(o=="yyyy"){m=4;n=4}if(o=="yy"){m=2;n=2}if(o=="y"){m=2;n=4}l=_getInt(V,W,m,n);if(l==null){return 0}W+=l.length;if(l.length==2){if(l>70){l=1900+(l-0)}else{l=2000+(l-0)}}}else{if(o=="MMM"||o=="NNN"){Y=0;for(var e=0;e<MONTH_NAMES.length;e++){var p=MONTH_NAMES[e];if(V.substring(W,W+p.length).toLowerCase()==p.toLowerCase()){if(o=="MMM"||(o=="NNN"&&e>11)){Y=e+1;if(Y>12){Y-=12}W+=p.length;break}}}if((Y<1)||(Y>12)){return 0}}else{if(o=="EE"||o=="E"){for(var e=0;e<DAY_NAMES.length;e++){var g=DAY_NAMES[e];if(V.substring(W,W+g.length).toLowerCase()==g.toLowerCase()){W+=g.length;break}}}else{if(o=="MM"||o=="M"){Y=_getInt(V,W,o.length,2);if(Y==null||(Y<1)||(Y>12)){return 0}W+=Y.length}else{if(o=="dd"||o=="d"){Z=_getInt(V,W,o.length,2);if(Z==null||(Z<1)||(Z>31)){return 0}W+=Z.length}else{if(o=="hh"||o=="h"){q=_getInt(V,W,o.length,2);if(q==null||(q<1)||(q>12)){return 0}W+=q.length}else{if(o=="HH"||o=="H"){q=_getInt(V,W,o.length,2);if(q==null||(q<0)||(q>23)){return 0}W+=q.length}else{if(o=="KK"||o=="K"){q=_getInt(V,W,o.length,2);if(q==null||(q<0)||(q>11)){return 0}W+=q.length}else{if(o=="kk"||o=="k"){q=_getInt(V,W,o.length,2);if(q==null||(q<1)||(q>24)){return 0}W+=q.length;q--}else{if(o=="mm"||o=="m"){c=_getInt(V,W,o.length,2);if(c==null||(c<0)||(c>59)){return 0}W+=c.length}else{if(o=="ss"||o=="s"){f=_getInt(V,W,o.length,2);if(f==null||(f<0)||(f>59)){return 0}W+=f.length}else{if(o=="a"){if(V.substring(W,W+2).toLowerCase()=="am"){k="AM"}else{if(V.substring(W,W+2).toLowerCase()=="pm"){k="PM"}else{return 0}}W+=2}else{if(V.substring(W,W+o.length)!=o){return 0}else{W+=o.length}}}}}}}}}}}}}}if(W!=V.length){return 0}if(Y==2){if(((l%4==0)&&(l%100!=0))||(l%400==0)){if(Z>29){return 0}}else{if(Z>28){return 0}}}if((Y==4)||(Y==6)||(Y==9)||(Y==11)){if(Z>30){return 0}}if(q<12&&k=="PM"){q=q-0+12}else{if(q>11&&k=="AM"){q-=12}}var s=new Date(l,Y-1,Z,q,c,f);return s.getTime()}function parseDate(I){var K=(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 N=new Array("generalFormats",K?"dateFirst":"monthFirst",K?"monthFirst":"dateFirst");var J=null;for(var L=0;L<N.length;L++){var H=window[N[L]];for(var M=0;M<H.length;M++){J=getDateFromFormat(I,H[M]);if(J!=0){return new Date(J)}}}return null}function PopupWindow_getXYPosition(C){var D;if(this.type=="WINDOW"){D=getAnchorWindowPosition(C)}else{D=getAnchorPosition(C)}this.x=D.x;this.y=D.y}function PopupWindow_setSize(D,C){this.width=D;this.height=C}function PopupWindow_populate(B){this.contents=B;this.populated=false}function PopupWindow_setUrl(B){this.url=B}function PopupWindow_setWindowProperties(B){this.windowProperties=B}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 B=document.layers[this.divName];B.document.open();B.document.writeln(this.contents);B.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(C){this.getXYPosition(C);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.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}}var D=window.opera||(document.layers&&!navigator.mimeTypes["*"])||navigator.vendor=="KDE"||(document.childNodes&&!document.all&&!navigator.taintEnabled);this.popupWindow=window.open(D?"":"about:blank","window_"+C,this.windowProperties+",width="+this.width+",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"}}}if(window.showSensitiveFields){showSensitiveFields()}}else{if(this.popupWindow&&!this.popupWindow.closed){this.popupWindow.close();this.popupWindow=null}}}function PopupWindow_isClicked(Q){try{if(this.divName!=null){if(this.use_layers){var L=Q.pageX;var M=Q.pageY;var N=document.layers[this.divName];if((L>N.left)&&(L<N.left+N.clip.width)&&(M>N.top)&&(M<N.top+N.clip.height)){return true}else{return false}}else{if(document.all){var N=window.event.srcElement;while(N.parentElement!=null){if(N.id==this.divName){return true}N=N.parentElement}return false}else{if(this.use_gebi&&Q){var P=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;var N=null;if(P){if(Q.target){N=Q.target}else{if(Q.srcElement){N=Q.srcElement}}if(N.nodeType==3){N=N.parentNode}}else{if(P){N=Q.originalTarget}else{return isCursorInWindow}}while(N.parentNode!=null){if(N.id==this.divName){return true}N=N.parentNode}var O=document.getElementById(this.divName);if(O!=null){var R=O.childNodes;for(var J=0;J<R.length;J++){if(R[J]!=null&&R[J].tagName+R[J].className==N.tagName+N.className){return true}}}return false}}}return false}return false}catch(K){}}function PopupWindow_hideIfNotClicked(B){if(this.autoHideEnabled&&!this.isClicked(B)){this.hidePopup()}}function PopupWindow_autoHide(){this.autoHideEnabled=true}function PopupWindow_hidePopupWindows(E){for(var D=0;D<popupWindowObjects.length;D++){if(popupWindowObjects[D]!=null){var F=popupWindowObjects[D];F.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 CalendarPopup(){var B;if(arguments.length>0){B=new PopupWindow(arguments[0])}else{B=new PopupWindow();B.setSize(150,175)}B.offsetX=-152;B.offsetY=25;B.autoHide();B.monthNames=MONTH_NAMES2;B.monthAbbreviations=MONTH_ABREV;B.dayHeaders=DAY_HEADERS;B.returnFunction="CP_tmpReturnFunction";B.returnMonthFunction="CP_tmpReturnMonthFunction";B.returnQuarterFunction="CP_tmpReturnQuarterFunction";B.returnYearFunction="CP_tmpReturnYearFunction";B.weekStartDay=0;B.from_year=0;B.from_month=0;B.to_year=0;B.to_month=0;B.isShowYearNavigation=false;B.displayType="date";B.disabledWeekDays=new Object();B.disabledDatesExpression="";B.yearSelectStartOffset=2;B.currentDate=null;B.todayText="Today";B.cssPrefix="";B.isShowNavigationDropdowns=false;B.isShowMonthDropdown=false;B.isShowYearNavigationInput=false;window.CP_calendarObject=null;window.CP_targetInput=null;window.CP_dateFormat="MM/dd/yyyy";B.copyMonthNamesToWindow=CP_copyMonthNamesToWindow;B.setReturnFunction=CP_setReturnFunction;B.setReturnMonthFunction=CP_setReturnMonthFunction;B.setReturnQuarterFunction=CP_setReturnQuarterFunction;B.setReturnYearFunction=CP_setReturnYearFunction;B.setMonthNames=CP_setMonthNames;B.setMonthAbbreviations=CP_setMonthAbbreviations;B.setDayHeaders=CP_setDayHeaders;B.setWeekStartDay=CP_setWeekStartDay;B.setDisplayType=CP_setDisplayType;B.setDisabledWeekDays=CP_setDisabledWeekDays;B.addDisabledDates=CP_addDisabledDates;B.addEnabledDates=CP_addEnabledDates;B.setYearSelectStartOffset=CP_setYearSelectStartOffset;B.setTodayText=CP_setTodayText;B.showYearNavigation=CP_showYearNavigation;B.showCalendar=CP_showCalendar;B.hideCalendar=CP_hideCalendar;B.getStyles=getCalendarStyles;B.refreshCalendar=CP_refreshCalendar;B.getCalendar=CP_getCalendar;B.select=CP_select;B.setCssPrefix=CP_setCssPrefix;B.showNavigationDropdowns=CP_showNavigationDropdowns;B.showMonthDropdown=CP_showMonthDropdown;B.showYearNavigationInput=CP_showYearNavigationInput;B.copyMonthNamesToWindow();return B}function CP_copyMonthNamesToWindow(){if(typeof (window.MONTH_NAMES)!="undefined"&&window.MONTH_NAMES!=null){window.MONTH_NAMES=new Array();for(var B=0;B<this.monthNames.length;B++){window.MONTH_NAMES[window.MONTH_NAMES.length]=this.monthNames[B]}for(var B=0;B<this.monthAbbreviations.length;B++){window.MONTH_NAMES[window.MONTH_NAMES.length]=this.monthAbbreviations[B]}}}function CP_tmpReturnFunction(F,E,G){if(window.CP_targetInput!=null){var H=new Date(F,E-1,G,0,0,0);if(window.CP_calendarObject!=null){window.CP_calendarObject.copyMonthNamesToWindow()}window.CP_targetInput.value=formatDate(H,window.CP_dateFormat);window.CP_calendarObject.dateValue=H;window.CP_targetInput.onchange()}else{alert("Use setReturnFunction() to define which function will get the clicked results!")}}function CP_tmpReturnMonthFunction(D,C){alert("Use setReturnMonthFunction() to define which function will get the clicked results!\nYou clicked: year="+D+" , month="+C)}function CP_tmpReturnQuarterFunction(D,C){alert("Use setReturnQuarterFunction() to define which function will get the clicked results!\nYou clicked: year="+D+" , quarter="+C)}function CP_tmpReturnYearFunction(B){alert("Use setReturnYearFunction() to define which function will get the clicked results!\nYou clicked: year="+B)}function CP_setReturnFunction(B){this.returnFunction=B}function CP_setReturnMonthFunction(B){this.returnMonthFunction=B}function CP_setReturnQuarterFunction(B){this.returnQuarterFunction=B}function CP_setReturnYearFunction(B){this.returnYearFunction=B}function CP_setMonthNames(){for(var B=0;B<arguments.length;B++){this.monthNames[B]=arguments[B]}this.copyMonthNamesToWindow()}function CP_setMonthAbbreviations(){for(var B=0;B<arguments.length;B++){this.monthAbbreviations[B]=arguments[B]}this.copyMonthNamesToWindow()}function CP_setDayHeaders(){for(var B=0;B<arguments.length;B++){this.dayHeaders[B]=arguments[B]}}function CP_setWeekStartDay(B){this.weekStartDay=B}function CP_showYearNavigation(){this.isShowYearNavigation=(arguments.length>0)?arguments[0]:true}function CP_setDisplayType(B){if(B!="date"&&B!="week-end"&&B!="month"&&B!="quarter"&&B!="year"){alert("Invalid display type! Must be one of: date,week-end,month,quarter,year");return false}this.displayType=B}function CP_setYearSelectStartOffset(B){this.yearSelectStartOffset=B}function CP_setDisabledWeekDays(){this.disabledWeekDays=new Object();for(var B=0;B<arguments.length;B++){this.disabledWeekDays[arguments[B]]=true}}function CP_addDisabledDates(D,C){if(arguments.length==1){C=D}if(D==null&&C==null){return }if(this.disabledDatesExpression!=""){this.disabledDatesExpression+="||"}if(D!=null){if(parseDate(D)!=null){D=parseDate(D)}D=""+D.getFullYear()+LZ(D.getMonth()+1)+LZ(D.getDate())}if(C!=null){if(parseDate(C)!=null){C=parseDate(C)}C=""+C.getFullYear()+LZ(C.getMonth()+1)+LZ(C.getDate())}if(D==null){this.disabledDatesExpression+="(ds<="+C+")"}else{if(C==null){this.disabledDatesExpression+="(ds>="+D+")"}else{this.disabledDatesExpression+="(ds>="+D+"&&ds<="+C+")"}}}function CP_addEnabledDates(D,C){this.from_year=parseInt(D.substring(0,4),10);this.from_month=parseInt(D.substring(5,7),10);this.to_year=parseInt(C.substring(0,4),10);this.to_month=parseInt(C.substring(5,7),10);D=parseDate(D);D.setDate(D.getDate()-1);C=parseDate(C);C.setDate(C.getDate()+1);D=""+D.getFullYear()+"-"+(parseInt(D.getMonth())+1)+"-"+D.getDate();C=""+C.getFullYear()+"-"+(parseInt(C.getMonth())+1)+"-"+C.getDate();this.addDisabledDates(null,D);this.addDisabledDates(C,null)}function CP_setTodayText(B){this.todayText=B}function CP_setCssPrefix(B){this.cssPrefix=B}function CP_showNavigationDropdowns(){this.isShowNavigationDropdowns=(arguments.length>0)?arguments[0]:true}function CP_showMonthDropdown(){this.isShowMonthDropdown=(arguments.length>0)?arguments[0]:true}function CP_showYearNavigationInput(){this.isShowYearNavigationInput=(arguments.length>0)?arguments[0]:true}function CP_hideCalendar(){if(document.getElementById("callink2img")!=null){document.getElementById("callink2img").style.display="block"}if(arguments.length>0){window.popupWindowObjects[arguments[0]].hidePopup()}else{this.hidePopup()}}function CP_refreshCalendar(C){var D=window.popupWindowObjects[C];if(arguments.length>1){D.populate(D.getCalendar(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]))}else{D.populate(D.getCalendar())}D.refresh()}function CP_showCalendar(D){if(arguments.length>1){if(arguments[1]==null||arguments[1]==""){this.currentDate=new Date();this.currentDate.setDate(this.currentDate.getDate()+1)}else{this.currentDate=new Date(parseDate(arguments[1]))}}else{var C=new Date();if(this.currentDate==null||this.currentDate<=C){this.currentDate=new Date();this.currentDate.setDate(this.currentDate.getDate()+1)}}this.populate(this.getCalendar());this.showPopup(D)}function CP_select(I,F,G){var J=(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(I.type!="text"&&I.type!="hidden"&&I.type!="textarea"){alert("calendar.select: Input object passed is not a valid form input object");window.CP_targetInput=null;return }if(I.disabled){return }window.CP_targetInput=I;window.CP_calendarObject=this;this.currentDate=null;var H=0;if(J!=null){H=getDateFromFormat(J,G)}else{if(I.value!=""){H=getDateFromFormat(I.value,G)}}if(J!=null||I.value!=""){if(H==0){this.currentDate=null}else{this.currentDate=new Date(H)}}window.CP_dateFormat=G;this.showCalendar(F);if(window.hideSensitiveFields){hideSensitiveFieldsById(F.replace("link","pos"))}}function getCalendarStyles(){var C="";var D="";if(this!=null&&typeof (this.cssPrefix)!="undefined"&&this.cssPrefix!=null&&this.cssPrefix!=""){D=this.cssPrefix}C+="<STYLE>\n";C+="."+D+"cpYearNavigation,."+D+"cpMonthNavigation { background-color:#C0C0C0; text-align:center; vertical-align:center; text-decoration:none; color:#000000; font-weight:bold; }\n";C+="."+D+"cpDayColumnHeader, ."+D+"cpYearNavigation,."+D+"cpMonthNavigation,."+D+"cpCurrentMonthDate,."+D+"cpCurrentMonthDateDisabled,."+D+"cpOtherMonthDate,."+D+"cpOtherMonthDateDisabled,."+D+"cpCurrentDate,."+D+"cpCurrentDateDisabled,."+D+"cpTodayText,."+D+"cpTodayTextDisabled,."+D+"cpText { font-family:arial; font-size:8pt; }\n";C+="TD."+D+"cpDayColumnHeader { text-align:right; border:solid thin #C0C0C0;border-width:0px 0px 1px 0px; }\n";C+="."+D+"cpCurrentMonthDate, ."+D+"cpOtherMonthDate, ."+D+"cpCurrentDate  { text-align:right; text-decoration:none; }\n";C+="."+D+"cpCurrentMonthDateDisabled, ."+D+"cpOtherMonthDateDisabled, ."+D+"cpCurrentDateDisabled { color:#D0D0D0; text-align:right; text-decoration:line-through; }\n";C+="."+D+"cpCurrentMonthDate, .cpCurrentDate { color:#000000; }\n";C+="."+D+"cpOtherMonthDate { color:#808080; }\n";C+="TD."+D+"cpCurrentDate { color:white; background-color: #C0C0C0; border-width:1px; border:solid thin #800000; }\n";C+="TD."+D+"cpCurrentDateDisabled { border-width:1px; border:solid thin #FFAAAA; }\n";C+="TD."+D+"cpTodayText, TD."+D+"cpTodayTextDisabled { border:solid thin #C0C0C0; border-width:1px 0px 0px 0px;}\n";C+="A."+D+"cpTodayText, SPAN."+D+"cpTodayTextDisabled { height:20px; }\n";C+="A."+D+"cpTodayText { color:black; }\n";C+="."+D+"cpTodayTextDisabled { color:#D0D0D0; }\n";C+="."+D+"cpBorder { border:solid thin #808080; }\n";C+="."+D+"cpBorder { border:0; }\n";C+="</STYLE>\n";return C}function CP_getCalendar(){var now=new Date();if(this.type=="WINDOW"){var windowref="window.opener."}else{var windowref=""}var result="";if(this.type=="WINDOW"){result+="<HTML><HEAD><TITLE>Calendar</TITLE>"+this.getStyles()+"</HEAD><BODY MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 RIGHTMARGIN=0 LEFTMARGIN=0>\n";result+="<CENTER><TABLE WIDTH=100% BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>\n"}else{result+='<TABLE CLASS="'+this.cssPrefix+'cpBorder" WIDTH=160 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>\n';result+="<TR><TD ALIGN=CENTER>\n";result+="<CENTER>\n"}if(this.displayType=="date"||this.displayType=="week-end"){if(this.currentDate==null){this.currentDate=now}if(arguments.length>0){var month=arguments[0]}else{var month=this.currentDate.getMonth()+1}if(arguments.length>1&&arguments[1]>0&&arguments[1]-0==arguments[1]){var year=arguments[1]}else{var year=this.currentDate.getFullYear()}var daysinmonth=new Array(0,31,28,31,30,31,30,31,31,30,31,30,31);if(((year%4==0)&&(year%100!=0))||(year%400==0)){daysinmonth[2]=29}var current_month=new Date(year,month-1,1);var display_year=year;var display_month=month;var display_date=1;var weekday=current_month.getDay();var offset=0;offset=(weekday>=this.weekStartDay)?weekday-this.weekStartDay:7-this.weekStartDay+weekday;if(offset>0){display_month--;if(display_month<1){display_month=12;display_year--}display_date=daysinmonth[display_month]-offset+1}var next_month=month+1;var next_month_year=year;if(next_month>12){next_month=1;next_month_year++}var last_month=month-1;var last_month_year=year;if(last_month<1){last_month=12;last_month_year--}var date_class;if(this.type!="WINDOW"){result+="<TABLE WIDTH=200 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>"}result+="<TR>\n";var refresh=windowref+"CP_refreshCalendar";var refreshLink="javascript:"+refresh;if(this.isShowMonthDropdown){if(!this.from_year){start=new Date();start.setDate(start.getDate());this.from_year=start.getFullYear();this.from_month=parseInt(start.getMonth())+1;end=new Date(start.getFullYear(),start.getMonth()+18,start.getDate());start=""+start.getFullYear()+"-"+(parseInt(start.getMonth())+1)+"-"+start.getDate();this.addDisabledDates(null,start);this.to_year=end.getFullYear();this.to_month=parseInt(end.getMonth())+1;end=""+end.getFullYear()+"-"+(parseInt(end.getMonth())+1)+"-"+end.getDate();this.addDisabledDates(end,null)}if((year>this.from_year)||(year==this.from_year&&month>this.from_month)){result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="23"><A CLASS="'+this.cssPrefix+'cpMonthNavigationPrevLink" HREF="'+refreshLink+"("+this.index+","+last_month+","+last_month_year+');"><span>&lt;&lt;</span>&nbsp;</A></TD>\n'}else{result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="23"><span class="'+this.cssPrefix+'cpMonthNavigationPrevLinkDisabled">&nbsp;</span></TD>\n'}result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="154"><select CLASS="'+this.cssPrefix+'cpMonthNavigationSel" name="cpMonth" onChange="'+refresh+"("+this.index+', parseInt(this.value.substring(5)), parseInt(this.value.substring(0, 4)));">';for(i=this.from_year;i<=this.to_year;i++){for(j=1;j<=12;j++){var selected=(i==year&&j==month)?"SELECTED":"";show=true;if(i==this.from_year){if(j<this.from_month){show=false}}if(show&&(i==this.to_year)){if(j>this.to_month){show=false}}if(show){result+='<option value="'+i+"|"+j+'" '+selected+">"+this.monthNames[j-1]+" "+i+"</option>"}}}result+="</select></TD>";if((year<this.to_year)||(year==this.to_year&&month<this.to_month)){result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpMonthNavigationNextLink" HREF="'+refreshLink+"("+this.index+","+next_month+","+next_month_year+');"><span>&gt;&gt;</span>&nbsp;</A></TD>\n'}else{result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="22"><span class="'+this.cssPrefix+'cpMonthNavigationNextLinkDisabled">&nbsp;</span></TD>\n'}}else{if(this.isShowNavigationDropdowns){result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="78" COLSPAN="3"><select CLASS="'+this.cssPrefix+'cpMonthNavigation" name="cpMonth" onChange="'+refresh+"("+this.index+",this.options[this.selectedIndex].value-0,"+(year-0)+');">';for(var monthCounter=1;monthCounter<=12;monthCounter++){var selected=(monthCounter==month)?"SELECTED":"";result+='<option value="'+monthCounter+'" '+selected+">"+this.monthNames[monthCounter-1]+"</option>"}result+="</select></TD>";result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="56" COLSPAN="3"><select CLASS="'+this.cssPrefix+'cpYearNavigation" name="cpYear" onChange="'+refresh+"("+this.index+","+month+',this.options[this.selectedIndex].value-0);">';for(var yearCounter=year-this.yearSelectStartOffset;yearCounter<=year+this.yearSelectStartOffset;yearCounter++){var selected=(yearCounter==year)?"SELECTED":"";result+='<option value="'+yearCounter+'" '+selected+">"+yearCounter+"</option>"}result+="</select></TD>"}else{if(this.isShowYearNavigation){result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+"("+this.index+","+last_month+","+last_month_year+');">&lt;</A></TD>';result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="58"><SPAN CLASS="'+this.cssPrefix+'cpMonthNavigation">'+this.monthNames[month-1]+"</SPAN></TD>";result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+"("+this.index+","+next_month+","+next_month_year+');">&gt;</A></TD>';result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="'+refreshLink+"("+this.index+","+month+","+(year-1)+');">&lt;</A></TD>';if(this.isShowYearNavigationInput){result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="36"><INPUT NAME="cpYear" CLASS="'+this.cssPrefix+'cpYearNavigation" SIZE="4" MAXLENGTH="4" VALUE="'+year+'" onBlur="'+refresh+"("+this.index+","+month+',this.value-0);"></TD>'}else{result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="36"><SPAN CLASS="'+this.cssPrefix+'cpYearNavigation">'+year+"</SPAN></TD>"}result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="'+refreshLink+"("+this.index+","+month+","+(year+1)+');">&gt;</A></TD>'}else{result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+"("+this.index+","+last_month+","+last_month_year+');">&lt;&lt;</A></TD>\n';result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="100"><SPAN CLASS="'+this.cssPrefix+'cpMonthNavigation">'+this.monthNames[month-1]+" "+year+"</SPAN></TD>\n";result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+"("+this.index+","+next_month+","+next_month_year+');">&gt;&gt;</A></TD>\n'}}}result+="</TR></TABLE>\n";result+="<TABLE WIDTH=200 BORDER=0 CELLSPACING=0 CELLPADDING=0 ALIGN=CENTER>\n";result+="<TR>\n";for(var j=0;j<7;j++){result+='<TD CLASS="'+this.cssPrefix+'cpDayColumnHeader" WIDTH="14%"><SPAN CLASS="'+this.cssPrefix+'cpDayColumnHeader">'+this.dayHeaders[(this.weekStartDay+j)%7]+"</TD>\n"}result+="</TR>\n";for(var row=1;row<=6;row++){result+="<TR>\n";for(var col=1;col<=7;col++){var disabled=false;if(this.disabledDatesExpression!=""){var ds=""+display_year+LZ(display_month)+LZ(display_date);if(this.disabledDatesExpression.lastIndexOf("||")==this.disabledDatesExpression.length-2){this.disabledDatesExpression+="true"}eval("disabled=("+this.disabledDatesExpression+")")}var dateClass="";if((display_month==month)&&(display_month==this.currentDate.getMonth()+1)&&(display_date==this.currentDate.getDate())&&(display_year==this.currentDate.getFullYear())){dateClass="cpCurrentDate"}else{if(display_month==month){dateClass="cpCurrentMonthDate"}else{dateClass="cpOtherMonthDate"}}if(disabled||this.disabledWeekDays[col-1]){result+='	<TD CLASS="'+this.cssPrefix+dateClass+'"><SPAN CLASS="'+this.cssPrefix+dateClass+'Disabled">'+display_date+"</SPAN></TD>\n"}else{var selected_date=display_date;var selected_month=display_month;var selected_year=display_year;if(this.displayType=="week-end"){var d=new Date(selected_year,selected_month-1,selected_date,0,0,0,0);d.setDate(d.getDate()+(7-col));selected_year=d.getYear();if(selected_year<1000){selected_year+=1900}selected_month=d.getMonth()+1;selected_date=d.getDate()}result+='	<TD CLASS="'+this.cssPrefix+dateClass+'"><A HREF="javascript:'+windowref+this.returnFunction+"("+selected_year+","+selected_month+","+selected_date+");"+windowref+"CP_hideCalendar('"+this.index+'\');" CLASS="'+this.cssPrefix+dateClass+'">'+display_date+"</A></TD>\n"}display_date++;if(display_date>daysinmonth[display_month]){display_date=1;display_month++}if(display_month>12){display_month=1;display_year++}}result+="</TR>"}var current_weekday=now.getDay()-this.weekStartDay;if(current_weekday<0){current_weekday+=7}result+="<TR>\n";result+='	<TD COLSPAN=7 ALIGN=CENTER CLASS="'+this.cssPrefix+'cpTodayText">\n';result+='		<A CLASS="'+this.cssPrefix+'cpCloseCalendar" HREF="javascript:CP_hideCalendar(\''+this.index+"');\">"+CLOSE+"</A>\n";if(this.disabledDatesExpression!=""){var ds=""+now.getFullYear()+LZ(now.getMonth()+1)+LZ(now.getDate());eval("disabled=("+this.disabledDatesExpression+")")}result+="		<BR>\n";result+="	</TD></TR></TABLE></CENTER></TD></TR></TABLE>\n"}if(this.displayType=="month"||this.displayType=="quarter"||this.displayType=="year"){if(arguments.length>0){var year=arguments[0]}else{if(this.displayType=="year"){var year=now.getFullYear()-this.yearSelectStartOffset}else{var year=now.getFullYear()}}if(this.displayType!="year"&&this.isShowYearNavigation){result+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";result+="<TR>\n";result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+"CP_refreshCalendar("+this.index+","+(year-1)+');">&lt;&lt;</A></TD>\n';result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="100">'+year+"</TD>\n";result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+"CP_refreshCalendar("+this.index+","+(year+1)+');">&gt;&gt;</A></TD>\n';result+="</TR></TABLE>\n"}}if(this.displayType=="month"){result+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n";for(var i=0;i<4;i++){result+="<TR>";for(var j=0;j<3;j++){var monthindex=((i*3)+j);result+='<TD WIDTH=33% ALIGN=CENTER><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnMonthFunction+"("+year+","+(monthindex+1)+");"+windowref+"CP_hideCalendar('"+this.index+'\');" CLASS="'+date_class+'">'+this.monthAbbreviations[monthindex]+"</A></TD>"}result+="</TR>"}result+="</TABLE></CENTER></TD></TR></TABLE>\n"}if(this.displayType=="quarter"){result+="<BR><TABLE WIDTH=120 BORDER=1 CELLSPACING=0 CELLPADDING=0 ALIGN=CENTER>\n";for(var i=0;i<2;i++){result+="<TR>";for(var j=0;j<2;j++){var quarter=((i*2)+j+1);result+='<TD WIDTH=50% ALIGN=CENTER><BR><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnQuarterFunction+"("+year+","+quarter+");"+windowref+"CP_hideCalendar('"+this.index+'\');" CLASS="'+date_class+'">Q'+quarter+"</A><BR><BR></TD>"}result+="</TR>"}result+="</TABLE></CENTER></TD></TR></TABLE>\n"}if(this.displayType=="year"){var yearColumnSize=4;result+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";result+="<TR>\n";result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="50%"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+"CP_refreshCalendar("+this.index+","+(year-(yearColumnSize*2))+');">&lt;&lt;</A></TD>\n';result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="50%"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+"CP_refreshCalendar("+this.index+","+(year+(yearColumnSize*2))+');">&gt;&gt;</A></TD>\n';result+="</TR></TABLE>\n";result+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n";for(var i=0;i<yearColumnSize;i++){for(var j=0;j<2;j++){var currentyear=year+(j*yearColumnSize)+i;result+='<TD WIDTH=50% ALIGN=CENTER><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnYearFunction+"("+currentyear+");"+windowref+"CP_hideCalendar('"+this.index+'\');" CLASS="'+date_class+'">'+currentyear+"</A></TD>"}result+="</TR>"}result+="</TABLE></CENTER></TD></TR></TABLE>\n"}if(this.type=="WINDOW"){result+="</BODY></HTML>\n"}return result}function findPosY(C){obj=document.getElementById(C);var D=0;if(obj.offsetParent){while(obj.offsetParent){D+=obj.offsetTop;obj=obj.offsetParent}}else{if(obj.y){D+=obj.y}}return D}function findPosX(C){obj=document.getElementById(C);var D=0;if(obj.offsetParent){while(obj.offsetParent){D+=obj.offsetLeft;obj=obj.offsetParent}}else{if(obj.x){D+=obj.x}}return D}function hideDiv(B){if(document.getElementById(B)){document.getElementById(B).style.display="none"}}function showDiv(B){if(document.getElementById(B)){document.getElementById(B).style.display="inline"}}hidden_arr=new Array();function hideSensitiveFieldsById(F){var H=document.getElementById(F);ww=202;hh=172;xx1=findPosX(H.id);yy1=findPosY(H.id);xx2=xx1+ww;yy2=yy1+hh;cxx=parseInt((xx1+xx2)/2);cyy=parseInt((yy1+yy2)/2);var J=document.getElementsByTagName("SELECT");for(var I=0;I<J.length;I++){var G=J[I];if(G.id){if(G.style.display!="none"){x1=findPosX(G.id);y1=findPosY(G.id);w=G.offsetWidth;h=G.offsetHeight;x2=x1+w;y2=y1+h;cx=parseInt((x1+x2)/2);cy=parseInt((y1+y2)/2);if((Math.abs(cx-cxx)<((ww+w)/2))&&(Math.abs(cy-cyy)<((hh+h)/2))){hideDiv(G.id);hidden_arr.push(G.id)}}}}}function hideSensitiveFields(B){hideSensitiveFieldsById(B)}function hideSensitiveFields(){hideSensitiveFieldsById("calpos")}function showSensitiveFields(){if(hidden_arr){for(i=0;i<hidden_arr.length;i++){showDiv(hidden_arr[i])}hidden_arr=new Array()}}function getDateId(){var B=document.getElementById("div_date_holder");if(a=B.getElementsByTagName("INPUT")){return a[0].id}else{return false}}function getEndDateId(C){var D=document.getElementById(C);if(a=D.getElementsByTagName("INPUT")){return a[0].id}else{return false}}function getEndHourId(C){var D=document.getElementById(C);if(a=D.getElementsByTagName("SELECT")){return a[0].id}else{return false}}function getEndMinId(C){var D=document.getElementById(C);if(a=D.getElementsByTagName("SELECT")){return a[1].id}else{return false}}window.onload=function(){if(document.getElementById("calpos")!=null){document.getElementById("calpos").onmouseover=function(){isCursorInWindow=true};document.getElementById("calpos").onmouseout=function(){isCursorInWindow=false}}if(document.getElementById("calpos2")!=null){document.getElementById("calpos2").onmouseover=function(){isCursorInWindow=true};document.getElementById("calpos2").onmouseout=function(){isCursorInWindow=false}}};