var CalendarPopup_curCalendar="";var CalendarPopup_curCalendarID="";var CalendarPopup_curMonthYear="";var CalendarPopup_selMonth="";var CalendarPopup_selYear="";if(navigator.appName=="Netscape"){document.captureEvents(Event.CLICK)}function CalendarPopup_Up_LostFocus(a){CalendarPopup_Up_HideNonCurrentCalendar("","")}function CalendarPopup_Up_Holiday(e,a,d,c){this.Month=e;this.Day=a;this.Year=d;this.Span=c}function CalendarPopup_Up_IsHoliday(g,a,e,f){var d=false;if(f==null){d=false}else{for(var c=0;c<f.length;c++){if(f[c].Month==(g+1)&&f[c].Day==a&&(f[c].Year==e||f[c].Span)){d=true;c=f.length}else{d=false}}}return d}function CalendarPopup_Up_findPosX(a){var c=0;if(a.offsetParent){while(a.offsetParent){c+=a.offsetLeft;a=a.offsetParent}}else{if(a.x){c+=a.x}}return c}function CalendarPopup_Up_findPosY(c){var a=0;if(c.offsetParent){while(c.offsetParent){a+=c.offsetTop;c=c.offsetParent}}else{if(c.y){a+=c.y}}return a}function CalendarPopup_Up_DisplayCalendar(calIdFlag,tbName,lblName,lblTemp,divName,myName,funcName,myFuncName,wdStyle,weStyle,omStyle,sdStyle,mhStyle,dhStyle,cdStyle,tdStyle,gttStyle,holStyle,formatNum,monthnames,daynames,fdweek,sunNum,satNum,enableHide,includeYears,lBound,uBound,btnName,locQuad,pad,postbackFunc,offsetX,offsetY,showClear,clearText,showGoToToday,goToTodayText,arrowUrl,customFunc,calWidth,visibleKey,nullText,dateArray,nextMonthImgUrl,prevMonthImgUrl,nextYearImgUrl,prevYearImgUrl){var div,tb;CalendarPopup_curCalendarID=calIdFlag;div=document.getElementById(divName);tb=document.getElementById(tbName);if(div.style.visibility!="hidden"){div.style.visibility="hidden";if(enableHide){CalendarPopup_Up_ShowHideDDL("visible")}}else{var todayDate=CalendarPopup_Up_GetDate(tbName,formatNum);eval("var stringDate = "+visibleKey+";");CalendarPopup_Up_HideNonCurrentCalendar(divName,myName);if(enableHide){CalendarPopup_Up_ShowHideDDL("hidden")}div.style.position="absolute";var obj;if(lblTemp!=""){obj=document.getElementById(lblTemp)}else{if(lblName!=""){obj=document.getElementById(lblName)}else{obj=tb}}var y=CalendarPopup_Up_findPosY(obj);var x=CalendarPopup_Up_findPosX(obj);switch(locQuad){case 1:y+=(obj.offsetHeight+1);break;case 2:x-=(div.offsetWidth-2);break;case 3:x+=(obj.offsetWidth+1);break;case 4:y-=(div.offsetHeight-1);break;default:y=CalendarPopup_Up_findPosY(document.getElementById(btnName));x=CalendarPopup_Up_findPosX(document.getElementById(btnName))-3;break}div.style.top=y+offsetY+"px";div.style.left=x+offsetX+"px";CalendarPopup_Up_DisplayCalendarByDate(tbName,lblName,divName,myName,funcName,myFuncName,stringDate,wdStyle,weStyle,omStyle,sdStyle,mhStyle,dhStyle,cdStyle,tdStyle,gttStyle,holStyle,formatNum,monthnames,daynames,fdweek,sunNum,satNum,enableHide,includeYears,lBound,uBound,pad,postbackFunc,showClear,clearText,showGoToToday,goToTodayText,arrowUrl,customFunc,calWidth,visibleKey,nullText,dateArray,nextMonthImgUrl,prevMonthImgUrl,nextYearImgUrl,prevYearImgUrl);div.style.visibility="visible"}}function CalendarPopup_Up_ChangeMonth(d,e,a){if(document.getElementById("CalendarPopup_monthname"+d).style.color=="black"){for(var c=0;c<12;c++){if(c!=d){document.getElementById("CalendarPopup_monthname"+c).style.background="white"}else{document.getElementById("CalendarPopup_monthname"+c).style.background="lightgrey"}}CalendarPopup_selMonth=d++}}function CalendarPopup_Up_ChangeYear(f,h,g,a){var d=new Date(g);var k=new Date(a);d=new Date((d.getMonth()+1)+"/1/"+d.getFullYear());for(var e=0;e<10;e++){if(e!=f){document.getElementById("CalendarPopup_yearname"+e).style.background="white"}else{document.getElementById("CalendarPopup_yearname"+e).style.background="lightgrey"}}for(var e=0;e<12;e++){var c=new Date((e+1)+"/1/"+h);if(c<d||c>k){document.getElementById("CalendarPopup_monthname"+e).style.color="gray"}else{document.getElementById("CalendarPopup_monthname"+e).style.color="black"}document.getElementById("CalendarPopup_monthname"+e).style.background="white"}var c=new Date((CalendarPopup_selMonth+1)+"/1/"+h);if(c<=d){CalendarPopup_selMonth=d.getMonth()}else{if(c>=k){CalendarPopup_selMonth=k.getMonth()}}document.getElementById("CalendarPopup_monthname"+CalendarPopup_selMonth).style.background="lightgrey";CalendarPopup_selYear=h}function CalendarPopup_Up_ChangeMonthYear(divName,funcName,isCancel){if(!isCancel){eval(funcName+"('"+(CalendarPopup_selMonth+1)+"/1/"+CalendarPopup_selYear+"');")}document.getElementById(divName).style.visibility="hidden";document.getElementById(divName).innerHTML="";document.onmousedown=CalendarPopup_Up_LostFocus}function CalendarPopup_Up_DisplayMonthYear(g,p,l,c,d,k,f,e,q,u){var h=document.getElementById(g);var r=document.getElementById(p);var t=new Date(k);var a=new Date(q);var o=new Date(u);a=new Date((a.getMonth()+1)+"/1/"+a.getFullYear());CalendarPopup_selMonth=t.getMonth();if(t<a){CalendarPopup_selMonth=a.getMonth()}else{if(t>o){CalendarPopup_selMonth=o.getMonth()}}CalendarPopup_selYear=t.getFullYear();outputString='<table style="border: black 1px solid;background: white;" border=0 cellspacing=0 cellpadding=0>';outputString=outputString+"<tr><td width=50% valign=top><table border=0 cellspacing=0 cellpadding=2>";for(var n=0;n<12;n++){if(n%2==0){outputString=outputString+"<tr>"}var v=new Date((n+1)+"/1/"+CalendarPopup_selYear);if(v>=a&&v<=o){if(n==CalendarPopup_selMonth){outputString=outputString+'<td id="CalendarPopup_monthname'+n+'" onclick="CalendarPopup_Up_ChangeMonth('+n+", '"+q+"', '"+u+'\')" align=left nowrap style="font-family:verdana; font-size:xx-small; color: black;background:lightgrey; cursor:hand;">'+d[n]+"</td>"}else{outputString=outputString+'<td id="CalendarPopup_monthname'+n+'" onclick="CalendarPopup_Up_ChangeMonth('+n+", '"+q+"', '"+u+'\')" align=left nowrap style="font-family:verdana; font-size:xx-small; color: black; cursor:hand;">'+d[n]+"</td>"}}else{outputString=outputString+'<td id="CalendarPopup_monthname'+n+'" onclick="CalendarPopup_Up_ChangeMonth('+n+", '"+n+q+"', '"+u+'\')" align=left nowrap style="font-family:verdana; font-size:xx-small; color: gray; cursor:hand;">'+d[n]+"</td>"}if(n%2!=0){outputString=outputString+"</tr>"}}outputString=outputString+"</table></td><td width=50% valign=top><table border=0 cellspacing=0 cellpadding=2 width=100%>";var m=0;for(var n=(t.getFullYear()-5);n<(t.getFullYear()+5);n++){if(m%2==0){outputString=outputString+"<tr>"}if(n>=a.getFullYear()&&n<=o.getFullYear()){if(n==t.getFullYear()){outputString=outputString+'<td id="CalendarPopup_yearname'+m+'" onclick="CalendarPopup_Up_ChangeYear('+m+", "+n+", '"+q+"', '"+u+'\')" align=left nowrap style="font-family:verdana; font-size:xx-small;color: black;background: lightgrey; cursor:hand;">'+n+"</td>"}else{outputString=outputString+'<td id="CalendarPopup_yearname'+m+'" onclick="CalendarPopup_Up_ChangeYear('+m+", "+n+", '"+q+"', '"+u+'\')" align=left nowrap style="font-family:verdana; font-size:xx-small;color: black; cursor:hand;">'+n+"</td>"}}else{outputString=outputString+'<td id="CalendarPopup_yearname'+m+'" align=left nowrap style="font-family:verdana; font-size:xx-small;color: gray; cursor:hand;">'+n+"</td>"}if(m%2!=0){outputString=outputString+"</tr>"}m++}outputString=outputString+'<tr><td align=left><a style="font-family:verdana; font-size:xx-small; color: black;" href="javascript:'+c+"((CalendarPopup_selMonth + 1) + '/"+t.getDate()+"/"+(t.getFullYear()-10)+"')\">&lt;&lt;</a></td>";outputString=outputString+'<td align=right><a style="font-family:verdana; font-size:xx-small; color: black;" href="javascript:'+c+"((CalendarPopup_selMonth + 1) + '/"+t.getDate()+"/"+(t.getFullYear()+10)+"')\">&gt;&gt;</a></td></tr>";outputString=outputString+"</table></td></tr>";outputString=outputString+"<tr><td colspan=2 align=right nowrap><input onclick=\"CalendarPopup_Up_ChangeMonthYear('"+p+"', '"+l+'\', false);" type=button value="'+f+'" style="font-family:verdana; font-size:xx-small"><input onclick="CalendarPopup_Up_ChangeMonthYear(\''+p+"', '"+l+'\', true);" type=button value="'+e+'" style="font-family:verdana; font-size:xx-small"></td></tr>';r.style.position="absolute";r.style.top=parseInt(h.style.top.replace("px",""))+2;r.style.left=parseInt(h.style.left.replace("px",""))+2;r.innerHTML=outputString;r.style.visibility="visible"}function CalendarPopup_Up_HideNonCurrentCalendar(divName,myName){if(CalendarPopup_curMonthYear!=""){document.getElementById(CalendarPopup_curMonthYear).style.visibility="hidden";document.getElementById(CalendarPopup_curMonthYear).innerHTML=""}if(CalendarPopup_curCalendar!=""){document.getElementById(CalendarPopup_curCalendar).style.visibility="hidden";document.getElementById(CalendarPopup_curCalendar).innerHTML="";if(eval(CalendarPopup_curCalendarID)==true){CalendarPopup_Up_ShowHideDDL("visible")}}if(divName!=""){CalendarPopup_curCalendar=divName}if(myName!=""){CalendarPopup_curMonthYear=myName}}function CalendarPopup_Up_GetDate(c,d){var a;if(document.getElementById(c).value!=""){var e;var f=document.getElementById(c).value.split("/");if(f.length!=3){f=document.getElementById(c).value.split(".");if(f.length!=3){f=document.getElementById(c).value.split("-")}}if(f.length==3){switch(d){case 1:e=f[0].concat("/").concat(f[1]).concat("/").concat(f[2]);break;case 2:e=f[1].concat("/").concat(f[0]).concat("/").concat(f[2]);break;case 3:e=f[1].concat("/").concat(f[2]).concat("/").concat(f[0]);break;case 4:e=f[0].concat("/").concat(f[1]).concat("/").concat(f[2]);break;case 5:e=f[1].concat("/").concat(f[0]).concat("/").concat(f[2]);break;case 6:e=f[1].concat("/").concat(f[2]).concat("/").concat(f[0]);break;case 7:e=f[0].concat("/").concat(f[1]).concat("/").concat(f[2]);break;case 8:e=f[1].concat("/").concat(f[0]).concat("/").concat(f[2]);break;case 9:e=f[1].concat("/").concat(f[2]).concat("/").concat(f[0]);break}a=new Date(e);if(a==NaN){a=new Date()}}else{a=new Date()}}else{a=new Date()}return a}function CalendarPopup_Up_ShowHideDDL(a){for(j=0;j<document.forms.length;j++){for(i=0;i<document.forms[j].elements.length;i++){if(document.forms[j].elements[i].type!=null){if(document.forms[j].elements[i].type.indexOf("select")==0){document.forms[j].elements[i].style.visibility=a}}}}}function CalendarPopup_Up_DisplayCalendarByDate(v,L,y,z,n,ai,am,U,c,q,Q,X,W,O,T,ak,af,H,N,M,D,p,g,P,r,ah,G,B,k,A,t,C,al,a,I,S,f,V,R,F,an,ac,ar){var aa=new Date();var ab=new Date(ah);var Z=new Date(G);var h=new Date(am);var u=new Date(CalendarPopup_Up_GetDate(v,H));var ad=u.getMonth();var J=u.getFullYear();var at=new Array(31,28,31,30,31,30,31,31,30,31,30,31);thisday=h.getDay();thismonth=h.getMonth();thisdate=h.getDate();thisyear=h.getFullYear();if(((thisyear%4==0)&&!(thisyear%100==0))||(thisyear%400==0)){at[1]++}var aq="";startspaces=thisdate;var Y=thismonth;var m=thisdate;var ap=thisyear;var aj=thisyear-1;var w=thisyear+1;if(Y<1){Y=12;ap=ap-1}if(thisdate>at[Y-1]){m=at[Y-1]}var ag=thismonth+2;var E=thisdate;var d=thisyear;if(ag>12){ag=1;d=d+1}if(thisdate>at[ag-1]){E=at[ag-1]}while(startspaces>7){startspaces-=7}startspaces=thisday-startspaces+1;startspaces=startspaces-D;if(startspaces<0){startspaces+=7}aq=aq+"<table";if(S>0){aq=aq+' width="'+S+'px"'}aq=aq+' style="border: black 1px solid;" border=0 cellspacing=0px cellpadding=2px>';if(r==false){if(an==""){aq=aq+"<tr "+X+"><td align=center><a "+X+' href="javascript:'+n+"('"+Y+"/"+m+"/"+ap+"')\">&lt;</a></td>"}else{aq=aq+"<tr "+X+"><td align=center><a "+X+' href="javascript:'+n+"('"+Y+"/"+m+"/"+ap+'\')"><img src="'+an+'" border=0></a></td>'}}else{if(an==""){aq=aq+"<tr "+X+"><td align=center><a "+X+' href="javascript:'+n+"('"+Y+"/"+m+"/"+ap+"')\">&lt;</a><br>"}else{aq=aq+"<tr "+X+"><td align=center><a "+X+' href="javascript:'+n+"('"+Y+"/"+m+"/"+ap+'\')"><img src="'+an+'" border=0></a><br>'}if(ar==""){aq=aq+"<a "+X+' href="javascript:'+n+"('"+(thismonth+1)+"/"+thisdate+"/"+aj+"')\">&lt;&lt;</a></td>"}else{aq=aq+"<a "+X+' href="javascript:'+n+"('"+(thismonth+1)+"/"+thisdate+"/"+aj+'\')"><img src="'+ar+'" border=0></a></td>'}}aq=aq+"<td colspan=5 nowrap align=center "+X+"><a "+X+' href="javascript:'+ai+"('"+(thismonth+1)+"/1/"+thisyear+"')\">"+N[thismonth]+" "+thisyear;if(a!=""){aq=aq+' <img src="'+a+'" border=0>'}aq=aq+"</a></td>";if(r==false){if(F==""){aq=aq+"<td align=center><a "+X+' href="javascript:'+n+"('"+ag+"/"+E+"/"+d+"')\">&gt;</a></td></tr>"}else{aq=aq+"<td align=center><a "+X+' href="javascript:'+n+"('"+ag+"/"+E+"/"+d+'\')"><img src="'+F+'" border=0></a></td></tr>'}}else{if(F==""){aq=aq+"<td align=center><a "+X+' href="javascript:'+n+"('"+ag+"/"+E+"/"+d+"')\">&gt;</a><br>"}else{aq=aq+"<td align=center><a "+X+' href="javascript:'+n+"('"+ag+"/"+E+"/"+d+'\')"><img src="'+F+'" border=0></a><br>'}if(ac==""){aq=aq+"<a "+X+' href="javascript:'+n+"('"+(thismonth+1)+"/"+thisdate+"/"+w+"')\">&gt;&gt;</a></td></tr>"}else{aq=aq+"<a "+X+' href="javascript:'+n+"('"+(thismonth+1)+"/"+thisdate+"/"+w+'\')"><img src="'+ac+'" border=0></a></td></tr>'}}aq=aq+"<tr>";aq=aq+"<td "+W+" align=center>"+M[0]+"</td>";aq=aq+"<td "+W+" align=center>"+M[1]+"</td>";aq=aq+"<td "+W+" align=center>"+M[2]+"</td>";aq=aq+"<td "+W+" align=center>"+M[3]+"</td>";aq=aq+"<td "+W+" align=center>"+M[4]+"</td>";aq=aq+"<td "+W+" align=center>"+M[5]+"</td>";aq=aq+"<td "+W+" align=center>"+M[6]+"</td>";aq=aq+"</tr>";for(s=0;s<startspaces;s++){var l,e,o;if(thismonth==0){l=at[11]-(startspaces-(s+1));e=12;o=thisyear-1}else{l=at[thismonth-1]-(startspaces-(s+1));e=thismonth;o=thisyear}var K=new Date(e+"/"+l+"/"+o);var ae=(ab-K);var ao=(K-Z);if(s==0){aq=aq+"<tr>"}if((ae>0&&ao<0)||(ao>0&&ae<0)){aq=aq+"<td align=center "+q+'">'+l+"</td>"}else{if(s!=p&&s!=g){aq=aq+"<td align=center "+q+"><a "+q+" href=\"javascript:CalendarPopup_Up_SelectDate('"+v+"','"+L+"','"+y+"','"+z+"','"+e+"/"+l+"/"+o+"', "+H+", "+P+", "+B+", '"+k+"', '"+I+"', '"+f+"')\">"+l+"</a></td>"}else{aq=aq+"<td align=center "+q+"><a "+q+" href=\"javascript:CalendarPopup_Up_SelectDate('"+v+"','"+L+"','"+y+"','"+z+"','"+e+"/"+l+"/"+o+"', "+H+", "+P+", "+B+", '"+k+"', '"+I+"', '"+f+"')\">"+l+"</a></td>"}}}count=1;while(count<=at[thismonth]){for(b=startspaces;b<7;b++){if(b==0){aq=aq+"<tr>"}if((thismonth==aa.getMonth()&&count==aa.getDate()&&thisyear==aa.getFullYear())||(count==u.getDate()&&thismonth==ad&&thisyear==J&&document.getElementById(v).value!="")){if(count==u.getDate()&&thismonth==ad&&thisyear==J&&document.getElementById(v).value!=""){aq=aq+"<td align=center "+Q+">"}else{if(CalendarPopup_Up_IsHoliday(thismonth,count,thisyear,R)){aq=aq+"<td align=center "+af+">"}else{if(thismonth==aa.getMonth()&&count==aa.getDate()&&thisyear==aa.getFullYear()){aq=aq+"<td align=center "+T+">"}}}}else{if(count<=at[thismonth]){if(CalendarPopup_Up_IsHoliday(thismonth,count,thisyear,R)){aq=aq+"<td align=center "+af+">"}else{if(b!=p&&b!=g){aq=aq+"<td align=center "+U+">"}else{aq=aq+"<td align=center "+c+">"}}}else{aq=aq+"<td align=center "+q+">"}}if(count<=at[thismonth]){var K=new Date((thismonth+1)+"/"+count+"/"+thisyear);var ae=(ab-K);var ao=(K-Z);if((thismonth==aa.getMonth()&&count==aa.getDate()&&thisyear==aa.getFullYear())||(count==u.getDate()&&thismonth==ad&&thisyear==J&&document.getElementById(v).value!="")){if(count==u.getDate()&&thismonth==ad&&thisyear==J&&document.getElementById(v).value!=""){aq=aq+"<a "+Q+" href=\"javascript:CalendarPopup_Up_SelectDate('"+v+"','"+L+"','"+y+"','"+z+"','"+(thismonth+1)+"/"+count+"/"+thisyear+"', "+H+", "+P+", "+B+", '"+k+"', '"+I+"', '"+f+"')\">"+count+"</a>"}else{if(CalendarPopup_Up_IsHoliday(thismonth,count,thisyear,R)){aq=aq+"<a "+af+" href=\"javascript:CalendarPopup_Up_SelectDate('"+v+"','"+L+"','"+y+"','"+z+"','"+(thismonth+1)+"/"+count+"/"+thisyear+"', "+H+", "+P+", "+B+", '"+k+"', '"+I+"', '"+f+"')\">"+count+"</a>"}else{if(thismonth==aa.getMonth()&&count==aa.getDate()&&thisyear==aa.getFullYear()){aq=aq+"<a "+T+" href=\"javascript:CalendarPopup_Up_SelectDate('"+v+"','"+L+"','"+y+"','"+z+"','"+(thismonth+1)+"/"+count+"/"+thisyear+"', "+H+", "+P+", "+B+", '"+k+"', '"+I+"', '"+f+"')\">"+count+"</a>"}}}}else{if(CalendarPopup_Up_IsHoliday(thismonth,count,thisyear,R)){aq=aq+"<a "+af+" href=\"javascript:CalendarPopup_Up_SelectDate('"+v+"','"+L+"','"+y+"','"+z+"','"+(thismonth+1)+"/"+count+"/"+thisyear+"', "+H+", "+P+", "+B+", '"+k+"', '"+I+"', '"+f+"')\">"+count+"</a>"}else{if(b!=p&&b!=g&&count!=thisdate){aq=aq+"<a "+U+" href=\"javascript:CalendarPopup_Up_SelectDate('"+v+"','"+L+"','"+y+"','"+z+"','"+(thismonth+1)+"/"+count+"/"+thisyear+"', "+H+", "+P+", "+B+", '"+k+"', '"+I+"', '"+f+"')\">"+count+"</a>"}else{if(b!=p&&b!=g){aq=aq+"<a "+U+" href=\"javascript:CalendarPopup_Up_SelectDate('"+v+"','"+L+"','"+y+"','"+z+"','"+(thismonth+1)+"/"+count+"/"+thisyear+"', "+H+", "+P+", "+B+", '"+k+"', '"+I+"', '"+f+"')\">"+count+"</a>"}else{aq=aq+"<a "+c+" href=\"javascript:CalendarPopup_Up_SelectDate('"+v+"','"+L+"','"+y+"','"+z+"','"+(thismonth+1)+"/"+count+"/"+thisyear+"', "+H+", "+P+", "+B+", '"+k+"', '"+I+"', '"+f+"')\">"+count+"</a>"}}}}}else{var e,o;if(thismonth==11){e=1;o=thisyear+1}else{e=thismonth+2;o=thisyear}var K=new Date(e+"/"+(count-at[thismonth])+"/"+o);var ae=(ab-K);var ao=(K-Z);aq=aq+"<a "+q+" href=\"javascript:CalendarPopup_Up_SelectDate('"+v+"','"+L+"','"+y+"','"+z+"','"+e+"/"+(count-at[thismonth])+"/"+o+"', "+H+", "+P+", "+B+", '"+k+"', '"+I+"', '"+f+"')\">"+(count-at[thismonth])+"</a>"}aq=aq+"</td>";count++}aq=aq+"</tr>";startspaces=0}if(C){var x=(aa.getMonth()+1)+"/"+aa.getDate()+"/"+aa.getFullYear();aq=aq+"<tr><td "+ak+' colspan="7" align="center">'+al+" <a "+ak+" href=\"javascript:CalendarPopup_Up_SelectDate('"+v+"','"+L+"','"+y+"','"+z+"','"+x+"', "+H+", "+P+", "+B+", '"+k+"', '"+I+"', '"+f+"')\">"+CalendarPopup_Up_DetermineDate(x,H,B)+"</a>"}if(A){aq=aq+"<tr><td "+O+' colspan="7" align="center"><a '+O+" href=\"javascript:CalendarPopup_Up_ClearDate('"+v+"','"+L+"','"+y+"', '"+z+"', "+P+", '"+k+"', '"+I+"', '"+f+"', '"+V+"');\">"+t+"</a></td></tr>"}aq=aq+"</table>";document.getElementById(y).innerHTML=aq}function CalendarPopup_Up_DetermineDate(d,a,e){var f=d.split("/");if(f.length!=3){f=document.getElementById(tbName).value.split(".");if(f.length!=3){f=document.getElementById(tbName).value.split("-")}}if(e){if(parseInt(f[0])<10&&f[0].length==1){f[0]="0"+f[0]}if(parseInt(f[1])<10&&f[1].length==1){f[1]="0"+f[1]}if(parseInt(f[2])<10&&f[2].length==1){f[2]="0"+f[2]}}var c;switch(a){case 1:c=f[0].concat("/").concat(f[1]).concat("/").concat(f[2]);break;case 2:c=f[1].concat("/").concat(f[0]).concat("/").concat(f[2]);break;case 3:c=f[2].concat("/").concat(f[0]).concat("/").concat(f[1]);break;case 4:c=f[0].concat(".").concat(f[1]).concat(".").concat(f[2]);break;case 5:c=f[1].concat(".").concat(f[0]).concat(".").concat(f[2]);break;case 6:c=f[2].concat(".").concat(f[0]).concat(".").concat(f[1]);break;case 7:c=f[0].concat("-").concat(f[1]).concat("-").concat(f[2]);break;case 8:c=f[1].concat("-").concat(f[0]).concat("-").concat(f[2]);break;case 9:c=f[2].concat("-").concat(f[0]).concat("-").concat(f[1]);break}return c}function CalendarPopup_Up_SelectDate(tbName,lblName,divName,myName,theDate,formatNum,enableHide,pad,postbackFunc,customFunc,visibleKey){document.getElementById(tbName).value=CalendarPopup_Up_DetermineDate(theDate,formatNum,pad);if(lblName!=""){document.getElementById(lblName).innerHTML=CalendarPopup_Up_DetermineDate(theDate,formatNum,pad)}document.getElementById(divName).style.visibility="hidden";document.getElementById(myName).style.visibility="hidden";if(enableHide){CalendarPopup_Up_ShowHideDDL("visible")}eval(postbackFunc+"();");if(customFunc!=""){eval(customFunc+"('"+theDate+"', '"+tbName+"');")}eval(visibleKey+' = "'+theDate+'";')}function CalendarPopup_Up_ClearDate(tbName,lblName,divName,myName,enableHide,postbackFunc,customFunc,visibleKey,nullText){var todayDate=new Date();document.getElementById(tbName).value="";if(lblName!=""){document.getElementById(lblName).innerHTML=nullText}document.getElementById(divName).style.visibility="hidden";document.getElementById(myName).style.visibility="hidden";if(enableHide){CalendarPopup_Up_ShowHideDDL("visible")}eval(postbackFunc+"();");if(customFunc!=""){eval(customFunc+"('', '"+tbName+"');")}eval(visibleKey+' = "'+(todayDate.getMonth()+1)+"/"+todayDate.getDate()+"/"+todayDate.getFullYear()+'";')};
