function CalendarPopup(){
var c;
if(arguments.length>0){
c=new PopupWindow(arguments[0]);
}else{
c=new PopupWindow();
c.setSize(150,175);
}
c.offsetX=-149;
c.offsetY=24;
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=false;
c.displayType="date";
c.disabledWeekDays=new Object();
c.disabledDatesExpression="";
c.yearSelectStartOffset=2;
c.currentDate=null;
c.todayText="Today";
c.cssPrefix="";
c.isShowNavigationDropdowns=false;
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(_c){
this.returnFunction=_c;
}
function CP_setReturnMonthFunction(_d){
this.returnMonthFunction=_d;
}
function CP_setReturnQuarterFunction(_e){
this.returnQuarterFunction=_e;
}
function CP_setReturnYearFunction(_f){
this.returnYearFunction=_f;
}
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(_14){
if(_14!="date"&&_14!="week-end"&&_14!="month"&&_14!="quarter"&&_14!="year"){
alert("Invalid display type! Must be one of: date,week-end,month,quarter,year");
return false;
}
this.displayType=_14;
}
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(_17,end){
if(arguments.length==1){
end=_17;
}
if(_17==null&&end==null){
return;
}
if(this.disabledDatesExpression!=""){
this.disabledDatesExpression+="||";
}
if(_17!=null){
_17=parseDate(_17);
_17=""+_17.getFullYear()+LZ(_17.getMonth()+1)+LZ(_17.getDate());
}
if(end!=null){
end=parseDate(end);
end=""+end.getFullYear()+LZ(end.getMonth()+1)+LZ(end.getDate());
}
if(_17==null){
this.disabledDatesExpression+="(ds<="+end+")";
}else{
if(end==null){
this.disabledDatesExpression+="(ds>="+_17+")";
}else{
this.disabledDatesExpression+="(ds>="+_17+"&&ds<="+end+")";
}
}
}
function CP_setTodayText(_19){
this.todayText=_19;
}
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(_1b){
var _1c=window.popupWindowObjects[_1b];
if(arguments.length>1){
_1c.populate(_1c.getCalendar(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]));
}else{
_1c.populate(_1c.getCalendar());
}
_1c.refresh();
}
function CP_showCalendar(_1d){
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(_1d);
}
function CP_select(_1e,_1f,_20){
var _21=(arguments.length>3)?arguments[3]:null;
var _22=document.getElementById(_1e);
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(_22.type!="text"&&_22.type!="hidden"&&_22.type!="textarea"){
alert("calendar.select: Input object passed is not a valid form input object");
window.CP_targetInput=null;
return;
}
if(_22.disabled){
return;
}
window.CP_targetInput=_22;
window.CP_calendarObject=this;
this.currentDate=null;
var _23=0;
if(_21!=null){
_23=getDateFromFormat(_21,_20);
}else{
if(_22.value!=""){
_23=getDateFromFormat(_22.value,_20);
}
}
if(_21!=null||_22.value!=""){
if(_23==0){
this.currentDate=null;
}else{
this.currentDate=new Date(_23);
}
}
window.CP_dateFormat=_20;
this.showCalendar(_1f);
}
function getCalendarStyles(){
var _24="";
var p="";
if(this!=null&&typeof (this.cssPrefix)!="undefined"&&this.cssPrefix!=null&&this.cssPrefix!=""){
p=this.cssPrefix;
}
_24+="<STYLE>\n";
_24+="."+p+"cpYearNavigation,."+p+"cpMonthNavigation { background-color:#C0C0C0; text-align:center; vertical-align:center; text-decoration:none; color:#000000; font-weight:bold; }\n";
_24+="."+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";
_24+="TD."+p+"cpDayColumnHeader { text-align:right; border:solid thin #C0C0C0;border-width:0px 0px 1px 0px; }\n";
_24+="."+p+"cpCurrentMonthDate, ."+p+"cpOtherMonthDate, ."+p+"cpCurrentDate  { text-align:right; text-decoration:none; }\n";
_24+="."+p+"cpCurrentMonthDateDisabled, ."+p+"cpOtherMonthDateDisabled, ."+p+"cpCurrentDateDisabled { color:#D0D0D0; text-align:right; text-decoration:line-through; }\n";
_24+="."+p+"cpCurrentMonthDate, .cpCurrentDate { color:#000000; }\n";
_24+="."+p+"cpOtherMonthDate { color:#808080; }\n";
_24+="TD."+p+"cpCurrentDate { color:white; background-color: #C0C0C0; border-width:1px; border:solid thin #800000; }\n";
_24+="TD."+p+"cpCurrentDateDisabled { border-width:1px; border:solid thin #FFAAAA; }\n";
_24+="TD."+p+"cpTodayText, TD."+p+"cpTodayTextDisabled { border:solid thin #C0C0C0; border-width:1px 0px 0px 0px;}\n";
_24+="A."+p+"cpTodayText, SPAN."+p+"cpTodayTextDisabled { height:20px; }\n";
_24+="A."+p+"cpTodayText { color:black; }\n";
_24+="."+p+"cpTodayTextDisabled { color:#D0D0D0; }\n";
_24+="."+p+"cpBorder { border:solid thin #808080; }\n";
_24+="</STYLE>\n";
return _24;
}
function CP_getCalendar(){
var now=new Date();
if(this.type=="WINDOW"){
var _27="window.opener.";
}else{
var _27="";
}
var _28="";
if(this.type=="WINDOW"){
_28+="<HTML><HEAD><TITLE>Calendar</TITLE>"+this.getStyles()+"</HEAD><BODY MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 RIGHTMARGIN=0 LEFTMARGIN=0>\n";
_28+="<CENTER><TABLE WIDTH=100% BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>\n";
}else{
_28+="<TABLE CLASS=\""+this.cssPrefix+"cpBorder\" WIDTH=152 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>\n";
_28+="<TR><TD ALIGN=CENTER>\n";
_28+="<CENTER>\n";
}
if(this.displayType=="date"||this.displayType=="week-end"){
if(this.currentDate==null){
this.currentDate=now;
}
if(arguments.length>0){
var _29=arguments[0];
}else{
var _29=this.currentDate.getMonth()+1;
}
if(arguments.length>1&&arguments[1]>0&&arguments[1]-0==arguments[1]){
var _2a=arguments[1];
}else{
var _2a=this.currentDate.getFullYear();
}
var _2b=new Array(0,31,28,31,30,31,30,31,31,30,31,30,31);
if(((_2a%4==0)&&(_2a%100!=0))||(_2a%400==0)){
_2b[2]=29;
}
var _2c=new Date(_2a,_29-1,1);
var _2d=_2a;
var _2e=_29;
var _2f=1;
var _30=_2c.getDay();
var _31=0;
_31=(_30>=this.weekStartDay)?_30-this.weekStartDay:7-this.weekStartDay+_30;
if(_31>0){
_2e--;
if(_2e<1){
_2e=12;
_2d--;
}
_2f=_2b[_2e]-_31+1;
}
var _32=_29+1;
var _33=_2a;
if(_32>12){
_32=1;
_33++;
}
var _34=_29-1;
var _35=_2a;
if(_34<1){
_34=12;
_35--;
}
var _36;
if(this.type!="WINDOW"){
_28+="<TABLE WIDTH=152 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";
}
_28+="<TR>\n";
var _37=_27+"CP_refreshCalendar";
var _38="javascript:"+_37;
if(this.isShowNavigationDropdowns){
_28+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"28\" COLSPAN=\"3\"><select CLASS=\""+this.cssPrefix+"cpMonthNavigation\" name=\"cpMonth\" onChange=\""+_37+"("+this.index+",this.options[this.selectedIndex].value-0,"+(_2a-0)+");\">";
for(var _39=1;_39<=12;_39++){
var _3a=(_39==_29)?"SELECTED":"";
_28+="<option value=\""+_39+"\" "+_3a+">"+this.monthNames[_39-1]+"</option>";
}
_28+="</select></TD>";
_28+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"10\">&nbsp;</TD>";
_28+="<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"56\" COLSPAN=\"3\"><select CLASS=\""+this.cssPrefix+"cpYearNavigation\" name=\"cpYear\" onChange=\""+_37+"("+this.index+","+_29+",this.options[this.selectedIndex].value-0);\">";
for(var _3b=_2a-this.yearSelectStartOffset;_3b<=_2a+this.yearSelectStartOffset;_3b++){
var _3a=(_3b==_2a)?"SELECTED":"";
_28+="<option value=\""+_3b+"\" "+_3a+">"+_3b+"</option>";
}
_28+="</select></TD>";
}else{
if(this.isShowYearNavigation){
_28+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"10\"><A CLASS=\""+this.cssPrefix+"cpMonthNavigation\" HREF=\""+_38+"("+this.index+","+_34+","+_35+");\">&lt;</A></TD>";
_28+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"58\"><SPAN CLASS=\""+this.cssPrefix+"cpMonthNavigation\">"+this.monthNames[_29-1]+"</SPAN></TD>";
_28+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"10\"><A CLASS=\""+this.cssPrefix+"cpMonthNavigation\" HREF=\""+_38+"("+this.index+","+_32+","+_33+");\">&gt;</A></TD>";
_28+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"10\">&nbsp;</TD>";
_28+="<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"10\"><A CLASS=\""+this.cssPrefix+"cpYearNavigation\" HREF=\""+_38+"("+this.index+","+_29+","+(_2a-1)+");\">&lt;</A></TD>";
if(this.isShowYearNavigationInput){
_28+="<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"36\"><INPUT NAME=\"cpYear\" CLASS=\""+this.cssPrefix+"cpYearNavigation\" SIZE=\"4\" MAXLENGTH=\"4\" VALUE=\""+_2a+"\" onBlur=\""+_37+"("+this.index+","+_29+",this.value-0);\"></TD>";
}else{
_28+="<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"36\"><SPAN CLASS=\""+this.cssPrefix+"cpYearNavigation\">"+_2a+"</SPAN></TD>";
}
_28+="<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"10\"><A CLASS=\""+this.cssPrefix+"cpYearNavigation\" HREF=\""+_38+"("+this.index+","+_29+","+(_2a+1)+");\">&gt;</A></TD>";
}else{
_28+="<TD  WIDTH=\"22px\"><A HREF=\""+_38+"("+this.index+","+_34+","+_35+");\">&lt;&lt;</A></TD>\n";
_28+="<TD CLASS=\""+this.cssPrefix+"cpMonthNavigation\" WIDTH=\"150px\"><SPAN CLASS=\""+this.cssPrefix+"cpMonthNavigation\">"+this.monthNames[_29-1]+" "+_2a+"</SPAN></TD>\n";
_28+="<TD WIDTH=\"22px\"><A HREF=\""+_38+"("+this.index+","+_32+","+_33+");\">&gt;&gt;</A></TD>\n";
}
}
_28+="</TR></TABLE>\n";
_28+="<TABLE WIDTH=154 BORDER=0 CELLSPACING=0 CELLPADDING=1 ALIGN=CENTER>\n";
_28+="<TR>\n";
for(var j=0;j<7;j++){
_28+="<TD CLASS=\""+this.cssPrefix+"cpDayColumnHeader\" WIDTH=\"14%\"><SPAN CLASS=\""+this.cssPrefix+"cpDayColumnHeader\">"+this.dayHeaders[(this.weekStartDay+j)%7]+"</TD>\n";
}
_28+="</TR>\n";
for(var row=1;row<=6;row++){
_28+="<TR>\n";
for(var col=1;col<=7;col++){
var _3f=false;
if(this.disabledDatesExpression!=""){
var ds=""+_2d+LZ(_2e)+LZ(_2f);
eval("disabled=("+this.disabledDatesExpression+")");
}
var _41="";
if((_2e==this.currentDate.getMonth()+1)&&(_2f==this.currentDate.getDate())&&(_2d==this.currentDate.getFullYear())){
_41="cpCurrentDate";
}else{
if(_2e==_29){
_41="cpCurrentMonthDate";
}else{
_41="cpOtherMonthDate";
}
}
if(_3f||this.disabledWeekDays[col-1]){
_28+="\t<TD CLASS=\""+this.cssPrefix+_41+"\"><SPAN CLASS=\""+this.cssPrefix+_41+"Disabled\">"+_2f+"</SPAN></TD>\n";
}else{
var _42=_2f;
var _43=_2e;
var _44=_2d;
if(this.displayType=="week-end"){
var d=new Date(_44,_43-1,_42,0,0,0,0);
d.setDate(d.getDate()+(7-col));
_44=d.getYear();
if(_44<1000){
_44+=1900;
}
_43=d.getMonth()+1;
_42=d.getDate();
}
_28+="\t<TD CLASS=\""+this.cssPrefix+_41+"\"><A HREF=\"javascript:"+_27+this.returnFunction+"("+_44+","+_43+","+_42+");"+_27+"CP_hideCalendar('"+this.index+"');\" CLASS=\""+this.cssPrefix+_41+"\">"+_2f+"</A></TD>\n";
}
_2f++;
if(_2f>_2b[_2e]){
_2f=1;
_2e++;
}
if(_2e>12){
_2e=1;
_2d++;
}
}
_28+="</TR>";
}
var _46=now.getDay()-this.weekStartDay;
if(_46<0){
_46+=7;
}
_28+="<TR>\n";
_28+="\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+")");
}
if(_3f||this.disabledWeekDays[_46+1]){
_28+="\t\t<SPAN CLASS=\""+this.cssPrefix+"cpTodayTextDisabled\">"+this.todayText+"</SPAN>\n";
}else{
_28+="\t\t<A CLASS=\""+this.cssPrefix+"cpTodayText\" HREF=\"javascript:"+_27+this.returnFunction+"('"+now.getFullYear()+"','"+(now.getMonth()+1)+"','"+now.getDate()+"');"+_27+"CP_hideCalendar('"+this.index+"');\">"+this.todayText+"</A>\n";
}
_28+="\t\t<BR>\n";
_28+="\t</TD></TR></TABLE></CENTER></TD></TR></TABLE>\n";
}
if(this.displayType=="month"||this.displayType=="quarter"||this.displayType=="year"){
if(arguments.length>0){
var _2a=arguments[0];
}else{
if(this.displayType=="year"){
var _2a=now.getFullYear()-this.yearSelectStartOffset;
}else{
var _2a=now.getFullYear();
}
}
if(this.displayType!="year"&&this.isShowYearNavigation){
_28+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";
_28+="<TR>\n";
_28+="\t<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"22\"><A CLASS=\""+this.cssPrefix+"cpYearNavigation\" HREF=\"javascript:"+_27+"CP_refreshCalendar("+this.index+","+(_2a-1)+");\">&lt;&lt;</A></TD>\n";
_28+="\t<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"100\">"+_2a+"</TD>\n";
_28+="\t<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"22\"><A CLASS=\""+this.cssPrefix+"cpYearNavigation\" HREF=\"javascript:"+_27+"CP_refreshCalendar("+this.index+","+(_2a+1)+");\">&gt;&gt;</A></TD>\n";
_28+="</TR></TABLE>\n";
}
}
if(this.displayType=="month"){
_28+="<TABLE WIDTH=144 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n";
for(var i=0;i<4;i++){
_28+="<TR>";
for(var j=0;j<3;j++){
var _48=((i*3)+j);
_28+="<TD WIDTH=33% ALIGN=CENTER><A CLASS=\""+this.cssPrefix+"cpText\" HREF=\"javascript:"+_27+this.returnMonthFunction+"("+_2a+","+(_48+1)+");"+_27+"CP_hideCalendar('"+this.index+"');\" CLASS=\""+_36+"\">"+this.monthAbbreviations[_48]+"</A></TD>";
}
_28+="</TR>";
}
_28+="</TABLE></CENTER></TD></TR></TABLE>\n";
}
if(this.displayType=="quarter"){
_28+="<BR><TABLE WIDTH=144 BORDER=1 CELLSPACING=0 CELLPADDING=0 ALIGN=CENTER>\n";
for(var i=0;i<2;i++){
_28+="<TR>";
for(var j=0;j<2;j++){
var _49=((i*2)+j+1);
_28+="<TD WIDTH=50% ALIGN=CENTER><BR><A CLASS=\""+this.cssPrefix+"cpText\" HREF=\"javascript:"+_27+this.returnQuarterFunction+"("+_2a+","+_49+");"+_27+"CP_hideCalendar('"+this.index+"');\" CLASS=\""+_36+"\">Q"+_49+"</A><BR><BR></TD>";
}
_28+="</TR>";
}
_28+="</TABLE></CENTER></TD></TR></TABLE>\n";
}
if(this.displayType=="year"){
var _4a=4;
_28+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";
_28+="<TR>\n";
_28+="\t<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"50%\"><A CLASS=\""+this.cssPrefix+"cpYearNavigation\" HREF=\"javascript:"+_27+"CP_refreshCalendar("+this.index+","+(_2a-(_4a*2))+");\">&lt;&lt;</A></TD>\n";
_28+="\t<TD CLASS=\""+this.cssPrefix+"cpYearNavigation\" WIDTH=\"50%\"><A CLASS=\""+this.cssPrefix+"cpYearNavigation\" HREF=\"javascript:"+_27+"CP_refreshCalendar("+this.index+","+(_2a+(_4a*2))+");\">&gt;&gt;</A></TD>\n";
_28+="</TR></TABLE>\n";
_28+="<TABLE WIDTH=144 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n";
for(var i=0;i<_4a;i++){
for(var j=0;j<2;j++){
var _4b=_2a+(j*_4a)+i;
_28+="<TD WIDTH=50% ALIGN=CENTER><A CLASS=\""+this.cssPrefix+"cpText\" HREF=\"javascript:"+_27+this.returnYearFunction+"("+_4b+");"+_27+"CP_hideCalendar('"+this.index+"');\" CLASS=\""+_36+"\">"+_4b+"</A></TD>";
}
_28+="</TR>";
}
_28+="</TABLE></CENTER></TD></TR></TABLE>\n";
}
if(this.type=="WINDOW"){
_28+="</BODY></HTML>\n";
}
return _28;
}

