// Arnica JavaScript Library. (C)2011, Arnica Software Corporation (www.arnicasoftware.com)
function aaRGBColorToHex(a){a=a.replace(/rgb\(|\)/g,"").split(",");a[0]=parseInt(a[0],10).toString(16).toLowerCase();a[1]=parseInt(a[1],10).toString(16).toLowerCase();a[2]=parseInt(a[2],10).toString(16).toLowerCase();a[0]=a[0].length==1?"0"+a[0]:a[0];a[1]=a[1].length==1?"0"+a[1]:a[1];a[2]=a[2].length==1?"0"+a[2]:a[2];return"#"+a.join("")}
function aaAddWindowOnloadEvent(a){if(typeof window.addEventListener!="undefined")window.addEventListener("load",a,!1);else if(typeof window.attachEvent!="undefined")window.attachEvent("onload",a);else if(window.onload!=null){var b=window.onload;window.onload=function(c){b(c);window[a]()}}else window.onload=a}
function aaConfirmationRedirect(a,b,c,e,d){if(a!=""){if(confirm(a))if(d==!1)document.location=b;else if(a=window.open(b,c,e),!a.opener)a.opener=self}else if(d==!1)document.location=b;else if(a=window.open(b,c,e),!a.opener)a.opener=self}function aaDoNothing(){}function aaEntityDecode(a){a=a.replace(/&lt;/gi,"<");a=a.replace(/&gt;/gi,">");a=a.replace(/&quot;/gi,'"');a=a.replace(/&apos;/gi,"'");a=a.replace(/&#39;/gi,"'");return a=a.replace(/&amp;/gi,"&")}
function aaFormSubmit(a,b,c){var e,d=document.getElementsByName(a).item(0);if(arguments.length===2)d.action=b,d.target="_self";if(arguments.length===3){e=d.action;if(c===1)d.action=b,d.target="_self";if(c>=2)d.action=b,d.target="_blank"}d.submit();if(arguments.length===3&&c===3)d.target="_self",d.action=e}function aaOpenNewWindow(a,b,c){a=window.open(a,b,c);if(!a.opener)a.opener=self}
function aaProxyRedirect(a,b,c,e,d,f){switch(arguments.length){case 2:a=a+"&cParameter1="+b;break;case 3:a=a+"&cParameter1="+b+"&cParameter2="+c;break;case 4:a=a+"&cParameter1="+b+"&cParameter2="+c+"&cParameter3="+e;break;case 5:a=a+"&cParameter1="+b+"&cParameter2="+c+"&cParameter3="+e+"&cParameter4="+d;break;case 6:a=a+"&cParameter1="+b+"&cParameter2="+c+"&cParameter3="+e+"&cParameter4="+d+"&cParameter5="+f}location=a}
function aaSetCheckBoxState(a,b,c){var e,d,f,g,a=document.getElementsByName(a).item(0);e=a.elements.length;d=b.length;g=parseInt(c,10);for(f=0;f<e;f+=1)if(c=a.elements[f].name.substr(0,d),c.toUpperCase()===b.toUpperCase())a.elements[f].checked=g}function aaShowConfirmation(a,b,c){confirm(a)?eval(b):arguments.length===3&&eval(c)}
function aaShowFormSubmitConfirmation(a,b,c,e){var d=document.getElementsByName(a).item(0);if(confirm(b)){if(arguments.length===3)d.action=c,d.target="_self";if(arguments.length===4){if(e===1)d.action=c,d.target="_self";if(e>=2)d.action=c,d.target="_blank"}d.submit();if(arguments.length===4&&e===3)d.target="_self"}}
function aaShowProxyFormSubmitConfirmation(a,b,c,e,d,f,g,h){if(confirm(b)){switch(arguments.length){case 4:c=c+"&cParameter1="+e;break;case 5:c=c+"&cParameter1="+e+"&cParameter2="+d;break;case 6:c=c+"&cParameter1="+e+"&cParameter2="+d+"&cParameter3="+f;break;case 7:c=c+"&cParameter1="+e+"&cParameter2="+d+"&cParameter3="+f+"&cParameter4="+g;break;case 8:c=c+"&cParameter1="+e+"&cParameter2="+d+"&cParameter3="+f+"&cParameter4="+g+"&cParameter5="+h}var i=document.getElementsByName(a).item(0);i.action=
c;i.submit()}}function aaShowProxyRedirectConfirmation(a,b,c,e,d,f,g){if(confirm(a)){switch(arguments.length){case 3:b=b+"&cParameter1="+c;break;case 4:b=b+"&cParameter1="+c+"&cParameter2="+e;break;case 5:b=b+"&cParameter1="+c+"&cParameter2="+e+"&cParameter3="+d;break;case 6:b=b+"&cParameter1="+c+"&cParameter2="+e+"&cParameter3="+d+"&cParameter4="+f;break;case 7:b=b+"&cParameter1="+c+"&cParameter2="+e+"&cParameter3="+d+"&cParameter4="+f+"&cParameter5="+g}location=b}}
function aaStoreDropDownListSelectedText(a,b,c){eval("document."+a+"."+c+".value = document."+a+"."+b+".options[document."+a+"."+b+".selectedIndex].text")}
function aaSubmitURI(a,b,c){if(b==null||b=="")b="@GET";var e=new window.XMLHttpRequest,b="@"+b.toUpperCase()+"@";b.indexOf("@GET")!=-1&&(e.open("GET",a,!1),e.send(null));b.indexOf("@POST")!=-1&&(e.open("POST",a,!1),b.indexOf("@FORM")!=-1&&(e.setRequestHeader("Content-type","application/x-www-form-urlencoded"),e.setRequestHeader("Content-length",c.length),e.setRequestHeader("Connection","close")),e.send(c));return e.readyState==4&&e.status==200?b.indexOf("@BINARY")==-1?e.responseText:e.responseBody:
""}
function aaUpdateElement(a,b,c){var e=navigator.userAgent.toLowerCase(),e=e.indexOf("msie")!=-1&&e.indexOf("opera")==-1;switch(a){case 1:document.getElementById(b).value=c;break;case 2:opener.document.getElementById(b).value=c;break;case 3:e==!0?document.getElementById(b).innerText=c:document.getElementById(b).firstChild?document.getElementById(b).firstChild.data=c:document.getElementById(b).appendChild(document.createTextNode(c));break;case 4:e==!0?opener.document.getElementById(b).innerText=c:opener.document.getElementById(b).firstChild?
opener.document.getElementById(b).firstChild.data=c:opener.document.getElementById(b).appendChild(document.createTextNode(c))}}var aaoAutoSuggest=new aaclsAutoSuggest;
function aaclsAutoSuggest(){this.cContentServiceRequestTarget=this.cItemContainerAtributeString=this.cInputControlID="";this.cHTMLElementNameRoot="aaAutoSuggestItem";this.nAutoSuggestMode=1;this.nListitemCount=this.nCurrentPosition=0;this.bIsArrowkeyPressed=!1;this.oCurrentItem=null;var a=navigator.userAgent.toLowerCase();this.bIsInternetExplorer=a.indexOf("msie")!=-1&&a.indexOf("opera")==-1;this.aResultArray=[];this.aLinkTargetArray=[];this.aValueArray=[];this.aActionType=[];this.bIsInitialized=
!1}
aaclsAutoSuggest.prototype.ControlInit=function(){var a=document.createElement("div");a.id="aaAutoSuggestResultPanel";a.name="aaAutoSuggestResultPanel";a.style.visibility="hidden";a.style.display="none";a.style.position="absolute";this.bIsInternetExplorer?a.style.filter="alpha(finishopacity=100, style=1, opacity=100)":a.style.opacity=100;a.className="aaAutoSuggestContainer";document.body.appendChild(a);document.body.onmousedown=aaoAutoSuggest.HideResultPanel;document.body.onkeyup=aaoAutoSuggest.OnkeyUpEvent;aaoAutoSuggest.bIsInitialized=
!0};aaclsAutoSuggest.prototype.SetItemListContainerAttribute=function(a,b){aaoAutoSuggest.bIsInitialized&&a!=""&&window.document.getElementById("aaAutoSuggestResultPanel").setAttribute(a,b)};aaclsAutoSuggest.prototype.CreateXMLHTTPObject=function(){for(var a=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],b=null,c=0;c<a.length;c++){try{b=a[c]()}catch(e){continue}break}return b};
aaclsAutoSuggest.prototype.OnMouseOver=function(a){if(aaoAutoSuggest.bIsInitialized)a.className="aaAutoSuggestItemHover"};aaclsAutoSuggest.prototype.OnMouseOut=function(a){if(aaoAutoSuggest.bIsInitialized)a.className="aaAutoSuggestItem"};
aaclsAutoSuggest.prototype.ProcessItem=function(a){if(aaoAutoSuggest.bIsInitialized&&this.aActionType[a]!="0"){if(this.nAutoSuggestMode==1)this.aLinkTargetArray[a]=="1"?window.open(this.aResultArray[a]):window.location=this.aResultArray[a];if(this.nAutoSuggestMode==2)window.document.getElementById(aaoAutoSuggest.cInputControlID).value=this.aValueArray[a];window.document.getElementById("aaAutoSuggestResultPanel").style.visibility="hidden";window.document.getElementById("aaAutoSuggestResultPanel").style.display=
"none";window.document.getElementById("aaAutoSuggestResultPanel").innerHTML=""}};aaclsAutoSuggest.prototype.getOffsetTop=function(a){if(a==null)return 0;for(var b=a.offsetTop,a=a.offsetParent;a;)b+=a.offsetTop,a=a.offsetParent;return b};aaclsAutoSuggest.prototype.getOffsetLeft=function(a){if(a==null)return 0;for(var b=a.offsetLeft,a=a.offsetParent;a;)b+=a.offsetLeft,a=a.offsetParent;return b};
aaclsAutoSuggest.prototype.UpdateContent=function(a){if(aaoAutoSuggest.bIsInitialized)this.cContentServiceRequestTarget=a,this.GetContent()};
aaclsAutoSuggest.prototype.GetContent=function(){if(aaoAutoSuggest.bIsInitialized&&!aaoAutoSuggest.bIsArrowkeyPressed){if(this.cInputControlID==null)this.cInputControlID=window.event.srcElement.name;if(this.bIsInternetExplorer==void 0){var a=navigator.userAgent.toLowerCase();this.bIsInternetExplorer=a.indexOf("msie")!=-1&&a.indexOf("opera")==-1}if(this.cContentServiceRequestTarget==void 0)this.cContentServiceRequestTarget=cContentServiceRequestTarget;var a=this.cContentServiceRequestTarget+window.document.getElementById(this.cInputControlID).value,
b;if(this.bIsInternetExplorer){if(b=new ActiveXObject("Microsoft.XMLDOM"),b.async=!1,b.load(a),b.xml==""){aaoAutoSuggest.JustHideResultPanel();return}}else{b=new window.XMLHttpRequest;b.open("GET",a,!1);b.send(null);window.document.getElementById("aaAutoSuggestResultPanel").innerHTML="";if(b.responseText==""){aaoAutoSuggest.JustHideResultPanel();return}parser=new DOMParser;b=parser.parseFromString(b.responseText,"text/xml")}a=b.getElementsByTagName("row");if(a.length==0)window.document.getElementById("aaAutoSuggestResultPanel").style.visibility=
"hidden",window.document.getElementById("aaAutoSuggestResultPanel").style.display="none",window.document.getElementById("aaAutoSuggestResultPanel").innerHTML="";else{window.document.getElementById("aaAutoSuggestResultPanel").style.left=this.getOffsetLeft(window.document.getElementById(this.cInputControlID))+"px";window.document.getElementById("aaAutoSuggestResultPanel").style.top=this.getOffsetTop(window.document.getElementById(this.cInputControlID))+window.document.getElementById(this.cInputControlID).offsetHeight+
"px";window.document.getElementById("aaAutoSuggestResultPanel").style.visibility="";b=window.document.getElementById("aaAutoSuggestResultPanel").style.display="";aaoAutoSuggest.nListitemCount=a.length;for(var c,e,d,f,g,h=0;h<a.length;h++)c=a[h].getElementsByTagName("RequestTarget")[0].childNodes[0].nodeValue,e=a[h].getElementsByTagName("ItemContent")[0].childNodes[0].nodeValue,d=a[h].getElementsByTagName("IsOpenedInNewWindow")[0].childNodes[0].nodeValue,f=a[h].getElementsByTagName("ActionType")[0].childNodes[0].nodeValue,
g=a[h].getElementsByTagName("ItemValue")[0].childNodes[0].nodeValue,this.aResultArray[h]=c,this.aValueArray[h]=g,this.aLinkTargetArray[h]=d,this.aActionType[h]=f,c="",f=="1"&&(c='onclick="aaoAutoSuggest.ProcessItem('+h+');" '),b+='<div class="aaAutoSuggestItem" id="'+this.cHTMLElementNameRoot+h+'" '+this.cItemContainerAtributeString+c+' onmouseout="aaoAutoSuggest.OnMouseOut(this);" onmouseover="aaoAutoSuggest.OnMouseOver(this);" >\n',b+=e,b+="</div>\n";window.document.getElementById("aaAutoSuggestResultPanel").innerHTML=
b;aaoAutoSuggest.nCurrentPosition=0;aaoAutoSuggest.bIsArrowkeyPressed=!1}}};
aaclsAutoSuggest.prototype.IsMouseWithinDialog=function(a,b){var a=window.event?event:a,c=aaoAutoSuggest.getOffsetTop(b),e=aaoAutoSuggest.getOffsetLeft(b),d=b.offsetWidth,f=b.offsetHeight,g=0,h=0;if(!a)a=window.event;if(a.pageX||a.pageY)g=a.pageX,h=a.pageY;else if(a.clientX||a.clientY)g=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,h=a.clientY+document.body.scrollTop+document.documentElement.scrollTop;if(c<h&&c+f>h&&e<g&&e+d>g)return!0;return!1};
aaclsAutoSuggest.prototype.HideResultPanel=function(a){if(aaoAutoSuggest.bIsInitialized){var b;if(!a)a=window.event;if(a.target)b=a.target;else if(a.srcElement)b=a.srcElement;aaoAutoSuggest.cInputControlID!=""&&b.id.indexOf(aaoAutoSuggest.cInputControlID)!=-1&&window.document.getElementById(aaoAutoSuggest.cInputControlID).focus();b=window.document.getElementById("aaAutoSuggestResultPanel");if(aaoAutoSuggest.IsMouseWithinDialog(a,b))for(var c=0;c<=aaoAutoSuggest.nListitemCount-1;c++)if(c<aaoAutoSuggest.nListitemCount&&
(aaoAutoSuggest.IsMouseWithinDialog(a,window.document.getElementById(aaoAutoSuggest.cHTMLElementNameRoot+c))&&aaoAutoSuggest.aActionType[c]=="1"&&aaoAutoSuggest.ProcessItem(c),aaoAutoSuggest.IsMouseWithinDialog(a,window.document.getElementById(aaoAutoSuggest.cHTMLElementNameRoot+c))&&aaoAutoSuggest.aActionType[c]=="0"))return;b.style.visibility="hidden";b.style.display="none";b.innerHTML=""}};
aaclsAutoSuggest.prototype.JustHideResultPanel=function(){if(aaoAutoSuggest.bIsInitialized)window.document.getElementById("aaAutoSuggestResultPanel").style.visibility="hidden",window.document.getElementById("aaAutoSuggestResultPanel").style.display="none",window.document.getElementById("aaAutoSuggestResultPanel").innerHTML=""};
aaclsAutoSuggest.prototype.OnkeyUpEvent=function(a){if(aaoAutoSuggest.bIsInitialized){var b;if(window.event)b=window.event.keyCode;else if(a)b=a.which;(b==27||b==9||b==13)&&aaoAutoSuggest.HideResultPanel();if(b==38||b==40){if(aaoAutoSuggest.oCurrentItem==null)aaoAutoSuggest.oCurrentItem=document.getElementById(aaoAutoSuggest.cHTMLElementNameRoot+aaoAutoSuggest.nCurrentPosition);aaoAutoSuggest.OnMouseOut(aaoAutoSuggest.oCurrentItem)}if(b==38&&(aaoAutoSuggest.nCurrentPosition--,aaoAutoSuggest.nCurrentPosition<
0))aaoAutoSuggest.nCurrentPosition=0;if(b==40&&(aaoAutoSuggest.bIsArrowkeyPressed&&aaoAutoSuggest.nCurrentPosition++,aaoAutoSuggest.nCurrentPosition>=aaoAutoSuggest.nListitemCount))aaoAutoSuggest.nCurrentPosition=aaoAutoSuggest.nListitemCount-1;if(b==38||b==40)aaoAutoSuggest.bIsArrowkeyPressed=!0,aaoAutoSuggest.oCurrentItem=document.getElementById(aaoAutoSuggest.cHTMLElementNameRoot+aaoAutoSuggest.nCurrentPosition),aaoAutoSuggest.OnMouseOver(aaoAutoSuggest.oCurrentItem),window.document.getElementById(aaoAutoSuggest.cInputControlID).value=
aaoAutoSuggest.aValueArray[aaoAutoSuggest.nCurrentPosition]}};
function aaclsDatePicker(a){this.cImageFolderURI="";this.cControlNameRoot="aaDatePicker";this.cCSSURI="";this.cWindowFeaturesString="width=200,height=200,status=no,resizable=no,top="+(window.screen.height/2-100)+",left="+(window.screen.width/2-100);this.cWindowName="wndDatePicker";this.cDayControlName=this.cMonthControlName=this.cYearControlName=this.cPreviousMonthImage=this.cNextMonthImage=this.cPreviousYearImage=this.cNextYearImage="";this.oSelectDateWindowObject=self;this.cObjectName=a}
aaclsDatePicker.prototype.DatePickerInit=function(){this.cNextYearImage=this.cImageFolderURI+"aaNextYear.gif";this.cPreviousYearImage=this.cImageFolderURI+"aaPreviousYear.gif";this.cNextMonthImage=this.cImageFolderURI+"aaNextMonth.gif";this.cPreviousMonthImage=this.cImageFolderURI+"aaPreviousMonth.gif";this.cYearControlName=this.cControlNameRoot+"Year";this.cMonthControlName=this.cControlNameRoot+"Month";this.cDayControlName=this.cControlNameRoot+"Day";return!0};
aaclsDatePicker.prototype.GetDatePickerControl=function(a){var b="";a==null&&(a="");this.oSelectDateWindowObject=window.open("",this.cWindowName,this.cWindowFeaturesString);this.oSelectDateWindowObject.opener=self;return b=this.CreateSelectDateControlContent(a)};
aaclsDatePicker.prototype.OnMouseOver=function(a,b){a.className=["aaDPCWeekdayMouseOver","aaDPCWeekendMouseOver","aaDPCOtherMonthMouseOver","aaDPCFooterMouseOver","aaDPCFooterMouseOver","aaDPCCurrentDayMouseOver","aaDPCCurrentWeekendMouseOver"][b-1]};aaclsDatePicker.prototype.OnMouseOut=function(a,b){a.className=["aaDPCWeekday","aaDPCWeekend","aaDPCOtherMonth","aaDPCFooter","aaDPCFooter","aaDPCCurrentDay","aaDPCCurrentWeekendDay"][b-1]};
aaclsDatePicker.prototype.CreateSelectDateControlContent=function(a){var b=["Su","Mo","Tu","We","Th","Fr","Sa"],c="",c=a==""?this.GetTargetValue():a,a=c==null||c==""?new Date:this.ConvertControlValueToDate(c),c=this.GetTargetValue(),e=c==null||c==""?new Date:this.ConvertControlValueToDate(c),d=new Date(a);d.setMonth(a.getMonth()-1);var f=new Date(a);f.setYear(a.getFullYear()-1);var g=new Date(a);g.setMonth(a.getMonth()+1);var h=new Date(a);h.setYear(a.getFullYear()+1);var i=new Date(a);i.setDate(1);
i.setDate(1-(7+i.getDay()-0)%7);(new Date(g)).setDate(0);c=new String("");c+="<html>\n";c+="<head>\n";this.cCSSURI!=""&&(c+='<link type="text/css" rel="stylesheet" href="'+this.cCSSURI+'" />\n');c+="<title>Select Date</title>\n";c+="</head>\n";c+="<body>\n";c+='<table class="aaDPCContainer">\n';c+="<tr>\n";c+='<td colspan="7">\n';c+='\t<table class="aaDPCHeaderTable" style="width:100%;" >\n';c+='\t<tr style="width:100%;">\n';c+='\t<td class="aaDPCNavigation" >\n';c+='\t<a href="javascript:window.opener.'+
this.cObjectName+".CreateSelectDateControlContent('"+this.ConvertDateTimeToString(f)+'\'); "><img src="'+this.cPreviousYearImage+'" width="18px" height="18px" border="0" title="Previous Year"></a>\n';c+="\t</td>\n";c+='\t<td class="aaDPCNavigation" >\n';c+='\t<a href="javascript:window.opener.'+this.cObjectName+".CreateSelectDateControlContent('"+this.ConvertDateTimeToString(d)+'\'); "><img src="'+this.cPreviousMonthImage+'" width="18px" height="18px" border="0" alt="Previous Month"></a>\n';c+="\t</td>\n";
c+='\t<td class="aaDPCCurrentMonth" align="center" >\n';c+='\t<font style="font-weight:bold;" color="white" face="tahoma, verdana" size="2" >'+["January","February","March","April","May","June","July","August","September","October","November","December"][a.getMonth()]+"<br />"+a.getFullYear()+"</font>\n";c+="\t</td>\n";c+='\t<td class="aaDPCNavigation" >\n';c+='\t<a href="javascript:window.opener.'+this.cObjectName+".CreateSelectDateControlContent('"+this.ConvertDateTimeToString(g)+'\'); ;"><img src="'+
this.cNextMonthImage+'" width="18px" height="18px" border="0" alt="Next Month"></a>\n';c+="\t</td>\n";c+='\t<td class="aaDPCNavigation" >\n';c+='\t<a href="javascript:window.opener.'+this.cObjectName+".CreateSelectDateControlContent('"+this.ConvertDateTimeToString(h)+'\'); "><img src="'+this.cNextYearImage+'" width="18px" height="18px" border="0" alt="Next Year"></a>\n';c+="\t</td>\n";c+="\t</tr>\n";c+="\t</table>\n";c+="</td>\n";c+="</tr>\n";c+="<tr>\n";d=new Date(i);for(g=f=0;g<7;g++)c+='<td class="aaDPCCaption"  align="right">'+
b[(0+g)%7]+"</td>\n";c+="</tr>\n";for(b=1;b<7;){c+="<tr>\n";for(g=0;g<7;g++)f++,c+=d.getMonth()==a.getMonth()?d.getDate()==e.getDate()&&d.getMonth()==e.getMonth()&&d.getFullYear()==e.getFullYear()?d.getDay()==0||d.getDay()==6?'\t<td id="aacd'+f+'" class="aaDPCCurrentWeekendDay" onclick="JavaScript:window.opener.'+this.cObjectName+".SetTargetValue('"+this.ConvertDateTimeToString(d)+'\'); window.close();" onmouseover="window.opener.'+this.cObjectName+'.OnMouseOver(this, 7);" onmouseout="window.opener.'+
this.cObjectName+'.OnMouseOut(this, 7);" align="right">'+d.getDate()+"</td>\n":'\t<td id="aacd'+f+'" class="aaDPCCurrentDay" onclick="JavaScript:window.opener.'+this.cObjectName+".SetTargetValue('"+this.ConvertDateTimeToString(d)+'\'); window.close();" onmouseover="window.opener.'+this.cObjectName+'.OnMouseOver(this, 6);" onmouseout="window.opener.'+this.cObjectName+'.OnMouseOut(this, 6);" align="right">'+d.getDate()+"</td>\n":d.getDay()==0||d.getDay()==6?'\t<td id="aacd'+f+'" class="aaDPCWeekend" onclick="JavaScript:window.opener.'+
this.cObjectName+".SetTargetValue('"+this.ConvertDateTimeToString(d)+'\'); window.close();" onmouseover="window.opener.'+this.cObjectName+'.OnMouseOver(this, 2);" onmouseout="window.opener.'+this.cObjectName+'.OnMouseOut(this, 2);" align="right">'+d.getDate()+"</td>\n":'\t<td id="aacd'+f+'" class="aaDPCWeekday" onclick="JavaScript:window.opener.'+this.cObjectName+".SetTargetValue('"+this.ConvertDateTimeToString(d)+'\'); window.close();" onmouseover="window.opener.'+this.cObjectName+'.OnMouseOver(this, 1);" onmouseout="window.opener.'+
this.cObjectName+'.OnMouseOut(this, 1);" align="right">'+d.getDate()+"</td>\n":'\t<td id="aacd'+f+'" class="aaDPCOtherMonth" onclick="JavaScript:window.opener.'+this.cObjectName+".SetTargetValue('"+this.ConvertDateTimeToString(d)+'\'); window.close();" onmouseover="window.opener.'+this.cObjectName+'.OnMouseOver(this, 3);" onmouseout="window.opener.'+this.cObjectName+'.OnMouseOut(this, 3);" align="right">'+d.getDate()+"</td>\n",d.setDate(d.getDate()+1);c+="</tr>\n";b++}a=new Date;b=new Date;b.setDate(b.getDate()-
1);e=new Date;e.setDate(e.getDate()+1);c+='<tr>\n<td colspan="7">\n<table class="aaDPCFooterTable">\n<tr>\n\t<td id="aacdYesterday" class="aaDPCFooter" onclick="JavaScript:window.opener.'+this.cObjectName+".SetTargetValue('"+this.ConvertDateTimeToString(b)+'\'); window.close();" onmouseover="window.opener.'+this.cObjectName+'.OnMouseOver(this, 4);" onmouseout="window.opener.'+this.cObjectName+'.OnMouseOut(this, 4);" align="left" width="33%">Yesterday</td>\n\t<td id="aacdToday"     class="aaDPCFooter" onclick="JavaScript:window.opener.'+
this.cObjectName+".SetTargetValue('"+this.ConvertDateTimeToString(a)+'\'); window.close();" onmouseover="window.opener.'+this.cObjectName+'.OnMouseOver(this, 5);" onmouseout="window.opener.'+this.cObjectName+'.OnMouseOut(this, 5);" align="center" width="34%">Today</td>\n\t<td id="aacdTomorrow"  class="aaDPCFooter" onclick="JavaScript:window.opener.'+this.cObjectName+".SetTargetValue('"+this.ConvertDateTimeToString(e)+'\'); window.close();" onmouseover="window.opener.'+this.cObjectName+'.OnMouseOver(this, 4);" onmouseout="window.opener.'+
this.cObjectName+'.OnMouseOut(this, 4);" align="right" width="33%">Tomorrow</td>\n</tr>\n</table>\n</td>\n</tr>\n</table>\n</body>\n</html>\n';this.oSelectDateWindowObject.document.write(c);this.oSelectDateWindowObject.document.close()};aaclsDatePicker.prototype.ConvertControlValueToDate=function(a){return new Date(a.substring(0,4),a.substring(4,6)-1,a.substring(6,8))};
aaclsDatePicker.prototype.ConvertDateTimeToString=function(a){return new String(a.getFullYear().toString()+""+this.padl((a.getMonth()+1).toString(),2,"0")+this.padl(a.getDate().toString(),2,"0")+"010101")};aaclsDatePicker.prototype.SetTargetValue=function(a){var b=new Date,b=this.ConvertControlValueToDate(a);document.getElementById(this.cDayControlName).value=b.getDate();document.getElementById(this.cMonthControlName).value=b.getMonth()+1;document.getElementById(this.cYearControlName).value=b.getFullYear()};
aaclsDatePicker.prototype.GetTargetValue=function(){var a=document.getElementById(this.cDayControlName).value,b=document.getElementById(this.cMonthControlName).value,c=document.getElementById(this.cYearControlName).value;if(a==null||a==""||b==null||b==""||c==null||c=="")return"";return new String(c+this.padl(b,2,"0")+this.padl(a,2,"0")+"010101")};aaclsDatePicker.prototype.padl=function(a,b,c){for(a=String(a);a.length<b;)a=c+a;return a};


