function NAVWidgetProperties(){this.objLiWidth=58;this.objMaxRecords=30;this.objExpandDisplayRecords=10;this.objNormalDisplayRecords=3;if((navigator.appVersion.indexOf("MSIE 7.")!=-1)||(navigator.appVersion.indexOf("MSIE 6.")!=-1)){this.objLiWidth=this.objLiWidth-1}this.NAVBoxPosition_NormalView=this.objLiWidth*(this.objMaxRecords-this.objNormalDisplayRecords-1);this.NAVBoxPositionFirst_NormalView=this.NAVBoxPosition_NormalView+this.objLiWidth+5;this.NAVBoxPosition_ExpandedView=this.objLiWidth*(this.objMaxRecords-this.objExpandDisplayRecords-1);this.NAVBoxPositionFirst_ExpandedView=this.NAVBoxPosition_ExpandedView+this.objLiWidth}var NAVWidget=new NAVWidgetProperties();var expandCalPos=null;var DatePicker=new Class({initialize:function(A){this.dayChars=1;this.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];this.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31];this.format="mm/dd/yyyy";this.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];this.startDay=7;this.yearOrder="desc";if(A.className=="dateTxt"||A.className=="navExportPicker"||A.className=="DatePicker"){this.yearRange=this.yearRange=document.getElementById("yearDiff").value}else{this.yearRange=this.yearRange=5}this.yearStart=(new Date().getFullYear());if(A.value!=""){if(A.className=="dateTxt"){A.then=new Date(A.getAttribute("value"));A.today=new Date()}else{A.then=new Date(A.value);A.today=new Date()}}else{A.then=A.today=new Date()}A.oldYear=A.year=A.then.getFullYear();A.oldMonth=A.month=A.then.getMonth();A.oldDay=A.then.getDate();A.nowYear=A.today.getFullYear();A.nowMonth=A.today.getMonth();A.nowDay=A.today.getDate();if(A.alt){options=Json.evaluate(A.alt)}else{options=[]}A.options={monthNames:(options.monthNames&&options.monthNames.length==12?options.monthNames:this.monthNames)||this.monthNames,daysInMonth:(options.daysInMonth&&options.daysInMonth.length==12?options.daysInMonth:this.daysInMonth)||this.daysInMonth,dayNames:(options.dayNames&&options.dayNames.length==7?options.dayNames:this.dayNames)||this.dayNames,startDay:options.startDay||this.startDay,dayChars:options.dayChars||this.dayChars,format:options.format||this.format,yearStart:options.yearStart||this.yearStart,yearRange:options.yearRange||this.yearRange,yearOrder:options.yearOrder||this.yearOrder};A.setProperties({id:A.getProperty("name"),readonly:true});A.container=false;A.calendar=false;A.interval=null;A.active=false;if(A.className=="dateTxt"){A.onclick=A.onfocus=function(B){DatePicker.prototype.create(A,B,DatePicker.prototype)}}else{A.onclick=A.onfocus=this.create.pass(A,this)}},create:function(O,T,A){if(O.calendar){return false}if(O.className=="dateTxt"){O.container=new Element("div",{"class":"dp_container",id:"dp_container"}).injectBefore($("smlNAVContainer"));if(A){var M=((window.event)?window.event.clientX+getScrollLeft():T.pageX)-10;var L=((window.event)?window.event.clientY+getScrollTop():T.pageY)-10;this.dpContainerLeft=M;this.dpContainerTop=L}if(isNavWidgetExpanded){O.container.style.left=(this.dpContainerLeft-NavExpandPos)+"px";O.container.style.top=96+"px"}else{O.container.style.left=this.dpContainerLeft+"px";O.container.style.top=this.dpContainerTop+"px"}if(detectBrowserVer()=="true"){popLayer.toggleHideSelectLists()}}else{O.container=new Element("div",{"class":"dp_container",id:"dp_container"}).injectBefore(O);if(detectBrowserVer()=="true"){popLayer.toggleHideSelectLists()}}O.container.onmouseover=O.onmouseover=function(){$clear(O.interval)};O.container.onmouseout=O.onmouseout=function(){O.interval=setInterval(function(){if(!O.active){this.remove(O)}}.bind(this),500)}.bind(this);O.calendar=new Element("div",{"class":"dp_cal",id:"dp_cal"}).injectInside(O.container);var X=new Date();if(O.month&&O.year){X.setFullYear(O.year,O.month,1)}else{if(O.className=="dateTxt"&&O.month==0){X.setFullYear(O.year,O.month,1)}else{O.month=X.getMonth();O.year=X.getFullYear();X.setDate(1)}}O.year%4==0?O.options.daysInMonth[1]=29:O.options.daysInMonth[1]=28;var J=(1-(7+X.getDay()-O.options.startDay)%7);var E=null;if(O.id){E=new Element("select",{id:"_monthSelect"})}else{E=new Element("select",{id:O.id+"_monthSelect"})}for(var R=0;R<O.options.monthNames.length;R++){E.options[R]=new Option(O.options.monthNames[R],R);if(O.month==R){E.options[R].selected=true}}var F=null;if(O.id){F=new Element("select",{id:"_yearSelect"})}else{F=new Element("select",{id:O.id+"_yearSelect"})}U=0;O.options.yearStart?O.options.yearStart:O.options.yearStart=X.getFullYear();if(O.options.yearOrder=="desc"){for(var I=O.options.yearStart;I>(O.options.yearStart-O.options.yearRange-1);I--){F.options[U]=new Option(I,I);if(O.year==I){F.options[U].selected=true}U++}}else{for(var I=O.options.yearStart;I<(O.options.yearStart+O.options.yearRange+1);I++){F.options[U]=new Option(I,I);if(O.year==I){F.options[U].selected=true}U++}}var N=new Element("img",{src:"/funds/images/pages/fund_information/ICO_cal_leftArrow.gif","class":"cal_leftArr",width:"6",height:"12"});var P=new Element("img",{src:"/funds/images/pages/fund_information/ICO_cal_rightArrow.gif","class":"cal_rightArr",width:"6",height:"12"});var K=new Element("a",{id:"cal_larrow",href:"javascript:updateCal(-1)"});N.injectInside(K);var Q=new Element("a",{id:"cal_rarrow",href:"javascript:updateCal(1)"});P.injectInside(Q);var C=document.getElementById("expandExport");calTable=new Element("table");calTableThead=new Element("thead");calSelRow=new Element("tr");calSelCell=new Element("th",{colspan:"7",valign:"middle"});K.injectInside(calSelCell);E.injectInside(calSelCell);F.injectInside(calSelCell);Q.injectInside(calSelCell);calSelCell.injectInside(calSelRow);calSelRow.injectInside(calTableThead);calTableTbody=new Element("tbody");calDayNameRow=new Element("tr");for(var U=0;U<O.options.dayNames.length;U++){calDayNameCell=new Element("th");calDayNameCell.appendText(O.options.dayNames[(O.options.startDay+U)%7].substr(0,O.options.dayChars));calDayNameCell.injectInside(calDayNameRow);makeDisableDays(calDayNameCell)}calDayNameRow.injectInside(calTableTbody);var V=false;var B=true;if(O.getAttribute("disableWeekends")!=null&&O.getAttribute("disableWeekends")=="false"){B=false}while(J<=O.options.daysInMonth[O.month]){calDayRow=new Element("tr");for(U=0;U<7;U++){if((J<=O.options.daysInMonth[O.month])&&(J>0)){if((U==0||U==6)&&B){calDayCell=new Element("td",{"class":"dp_weekEnds"}).appendText(J).injectInside(calDayRow)}else{var H=J;var D=parseInt(O.month)+1;if(H<=9){H="0"+H}if(D<=9){D="0"+D}var W=parseInt(O.year+""+D+""+H);var S=parseInt(document.getElementById("fundIncpDate").value);var G=parseInt(document.getElementById("fundCurrDate").value);if((S&&W<S)||(W>=G)){calDayCell=new Element("td",{"class":"dp_weekEnds",axis:O.year+"|"+(parseInt(O.month)+1)+"|"+J}).appendText(J).injectInside(calDayRow)}else{calDayCell=new Element("td",{"class":O.id+"_calDay",axis:O.year+"|"+(parseInt(O.month)+1)+"|"+J}).appendText(J).injectInside(calDayRow)}}}else{calDayCell=new Element("td",{"class":"dp_empty"}).appendText(" ").injectInside(calDayRow)}if((J==O.oldDay)&&(O.month==O.oldMonth)&&(O.year==O.oldYear)){calDayCell.addClass("dp_selected");V=true}if(!V&&(J==O.nowDay)&&(O.month==O.nowMonth)&&(O.year==O.nowYear)){calDayCell.addClass("dp_selected")}J++}calDayRow.injectInside(calTableTbody)}calTableThead.injectInside(calTable);calTableTbody.injectInside(calTable);calTable.injectInside(O.calendar);$$("td."+O.id+"_calDay").each(function(Y){Y.onmouseover=function(){Y.addClass("dp_roll")}.bind(this)}.bind(this));$$("td."+O.id+"_calDay").each(function(Y){Y.onmouseout=function(){Y.removeClass("dp_roll")}.bind(this)}.bind(this));$$("td."+O.id+"_calDay").each(function(Y){Y.onclick=function(){ds=Y.axis.split("|");O.value=this.formatValue(O,ds[0],ds[1],ds[2]);if(O.value!=null&&O.className=="dateTxt"){callHistNAV();callAjaxToLoadWidget(O.value,"smallNavDisplay","NAV");var a;var d=document.getElementById("smllNavParentDiv");if(d.className=="expandView"){if(null!=document.getElementById("dp_container")){var Z=document.getElementById("dp_container").style.left.split("px")[0]}if(Z!=null){if(Z>=543&&Z<601){a=1}else{if(Z>=485&&Z<543){a=0}else{if(Z>427&&Z<485){a=-1}else{if(Z>=369&&Z<427){a=-2}else{if(Z>=311&&Z<369){a=-3}else{if(Z>=253&&Z<311){a=-4}else{if(Z>=195&&Z<253){a=-5}else{if(Z>=137&&Z<195){a=-6}else{if(Z>=79&&Z<137){a=-7}else{if(Z>=21&&Z<79){a=-8}}}}}}}}}}}}var e=document.getElementById("smallNavDisplay");var c=document.getElementById("currentNum");if(null!=c){c=parseInt(c.value);if(d.className=="expandView"){c=c+a}c=-(c*NAVWidget.objLiWidth);e.style.right=c+"px"}else{e.style.right="0px"}var b=document.getElementById("liLength");if(null!=b){b=parseInt(b.value);b=-(b*NAVWidget.objLiWidth);rightEnd=b}else{rightEnd=0}document.getElementById("leftArrowLink").className="leftArrow";document.getElementById("rightArrowLink").className="rightArrow"}if(O.className!="dateTxt"){strSubmitDate(O)}this.remove(O)}.bind(this)}.bind(this));E.onblur=function(){O.active=false};E.onfocus=function(){O.active=true};E.onchange=function(){O.month=E.value;O.year=F.value;this.remove(O);this.create(O,T,false)}.bind(this);F.onblur=function(){O.active=false};F.onfocus=function(){O.active=true};F.onchange=function(){O.month=E.value;O.year=F.value;this.remove(O);this.create(O,T,false)}.bind(this)},formatValue:function(E,C,D,B){var A="";if(B<10){B="0"+B}if(D<10){D="0"+D}A=E.options.format.replace(/dd/i,B).replace(/mm/i,D).replace(/yyyy/i,C);E.month=E.oldMonth=""+(D-1)+"";E.year=E.oldYear=C;E.oldDay=B;return A},remove:function(A){$clear(A.interval);A.active=false;if(window.opera){A.container.empty()}else{if(A.container){A.container.remove()}}A.calendar=false;A.container=false;$$("select.dp_hide").removeClass("dp_hide");if(detectBrowserVer()=="true"){popLayer.toggleHideSelectLists()}}});function makeDisableDays(A){if(A.innerHTML=="S"){A.addClass("disableText")}else{A.addClass("weekDaysTxt")}}var rightEnd;function navUlPosition(E,B){var O=new Date();var G=O.getMonth()+1;var N=O.getDate();var P=O.getFullYear();if(G<=9){G="0"+G}if(N<=9){N="0"+N}var F=parseInt(""+P+""+G+""+N+"");var Q=null;var M=document.getElementById("smallNavDisplay");var D=document.getElementById("smllNavParentDiv");var C=M.style.right.split("px");var S=C[0];var H=parseInt(document.getElementById("lastLi").value);var K=parseInt(document.getElementById("firstLi").value);var I=document.getElementById("rightArrowLink");var A=document.getElementById("leftArrowLink");if(null==rightEnd){rightEnd=parseInt(document.getElementById("liLength").value);rightEnd=-(rightEnd*rightEnd)}var J=parseInt(B);if(E=="left"){I.className="rightArrow";if(D.className=="expandView"){if(S>=-NAVWidget.NAVBoxPosition_ExpandedView){S=parseInt(S)-NAVWidget.objLiWidth;M.style.right=S+"px"}else{if((S==-NAVWidget.NAVBoxPositionFirst_ExpandedView)&&K>J&&K!=J){callAjaxToLoadWidget(K,"smallNavDisplay","NAV");var R=document.getElementById("currentNum");if(null!=R){R=parseInt(R.value)-7;R=-(R*NAVWidget.objLiWidth);M.style.right=R+"px"}else{M.style.right="0px"}var L=document.getElementById("liLength");if(null!=L){L=parseInt(L.value);L=-(L*NAVWidget.objLiWidth);rightEnd=L}else{rightEnd=0}}}if((S==-NAVWidget.NAVBoxPositionFirst_ExpandedView)&&K<=J){A.className="leftArrowDisable"}}else{if((S==-NAVWidget.NAVBoxPositionFirst_NormalView)&&K>J&&K!=J){callAjaxToLoadWidget(K,"smallNavDisplay","NAV");var R=document.getElementById("currentNum");if(null!=R){R=parseInt(R.value);R=-(R*NAVWidget.objLiWidth);M.style.right=R+"px"}else{M.style.right="0px"}var L=document.getElementById("liLength");if(null!=L){L=parseInt(L.value);L=-(L*NAVWidget.objLiWidth);rightEnd=L}else{rightEnd=0}}else{if(S>=-NAVWidget.NAVBoxPosition_NormalView){S=parseInt(S)-NAVWidget.objLiWidth;M.style.right=S+"px"}}if((S==-NAVWidget.NAVBoxPositionFirst_NormalView)&&K<=J){A.className="leftArrowDisable"}}}if(E=="right"){A.className="leftArrow";if(S==rightEnd&&H<F){callAjaxToLoadWidget(H,"smallNavDisplay","NAV");var R=document.getElementById("currentNum");if(null!=R){R=parseInt(R.value);R=-(R*NAVWidget.objLiWidth);M.style.right=R+"px"}else{M.style.right="0px"}var L=document.getElementById("liLength");if(null!=L){L=parseInt(L.value);L=-(L*NAVWidget.objLiWidth);rightEnd=L}else{rightEnd=0}}else{if(S<rightEnd){S=parseInt(S)+NAVWidget.objLiWidth;M.style.right=S+"px"}}if((S==rightEnd&&H==F)||(S>rightEnd)){I.className="rightArrowDisable"}}}var isNavWidgetExpanded=false;var NavExpandPos=null;function navWidgetExapnded(){var N=document.getElementById("smallNavParentTd");var J=document.getElementById("smllNavParentDiv");var I=document.getElementById("expandIconRow");var C=document.getElementById("colapseIconRow");var L=document.getElementById("smallNavDisplay");var P=L.style.right.split("px")[0];document.getElementById("fundNamePopUp").style.display="block";N.style.width=(NAVWidget.objLiWidth*NAVWidget.objExpandDisplayRecords)+"px";var B=null;var M;isNavWidgetExpanded=true;expandCollapseLink(I,C);var E=(NAVWidget.objLiWidth*NAVWidget.objExpandDisplayRecords);var D=36;var A=(E+D);var H=(screen.height)/2+parseInt(getScrollTop())-190;var K=(parseInt(window.screen.width)-A)/2;J.style.top=H+"px";J.style.left=K+"px";NavExpandPos=K-7;J.className="expandView";if(P<-NAVWidget.NAVBoxPositionFirst_ExpandedView){M=(parseInt(P)-(-NAVWidget.NAVBoxPositionFirst_NormalView))/(NAVWidget.objLiWidth);if(null!=document.getElementById("currentLi"+M)){B=document.getElementById("currentLi"+M).value}}if(null!=B){var G=document.getElementById("fundIncpDate").value;if(parseInt(B)>parseInt(G)){callAjaxToLoadWidget(B,"smallNavDisplay","NAV");var F=document.getElementById("currentNum");if(null!=F){F=parseInt(F.value)-1;F=-(F*NAVWidget.objLiWidth);L.style.right=F+"px"}else{L.style.right="0px"}var O=document.getElementById("liLength");if(null!=O){O=parseInt(O.value);O=-(O*NAVWidget.objLiWidth);rightEnd=O}else{rightEnd=0}}else{L.style.right=-NAVWidget.NAVBoxPositionFirst_ExpandedView}}}function navWidgetColapse(){var D=document.getElementById("smallNavParentTd");var C=document.getElementById("smllNavParentDiv");var B=document.getElementById("expandIconRow");var A=document.getElementById("colapseIconRow");document.getElementById("fundNamePopUp").style.display="none";C.style.position="static";C.className="";isNavWidgetExpanded=false;D.style.width="174px";expandCollapseLink(B,A);NavExpandPos=null}function expandCollapseLink(B,C){var A=document.getElementById("exportRow");if(C.style.display=="none"){B.style.display="none";C.style.display="";A.style.display=""}else{B.style.display="";C.style.display="none";A.style.display="none"}}function exportExpand(B,F,A){var E=document.getElementById(B);var D=document.getElementById(F);var C=document.getElementById(A);if(E.style.display=="none"){E.style.display="";D.style.display="none";C.style.display=""}else{E.style.display="none";C.style.display="none";D.style.display=""}}function callAjaxToLoadWidget(B,D,C){var E;if(C=="NAV"){E="formfilter=historicalFP&fpAction="+document.getElementById("fpAction").value+"&userDate="+B+"&cusip="+document.getElementById("cusip").value+"&roleCode="+document.getElementById("roleCode").value;if(null!=document.getElementById("userActiveDate")){E=E+"&userActiveDate="+document.getElementById("userActiveDate").value}}else{E=B}var A=new JKL.ParseXML.Text(strCallUrl,E,"POST");doAfterLoadWidget(A,D)}function doAfterLoadWidget(A,B){var C=A.parse();var D=document.getElementById(B);if(D){D.innerHTML="";D.innerHTML="Loading...";D.innerHTML=C;initPage()}}function strSubmitDate(D){var A=document.getElementById("histdate");if(D.value!="MM/DD/YYYY"&&A){var B=document.getElementById("pop_layer");if(B!=null){var E=document.getElementById("pop_content");var C=getScrollTop();E.style.marginTop="200px";popLayer.show()}A.value=D.value;submitHistoricalForm()}}function showDate(C,E,B){var G=[31,28,31,30,31,30,31,31,30,31,30,31];var B=parseInt(B);var D;var F;var A=document.getElementById("histdate");if(E!="02"){D=G[C]}else{if(isLeapYear(B)){D=29}else{D=28}}F=E+"/"+D+"/"+B;if(A){A.value=F;strSubmitDate(A)}dayPerf=D;monthPerf=E}function isLeapYear(A){return(((A%4==0)&&(A%100!=0))||(A%400==0))?1:0}function onChangeOfYear(J){var E=new Date();var F=E.getMonth();var D=E.getFullYear();var K=document.getElementById("yearSelect");var G="monthTd"+parseInt(document.getElementById("activeMonthInput").value);var H=document.getElementById("activeYearInput").value;if(K){if(K.value>D){alert("Please enter current or previous year");return false}if(K.value<=D){for(var B=0;B<12;B++){var A="month"+B;var C=document.getElementById("txt"+B);var I=document.getElementById(A);if(C){C.style.display="none"}I.style.display="block";if(K.value==D&&B>=F){I.style.display="none";C.style.display=""}if(K.value==H&&I.parentNode.id==G){I.parentNode.className="activeMonth"}else{I.parentNode.className=""}}}}}function validateCalDate(pStartDate,pEndDate,pFormName){var SDate=document.getElementById(pStartDate).value;var EDate=document.getElementById(pEndDate).value;var alertReason1="End Date must be greater than or equal to  Start Date.";var alertReason2="End Date can not be less than Current Date.";var startDate=SDate.split("/");var endDate=EDate.split("/");startDate=parseInt(startDate[2]+startDate[0]+startDate[1]);endDate=parseInt(endDate[2]+endDate[0]+endDate[1]);var checkBoxFlag=true;if(pFormName=="historicalFormExport"||pFormName=="historicalform"||pFormName=="navform"){for(j=0;j<2;j++){if(eval("document."+pFormName+".downloadType["+j+"].checked")==true){checkBoxFlag=false}}}if(checkBoxFlag){alert("Please select the export type");return false}checkBoxFlag=true;if(pFormName=="historicalFormExport"||pFormName=="historicalform"){for(j=0;j<3;j++){if(eval("document."+pFormName+".calculate["+j+"].checked")==true){checkBoxFlag=false}}}if(pFormName=="navform"){checkBoxFlag=false}if(checkBoxFlag){alert("Please select the frequency");return false}if(SDate!=""&&EDate!=""&&startDate>endDate){alert(alertReason1);return false}else{if(SDate==""||SDate=="MM/DD/YYYY"){alert("Please enter Start Date");return false}else{if(EDate==""||EDate=="MM/DD/YYYY"){alert("Please enter End Date");return false}else{if(SDate!=""&&EDate!=""&&endDate>=startDate){return true}}}}return false}var toStoreDate="";var yearPerf="";var monthPerf="";var dayPerf="";var monthIndexPerf="";var dataCallDate="";var secondTimeCallDate="";var isTrue=false;function callPerfDateAjax(B){toStoreDate="";yearPerf="";monthPerf="";dayPerf="";monthIndexPerf="";dataCallDate="";var J=document.getElementById("shareClassId").value;var H=document.getElementById("perfIncpDate").value;var F=document.getElementById("cusip").value;var C=document.getElementById("currTblDate").value;var D=document.getElementById("currTblDate").value;D=D.split("-");D=D[0]+D[1]+D[2];if(isTrue){C=secondTimeCallDate}else{C}var A=C.split("-");var E=A[0]+A[1]+A[2];var I=false;if(B=="leftPerf"&&E>H){for(i=0;i<A.length;i++){if(i=="1"){if(A[i]==1){toStoreDate=A[0]-1;toStoreDate=toStoreDate+"12"}else{toStoreDate=toStoreDate+A[i]-1}}else{toStoreDate=toStoreDate+A[i]}}I=true;document.getElementById("perfRightArrow").className="rightArrow"}else{if(B=="rightPerf"&&E<D){for(i=0;i<A.length;i++){if(i=="1"){if(A[i]==12){toStoreDate=parseInt(A[0])+1;toStoreDate=toStoreDate+"01"}else{toStoreDate=parseInt(toStoreDate+A[i])+1}}else{toStoreDate=toStoreDate+A[i]}}I=true}}if(I){yearPerf=toStoreDate.charAt(0)+toStoreDate.charAt(1)+toStoreDate.charAt(2)+toStoreDate.charAt(3);monthPerf=toStoreDate.charAt(4)+toStoreDate.charAt(5);monthIndexPerf=monthPerf-1;dayPerf=toStoreDate.charAt(6)+toStoreDate.charAt(7);showDate(monthIndexPerf,monthPerf,yearPerf);dataCallDate=yearPerf+"-"+monthPerf+"-"+dayPerf;var G=yearPerf+monthPerf+dayPerf;strParameters="formfilter=histfundperfdata&fpAction=histFundPerfXmlDocsAction&xml_date="+dataCallDate+"&tfr_share_class_id="+J+"&cusip="+F;callAjaxToLoadWidget(strParameters,"monthly_container","XXX");secondTimeCallDate=dataCallDate;isTrue=true;if(G==D){document.getElementById("perfRightArrow").className="rightArrowDisable"}else{if(G<=H){document.getElementById("perfLeftArrow").className="leftArrowDisable"}else{document.getElementById("perfRightArrow").className="rightArrow"}}}}function updateCal(A){var B=document.getElementById("_monthSelect");var D=document.getElementById("_yearSelect");var C=B.selectedIndex;var F=D.selectedIndex;var E=D.options.length;if(A==1){if(C!=11){C++;B.selectedIndex=C}else{if(F!=0){F--;D.selectedIndex=F;B.selectedIndex=0}}}else{if(C!=0){C--;B.selectedIndex=C}else{if(F!=E){F++;D.selectedIndex=F;B.selectedIndex=11}}if(F==E){}}B.onchange(B)}function checkBoxValidate(cb){for(j=0;j<3;j++){if(eval("document.historicalform.calculate["+j+"].checked")==true){document.historicalform.calculate[j].checked=false;if(j==cb){document.historicalform.calculate[j].checked=true}}}}function checkBoxValidate1(cb){for(j=0;j<2;j++){if(eval("document.historicalform.downloadType["+j+"].checked")==true){document.historicalform.downloadType[j].checked=false;if(j==cb){document.historicalform.downloadType[j].checked=true}}}}function checkBoxValidate2(cb){for(j=0;j<2;j++){if(eval("document.navform.downloadType["+j+"].checked")==true){document.navform.downloadType[j].checked=false;if(j==cb){document.navform.downloadType[j].checked=true}}}}function checkBoxValidate3(cb){for(j=0;j<3;j++){if(eval("document.historicalFormExport.calculate["+j+"].checked")==true){document.historicalFormExport.calculate[j].checked=false;if(j==cb){document.historicalFormExport.calculate[j].checked=true}}}}function checkBoxValidate4(cb){for(j=0;j<2;j++){if(eval("document.historicalFormExport.downloadType["+j+"].checked")==true){document.historicalFormExport.downloadType[j].checked=false;if(j==cb){document.historicalFormExport.downloadType[j].checked=true}}}}function detectBrowserVer(){if(window.ie){var A=parseFloat(navigator.appVersion.split("MSIE")[1]);if(A<7){return"true"}else{return"false"}}};
