function displayCalendarSelectBox(a,b,c,d,e,f){if(!d)calendarDisplayTime=false;else calendarDisplayTime=true;currentMonth=b.options[b.selectedIndex].value/1-1;currentYear=a.options[a.selectedIndex].value;if(d){currentHour=d.options[d.selectedIndex].value;inputHour=currentHour/1}if(e){currentMinute=e.options[e.selectedIndex].value;inputMinute=currentMinute/1}inputYear=a.options[a.selectedIndex].value;inputMonth=b.options[b.selectedIndex].value/1-1;inputDay=c.options[c.selectedIndex].value/1;if(!calendarDiv){initCalendar()}else{writeCalendarContent()}returnDateToYear=a;returnDateToMonth=b;returnDateToDay=c;returnDateToHour=d;returnDateToMinute=e;returnFormat=false;returnDateTo=false;positionCalendar(f);calendarDiv.style.visibility="visible";calendarDiv.style.display="block";if(iframeObj){iframeObj.style.display="";iframeObj.style.height=calendarDiv.offsetHeight+"px";iframeObj.style.width=calendarDiv.offsetWidth+"px";iframeObj2.style.display="";iframeObj2.style.height=calendarDiv.offsetHeight+"px";iframeObj2.style.width=calendarDiv.offsetWidth+"px"}setTimeProperties();updateYearDiv();updateMonthDiv();updateHourDiv();updateMinuteDiv()}function displayCalendar(a,b,c,d,e){if(d)calendarDisplayTime=true;else calendarDisplayTime=false;if(a.value.length>0){if(!b.match(/^[0-9]*?$/gi)){var f=a.value.split(/[^0-9]/gi);var g=new Array;g["m"]=b.indexOf("mm");if(g["m"]==-1)g["m"]=b.indexOf("m");g["d"]=b.indexOf("dd");if(g["d"]==-1)g["d"]=b.indexOf("d");g["y"]=b.indexOf("yyyy");g["h"]=b.indexOf("hh");g["i"]=b.indexOf("ii");var h=Array();h[0]=g["m"];h[1]=g["d"];h[2]=g["y"];h[3]=g["h"];h[4]=g["i"];h=h.sort(calendarSortItems);var i=-1;currentHour="00";currentMinute="00";for(var j=0;j<h.length;j++){if(h[j]==-1)continue;i++;if(h[j]==g["m"]){currentMonth=f[i]-1;continue}if(h[j]==g["y"]){currentYear=f[i];continue}if(h[j]==g["d"]){tmpDay=f[i];continue}if(h[j]==g["h"]){currentHour=f[i];continue}if(h[j]==g["i"]){currentMinute=f[i];continue}}currentMonth=currentMonth/1;tmpDay=tmpDay/1}else{var k=b.indexOf("mm");currentMonth=a.value.substr(k,2)/1-1;var l=b.indexOf("yyyy");currentYear=a.value.substr(l,4);var m=b.indexOf("dd");tmpDay=a.value.substr(m,2);var n=b.indexOf("hh");if(n>=0){tmpHour=a.value.substr(n,2);currentHour=tmpHour}else{currentHour="00"}var o=b.indexOf("ii");if(o>=0){tmpMinute=a.value.substr(o,2);currentMinute=tmpMinute}else{currentMinute="00"}}}else{var p=new Date;currentMonth=p.getMonth();currentYear=p.getFullYear();currentHour="08";currentMinute="00";tmpDay=p.getDate()}inputYear=currentYear;inputMonth=currentMonth;inputDay=tmpDay/1;if(!calendarDiv){initCalendar()}else{if(calendarDiv.style.display=="block"){closeCalendar();return false}writeCalendarContent()}returnFormat=b;returnDateTo=a;positionCalendar(c);calendarDiv.style.visibility="visible";calendarDiv.style.display="block";if(iframeObj){iframeObj.style.display="";iframeObj.style.height="140px";iframeObj.style.width="195px";iframeObj2.style.display="";iframeObj2.style.height="140px";iframeObj2.style.width="195px"}setTimeProperties();updateYearDiv();updateMonthDiv();updateMinuteDiv();updateHourDiv()}function calendarSortItems(a,b){return a/1-b/1}function setTimeProperties(){if(!calendarDisplayTime){document.getElementById("timeBar").style.display="none";document.getElementById("timeBar").style.visibility="hidden";document.getElementById("todaysDateString").style.width="100%"}else{document.getElementById("timeBar").style.display="block";document.getElementById("timeBar").style.visibility="visible";document.getElementById("hourDropDown").style.top=document.getElementById("calendar_minute_txt").parentNode.offsetHeight+calendarContentDiv.offsetHeight+document.getElementById("topBar").offsetHeight+"px";document.getElementById("minuteDropDown").style.top=document.getElementById("calendar_minute_txt").parentNode.offsetHeight+calendarContentDiv.offsetHeight+document.getElementById("topBar").offsetHeight+"px";document.getElementById("minuteDropDown").style.right="50px";document.getElementById("hourDropDown").style.right="50px";document.getElementById("todaysDateString").style.width="115px"}}function initCalendar(){if(MSIE){iframeObj=document.createElement("IFRAME");iframeObj.style.filter="alpha(opacity=0)";iframeObj.style.position="absolute";iframeObj.border="0px";iframeObj.style.border="0px";iframeObj.style.backgroundColor="#FF0000";iframeObj2=document.createElement("IFRAME");iframeObj2.style.position="absolute";iframeObj2.border="0px";iframeObj2.style.border="0px";iframeObj2.style.height="1px";iframeObj2.style.width="1px";document.body.appendChild(iframeObj2);iframeObj2.src="blank.html";iframeObj.src="blank.html";document.body.appendChild(iframeObj)}calendarDiv=document.createElement("DIV");calendarDiv.id="calendarDiv";calendarDiv.style.zIndex=1e3;slideCalendarSelectBox();document.body.appendChild(calendarDiv);writeBottomBar();writeTopBar();if(!currentYear){var a=new Date;currentMonth=a.getMonth();currentYear=a.getFullYear()}writeCalendarContent()}function positionCalendar(a){calendarDiv.style.left=getleftPos(a)+"px";calendarDiv.style.top=getTopPos(a)+"px";if(iframeObj){iframeObj.style.left=calendarDiv.style.left;iframeObj.style.top=calendarDiv.style.top;iframeObj2.style.left=calendarDiv.style.left;iframeObj2.style.top=calendarDiv.style.top}}function getleftPos(a){var b=a.offsetLeft;while((a=a.offsetParent)!=null)b+=a.offsetLeft;return b+calendar_offsetLeft}function getTopPos(a){var b=a.offsetTop+a.offsetHeight;while((a=a.offsetParent)!=null)b+=a.offsetTop;return b+calendar_offsetTop}function writeBottomBar(){var a=new Date;var b=document.createElement("DIV");b.id="bottomBar";b.style.cursor="pointer";b.className="todaysDate";var c=document.createElement("DIV");c.onclick=pickTodaysDate;c.id="todaysDateString";c.style.width=calendarDiv.offsetWidth-95+"px";var d=a.getDay();if(d==0)d=7;d--;var e=todayStringFormat;e=e.replace("[monthString]",monthArrayShort[a.getMonth()]);e=e.replace("[day]",a.getDate());e=e.replace("[year]",a.getFullYear());e=e.replace("[dayString]",dayArray[d].toLowerCase());e=e.replace("[UCFdayString]",dayArray[d]);e=e.replace("[todayString]",todayString);c.innerHTML=todayString+": "+a.getDate()+". "+monthArrayShort[a.getMonth()]+", "+a.getFullYear();c.innerHTML=e;b.appendChild(c);var f=writeTimeBar();b.appendChild(f);calendarDiv.appendChild(b)}function writeTimeBar(){var a=document.createElement("DIV");a.id="timeBar";a.className="timeBar";var b=document.createElement("DIV");b.innerHTML="Time:";var c=document.createElement("DIV");c.onmouseover=highlightSelect;c.onmouseout=highlightSelect;c.onclick=showHourDropDown;c.style.width="30px";var d=document.createElement("SPAN");d.innerHTML=currentHour;d.id="calendar_hour_txt";c.appendChild(d);a.appendChild(c);var e=document.createElement("IMG");e.src=pathToImages+"down_time.gif";c.appendChild(e);c.className="selectBoxTime";if(Opera){c.style.width="30px";e.style.cssText="float:right";e.style.position="relative";e.style.styleFloat="right"}var f=createHourDiv();f.style.left="130px";f.style.width="35px";f.id="hourDropDown";calendarDiv.appendChild(f);var g=document.createElement("DIV");g.onmouseover=highlightSelect;g.onmouseout=highlightSelect;g.onclick=showMinuteDropDown;g.style.width="30px";var d=document.createElement("SPAN");d.innerHTML=currentMinute;d.id="calendar_minute_txt";g.appendChild(d);a.appendChild(g);var e=document.createElement("IMG");e.src=pathToImages+"down_time.gif";g.appendChild(e);g.className="selectBoxTime";if(Opera){g.style.width="30px";e.style.cssText="float:right";e.style.position="relative";e.style.styleFloat="right"}var h=createMinuteDiv();h.style.left="167px";h.style.width="35px";h.id="minuteDropDown";calendarDiv.appendChild(h);return a}function getWeek(a,b,c){c=c/1;a=a/1;b=b/1+1;var d=Math.floor((14-b)/12);var e=a+4800-d;var f=b+12*d-3;var g=c+Math.floor((153*f+2)/5)+365*e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400)-32045;var h=(g+31741-g%7)%146097%36524%1461;var i=Math.floor(h/1460);var j=(h-i)%365+i;NumberOfWeek=Math.floor(j/7)+1;return NumberOfWeek}function pickDate(a,b){var c=currentMonth/1+1;if(c<10)c="0"+c;var d;if(!b&&this)d=this.innerHTML;else d=b;if(d/1<10)d="0"+d;if(returnFormat){returnFormat=returnFormat.replace("dd",d);returnFormat=returnFormat.replace("mm",c);returnFormat=returnFormat.replace("yyyy",currentYear);returnFormat=returnFormat.replace("hh",currentHour);returnFormat=returnFormat.replace("ii",currentMinute);returnFormat=returnFormat.replace("d",d/1);returnFormat=returnFormat.replace("m",c/1);returnDateTo.value=returnFormat;try{returnDateTo.onchange()}catch(a){}}else{for(var e=0;e<returnDateToYear.options.length;e++){if(returnDateToYear.options[e].value==currentYear){returnDateToYear.selectedIndex=e;break}}for(var e=0;e<returnDateToMonth.options.length;e++){if(returnDateToMonth.options[e].value==parseInt(c)){returnDateToMonth.selectedIndex=e;break}}for(var e=0;e<returnDateToDay.options.length;e++){if(returnDateToDay.options[e].value==parseInt(d)){returnDateToDay.selectedIndex=e;break}}if(calendarDisplayTime){for(var e=0;e<returnDateToHour.options.length;e++){if(returnDateToHour.options[e].value==parseInt(currentHour)){returnDateToHour.selectedIndex=e;break}}for(var e=0;e<returnDateToMinute.options.length;e++){if(returnDateToMinute.options[e].value==parseInt(currentMinute)){returnDateToMinute.selectedIndex=e;break}}}}closeCalendar()}function pickTodaysDate(){var a=new Date;currentMonth=a.getMonth();currentYear=a.getFullYear();pickDate(false,a.getDate())}function resizeIframe(){iframeObj.style.width=calendarDiv.offsetWidth+"px";iframeObj.style.height=calendarDiv.offsetHeight+"px"}function writeCalendarContent(){var a=true;if(!calendarContentDiv){calendarContentDiv=document.createElement("DIV");calendarDiv.appendChild(calendarContentDiv);a=false}currentMonth=currentMonth/1;var b=new Date;b.setFullYear(currentYear);b.setDate(1);b.setMonth(currentMonth);var c=b.getDay();if(c==0)c=7;c--;document.getElementById("calendar_year_txt").innerHTML=currentYear;document.getElementById("calendar_month_txt").innerHTML=monthArray[currentMonth];document.getElementById("calendar_hour_txt").innerHTML=currentHour;document.getElementById("calendar_minute_txt").innerHTML=currentMinute;var d=calendarContentDiv.getElementsByTagName("TABLE");if(d.length>0){calendarContentDiv.removeChild(d[0])}var e=document.createElement("TABLE");e.width="100%";e.cellSpacing="0";calendarContentDiv.appendChild(e);var f=document.createElement("TBODY");e.appendChild(f);var g=f.insertRow(-1);g.className="calendar_week_row";var h=g.insertCell(-1);h.innerHTML=weekString;h.className="calendar_week_column";h.style.backgroundColor=selectBoxRolloverBgColor;for(var i=0;i<dayArray.length;i++){var h=g.insertCell(-1);h.innerHTML=dayArray[i]}var g=f.insertRow(-1);var h=g.insertCell(-1);h.className="calendar_week_column";h.style.backgroundColor=selectBoxRolloverBgColor;var j=getWeek(currentYear,currentMonth,1);h.innerHTML=j;for(var i=0;i<c;i++){var h=g.insertCell(-1);h.innerHTML=" "}var k=c;var l=daysInMonthArray[currentMonth];if(l==28){if(isLeapYear(currentYear))l=29}for(var i=1;i<=l;i++){b.setDate(i-1);if(k>0&&k%7==0){var g=f.insertRow(-1);var h=g.insertCell(-1);h.className="calendar_week_column";var j=getWeek(currentYear,currentMonth,i);h.innerHTML=j;h.style.backgroundColor=selectBoxRolloverBgColor}var h=g.insertCell(-1);if(currentYear==inputYear&&currentMonth==inputMonth&&i==inputDay){h.className="activeDay"}h.innerHTML=i;h.onclick=pickDate;k++}if(!document.all){if(calendarContentDiv.offsetHeight)document.getElementById("topBar").style.top=calendarContentDiv.offsetHeight+document.getElementById("timeBar").offsetHeight+document.getElementById("topBar").offsetHeight-1+"px";else{document.getElementById("topBar").style.top="";document.getElementById("topBar").style.bottom="0px"}}if(iframeObj){if(!a)setTimeout("resizeIframe()",350);else setTimeout("resizeIframe()",10)}}function writeTopBar(){var a=document.createElement("DIV");a.className="topBar";a.id="topBar";calendarDiv.appendChild(a);var b=document.createElement("DIV");b.style.marginRight="1px";var c=document.createElement("IMG");c.src=pathToImages+"left.gif";c.onmouseover=highlightArrow;c.onclick=switchMonth;c.onmouseout=highlightArrow;b.appendChild(c);a.appendChild(b);if(Opera)b.style.width="16px";var d=document.createElement("DIV");d.style.marginRight="1px";var c=document.createElement("IMG");c.src=pathToImages+"right.gif";c.onclick=switchMonth;c.onmouseover=highlightArrow;c.onmouseout=highlightArrow;d.appendChild(c);if(Opera)d.style.width="16px";a.appendChild(d);var e=document.createElement("DIV");e.id="monthSelect";e.onmouseover=highlightSelect;e.onmouseout=highlightSelect;e.onclick=showMonthDropDown;var f=document.createElement("SPAN");f.innerHTML=monthArray[currentMonth];f.id="calendar_month_txt";e.appendChild(f);var c=document.createElement("IMG");c.src=pathToImages+"down.gif";c.style.position="absolute";c.style.right="0px";e.appendChild(c);e.className="selectBox";if(Opera){c.style.cssText="float:right;position:relative";c.style.position="relative";c.style.styleFloat="right"}a.appendChild(e);var g=createMonthDiv();g.style.left="37px";g.style.top=e.offsetTop+e.offsetHeight+1+"px";g.style.width="60px";g.id="monthDropDown";calendarDiv.appendChild(g);var h=document.createElement("DIV");h.onmouseover=highlightSelect;h.onmouseout=highlightSelect;h.onclick=showYearDropDown;var f=document.createElement("SPAN");f.innerHTML=currentYear;f.id="calendar_year_txt";h.appendChild(f);a.appendChild(h);var c=document.createElement("IMG");c.src=pathToImages+"down.gif";h.appendChild(c);h.className="selectBox";if(Opera){h.style.width="50px";c.style.cssText="float:right";c.style.position="relative";c.style.styleFloat="right"}var i=createYearDiv();i.style.left="113px";i.style.top=e.offsetTop+e.offsetHeight+1+"px";i.style.width="35px";i.id="yearDropDown";calendarDiv.appendChild(i);var c=document.createElement("IMG");c.src=pathToImages+"close.gif";c.style.styleFloat="right";c.onmouseover=highlightClose;c.onmouseout=highlightClose;c.onclick=closeCalendar;a.appendChild(c);if(!document.all){c.style.position="absolute";c.style.right="2px"}}function closeCalendar(){document.getElementById("yearDropDown").style.display="none";document.getElementById("monthDropDown").style.display="none";document.getElementById("hourDropDown").style.display="none";document.getElementById("minuteDropDown").style.display="none";calendarDiv.style.display="none";if(iframeObj){iframeObj.style.display="none";EIS_Hide_Frame()}if(activeSelectBoxMonth)activeSelectBoxMonth.className="";if(activeSelectBoxYear)activeSelectBoxYear.className=""}function highlightClose(){if(this.src.indexOf("over")>=0){this.src=pathToImages+"close.gif"}else{this.src=pathToImages+"close_over.gif"}}function highlightArrow(){if(this.src.indexOf("over")>=0){if(this.src.indexOf("left")>=0)this.src=pathToImages+"left.gif";if(this.src.indexOf("right")>=0)this.src=pathToImages+"right.gif"}else{if(this.src.indexOf("left")>=0)this.src=pathToImages+"left_over.gif";if(this.src.indexOf("right")>=0)this.src=pathToImages+"right_over.gif"}}function highlightSelect(){if(this.className=="selectBoxTime"){this.className="selectBoxTimeOver";this.getElementsByTagName("IMG")[0].src=pathToImages+"down_time_over.gif"}else if(this.className=="selectBoxTimeOver"){this.className="selectBoxTime";this.getElementsByTagName("IMG")[0].src=pathToImages+"down_time.gif"}if(this.className=="selectBox"){this.className="selectBoxOver";this.getElementsByTagName("IMG")[0].src=pathToImages+"down_over.gif"}else if(this.className=="selectBoxOver"){this.className="selectBox";this.getElementsByTagName("IMG")[0].src=pathToImages+"down.gif"}}function createMinuteDiv(){if(!document.getElementById("minuteDropDown")){var a=document.createElement("DIV");a.className="monthYearPicker"}else{var a=document.getElementById("minuteDropDown");var b=a.getElementsByTagName("DIV");for(var c=0;c<b.length;c++){b[c].parentNode.removeChild(b[c])}}var d=0;var e="";for(var c=d;c<60;c+=intervalSelectBox_minutes){if(c<10)e="0";else e="";var f=document.createElement("DIV");f.innerHTML=e+c;f.onmouseover=highlightMonthYear;f.onmouseout=highlightMonthYear;f.onclick=selectMinute;f.id="minuteDiv_"+e+c;f.onselectstart=cancelCalendarEvent;a.appendChild(f);if(currentYear&&currentYear==c){f.style.color=selectBoxHighlightColor;activeSelectBoxYear=f}}return a}function createHourDiv(){if(!document.getElementById("hourDropDown")){var a=document.createElement("DIV");a.className="monthYearPicker"}else{var a=document.getElementById("hourDropDown");var b=a.getElementsByTagName("DIV");for(var c=0;c<b.length;c++){b[c].parentNode.removeChild(b[c])}}if(!currentHour)currentHour=0;var d=currentHour/1;if(d>14)d=14;var e=document.createElement("DIV");e.innerHTML="  - ";e.onclick=changeSelectBoxHour;e.onmouseover=highlightMonthYear;e.onmouseout=function(){selectBoxMovementInProgress=false};e.onselectstart=cancelCalendarEvent;a.appendChild(e);for(var c=d;c<d+10;c++){var f="";if(c/1<10)f="0";var e=document.createElement("DIV");e.innerHTML=f+c;e.onmouseover=highlightMonthYear;e.onmouseout=highlightMonthYear;e.onclick=selectHour;e.id="hourDiv"+c;e.onselectstart=cancelCalendarEvent;a.appendChild(e);if(currentYear&&currentYear==c){e.style.color=selectBoxHighlightColor;activeSelectBoxYear=e}}var e=document.createElement("DIV");e.innerHTML="  + ";e.onclick=changeSelectBoxHour;e.onmouseover=highlightMonthYear;e.onmouseout=function(){selectBoxMovementInProgress=false};e.onselectstart=cancelCalendarEvent;a.appendChild(e);return a}function slideCalendarSelectBox(){if(selectBoxMovementInProgress){if(activeSelectBox.parentNode.id=="hourDropDown"){changeSelectBoxHour(false,activeSelectBox)}if(activeSelectBox.parentNode.id=="yearDropDown"){changeSelectBoxYear(false,activeSelectBox)}}setTimeout("slideCalendarSelectBox()",speedOfSelectBoxSliding)}function createYearDiv(){if(!document.getElementById("yearDropDown")){var a=document.createElement("DIV");a.className="monthYearPicker"}else{var a=document.getElementById("yearDropDown");var b=a.getElementsByTagName("DIV");for(var c=0;c<b.length;c++){b[c].parentNode.removeChild(b[c])}}var d=new Date;if(currentYear){d.setFullYear(currentYear)}var e=d.getFullYear()/1-5;var f=document.createElement("DIV");f.innerHTML="  - ";f.onclick=changeSelectBoxYear;f.onmouseover=highlightMonthYear;f.onmouseout=function(){selectBoxMovementInProgress=false};f.onselectstart=cancelCalendarEvent;a.appendChild(f);for(var c=e;c<e+10;c++){var f=document.createElement("DIV");f.innerHTML=c;f.onmouseover=highlightMonthYear;f.onmouseout=highlightMonthYear;f.onclick=selectYear;f.id="yearDiv"+c;f.onselectstart=cancelCalendarEvent;a.appendChild(f);if(currentYear&&currentYear==c){f.style.color=selectBoxHighlightColor;activeSelectBoxYear=f}}var f=document.createElement("DIV");f.innerHTML="  + ";f.onclick=changeSelectBoxYear;f.onmouseover=highlightMonthYear;f.onmouseout=function(){selectBoxMovementInProgress=false};f.onselectstart=cancelCalendarEvent;a.appendChild(f);return a}function updateMinuteDiv(){for(no=0;no<60;no+=intervalSelectBox_minutes){var a="";if(no<10)a="0";document.getElementById("minuteDiv_"+a+no).style.color=""}if(document.getElementById("minuteDiv_"+currentMinute)){document.getElementById("minuteDiv_"+currentMinute).style.color=selectBoxHighlightColor;activeSelectBoxMinute=document.getElementById("minuteDiv_"+currentMinute)}}function updateHourDiv(){var a=document.getElementById("hourDropDown");var b=a.getElementsByTagName("DIV");var c=0;if(currentHour/1-6+1<0){c=(currentHour/1-6+1)*-1}for(var d=1;d<b.length-1;d++){var e="";if(currentHour/1-6+d+c<10)e="0";b[d].innerHTML=e+(currentHour/1-6+d+c);if(currentHour==currentHour/1-6+d){b[d].style.color=selectBoxHighlightColor;activeSelectBoxHour=b[d]}else{b[d].style.color=""}}}function updateMonthDiv(){for(no=0;no<12;no++){document.getElementById("monthDiv_"+no).style.color=""}document.getElementById("monthDiv_"+currentMonth).style.color=selectBoxHighlightColor;activeSelectBoxMonth=document.getElementById("monthDiv_"+currentMonth)}function updateYearDiv(){var a=document.getElementById("yearDropDown");var b=a.getElementsByTagName("DIV");for(var c=1;c<b.length-1;c++){b[c].innerHTML=currentYear/1-6+c;if(currentYear==currentYear/1-6+c){b[c].style.color=selectBoxHighlightColor;activeSelectBoxYear=b[c]}else{b[c].style.color=""}}}function changeSelectBoxHour(a,b){if(!b)b=this;var c=b.parentNode.getElementsByTagName("DIV");if(b.innerHTML.indexOf("-")>=0){var d=c[1].innerHTML/1-1;if(d<0)d=0;if(activeSelectBoxHour){activeSelectBoxHour.style.color=""}}else{var d=c[1].innerHTML/1+1;if(d>14)d=14;if(activeSelectBoxHour){activeSelectBoxHour.style.color=""}}var e="";for(var f=1;f<c.length-1;f++){if(d/1+f/1<11)e="0";else e="";c[f].innerHTML=e+(d+f-1);c[f].id="hourDiv"+(d/1+f/1-1)}if(activeSelectBoxHour){activeSelectBoxHour.style.color="";if(document.getElementById("hourDiv"+currentHour)){activeSelectBoxHour=document.getElementById("hourDiv"+currentHour);activeSelectBoxHour.style.color=selectBoxHighlightColor;}}}function changeSelectBoxYear(a,b){if(!b)b=this;var c=b.parentNode.getElementsByTagName("DIV");if(b.innerHTML.indexOf("-")>=0){var d=c[1].innerHTML/1-1;if(activeSelectBoxYear){activeSelectBoxYear.style.color=""}}else{var d=c[1].innerHTML/1+1;if(activeSelectBoxYear){activeSelectBoxYear.style.color=""}}for(var e=1;e<c.length-1;e++){c[e].innerHTML=d+e-1;c[e].id="yearDiv"+(d/1+e/1-1)}if(activeSelectBoxYear){activeSelectBoxYear.style.color="";if(document.getElementById("yearDiv"+currentYear)){activeSelectBoxYear=document.getElementById("yearDiv"+currentYear);activeSelectBoxYear.style.color=selectBoxHighlightColor;}}}function createMonthDiv(){var a=document.createElement("DIV");a.className="monthYearPicker";a.id="monthPicker";for(var b=0;b<monthArray.length;b++){var c=document.createElement("DIV");c.innerHTML=monthArray[b];c.onmouseover=highlightMonthYear;c.onmouseout=highlightMonthYear;c.onclick=selectMonth;c.id="monthDiv_"+b;c.style.width="56px";c.onselectstart=cancelCalendarEvent;a.appendChild(c);if(currentMonth&&currentMonth==b){c.style.color=selectBoxHighlightColor;activeSelectBoxMonth=c}}return a}function switchMonth(){if(this.src.indexOf("left")>=0){currentMonth=currentMonth-1;if(currentMonth<0){currentMonth=11;currentYear=currentYear-1}}else{currentMonth=currentMonth+1;if(currentMonth>11){currentMonth=0;currentYear=currentYear/1+1}}writeCalendarContent()}function selectYear(){document.getElementById("calendar_year_txt").innerHTML=this.innerHTML;currentYear=this.innerHTML.replace(/[^\d]/g,"");document.getElementById("yearDropDown").style.display="none";EIS_Hide_Frame();if(activeSelectBoxYear){activeSelectBoxYear.style.color=""}activeSelectBoxYear=this;this.style.color=selectBoxHighlightColor;writeCalendarContent()}function selectMinute(){document.getElementById("calendar_minute_txt").innerHTML=this.innerHTML;currentMinute=this.innerHTML.replace(/[^\d]/g,"");document.getElementById("minuteDropDown").style.display="none";EIS_Hide_Frame();if(activeSelectBoxMinute){activeSelectBoxMinute.style.color=""}activeSelectBoxMinute=this;this.style.color=selectBoxHighlightColor}function selectHour(){document.getElementById("calendar_hour_txt").innerHTML=this.innerHTML;currentHour=this.innerHTML.replace(/[^\d]/g,"");document.getElementById("hourDropDown").style.display="none";EIS_Hide_Frame();if(activeSelectBoxHour){activeSelectBoxHour.style.color=""}activeSelectBoxHour=this;this.style.color=selectBoxHighlightColor}function selectMonth(){document.getElementById("calendar_month_txt").innerHTML=this.innerHTML;currentMonth=this.id.replace(/[^\d]/g,"");document.getElementById("monthDropDown").style.display="none";EIS_Hide_Frame();for(var a=0;a<monthArray.length;a++){document.getElementById("monthDiv_"+a).style.color=""}this.style.color=selectBoxHighlightColor;activeSelectBoxMonth=this;writeCalendarContent()}function showMinuteDropDown(){if(document.getElementById("minuteDropDown").style.display=="block"){document.getElementById("minuteDropDown").style.display="none";EIS_Hide_Frame()}else{document.getElementById("minuteDropDown").style.display="block";document.getElementById("monthDropDown").style.display="none";document.getElementById("yearDropDown").style.display="none";document.getElementById("hourDropDown").style.display="none";if(MSIE){EIS_FIX_EI1("minuteDropDown")}}}function showHourDropDown(){if(document.getElementById("hourDropDown").style.display=="block"){document.getElementById("hourDropDown").style.display="none";EIS_Hide_Frame()}else{document.getElementById("hourDropDown").style.display="block";document.getElementById("monthDropDown").style.display="none";document.getElementById("yearDropDown").style.display="none";document.getElementById("minuteDropDown").style.display="none";if(MSIE){EIS_FIX_EI1("hourDropDown")}}}function showYearDropDown(){if(document.getElementById("yearDropDown").style.display=="block"){document.getElementById("yearDropDown").style.display="none";EIS_Hide_Frame()}else{document.getElementById("yearDropDown").style.display="block";document.getElementById("monthDropDown").style.display="none";document.getElementById("hourDropDown").style.display="none";document.getElementById("minuteDropDown").style.display="none";if(MSIE){EIS_FIX_EI1("yearDropDown")}}}function showMonthDropDown(){if(document.getElementById("monthDropDown").style.display=="block"){document.getElementById("monthDropDown").style.display="none";EIS_Hide_Frame()}else{document.getElementById("monthDropDown").style.display="block";document.getElementById("yearDropDown").style.display="none";document.getElementById("hourDropDown").style.display="none";document.getElementById("minuteDropDown").style.display="none";if(MSIE){EIS_FIX_EI1("monthDropDown")}}}function highlightMonthYear(){if(activeSelectBoxMonth)activeSelectBoxMonth.className="";activeSelectBox=this;if(this.className=="monthYearActive"){this.className=""}else{this.className="monthYearActive";activeSelectBoxMonth=this}if(this.innerHTML.indexOf("-")>=0||this.innerHTML.indexOf("+")>=0){if(this.className=="monthYearActive")selectBoxMovementInProgress=true;else selectBoxMovementInProgress=false;if(this.innerHTML.indexOf("-")>=0)activeSelectBoxDirection=-1;else activeSelectBoxDirection=1}else selectBoxMovementInProgress=false}function isLeapYear(a){if(a%400==0||a%4==0&&a%100!=0)return true;return false}function cancelCalendarEvent(){return false}function EIS_Hide_Frame(){if(iframeObj2)iframeObj2.style.display="none"}function EIS_FIX_EI1(a){if(!iframeObj2)return;iframeObj2.style.display="block";iframeObj2.style.height=document.getElementById(a).offsetHeight+1;iframeObj2.style.width=document.getElementById(a).offsetWidth;iframeObj2.style.left=getleftPos(document.getElementById(a))+1-calendar_offsetLeft;iframeObj2.style.top=getTopPos(document.getElementById(a))-document.getElementById(a).offsetHeight-calendar_offsetTop}var languageCode="en";var calendar_display_time=true;var todayStringFormat="[todayString] [UCFdayString]. [day]. [monthString] [year]";var pathToImages="http://www.SatITJobs.com/images/";var speedOfSelectBoxSliding=200;var intervalSelectBox_minutes=5;var calendar_offsetTop=0;var calendar_offsetLeft=0;var calendarDiv=false;var MSIE=false;var Opera=false;if(navigator.userAgent.indexOf("MSIE")>=0&&navigator.userAgent.indexOf("Opera")<0)MSIE=true;if(navigator.userAgent.indexOf("Opera")>=0)Opera=true;switch(languageCode){case"en":var monthArray=["January","February","March","April","May","June","July","August","September","October","November","December"];var monthArrayShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var dayArray=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];var weekString="Week";var todayString="";break}var daysInMonthArray=[31,28,31,30,31,30,31,31,30,31,30,31];var currentMonth;var currentYear;var currentHour;var currentMinute;var calendarContentDiv;var returnDateTo;var returnFormat;var activeSelectBoxMonth;var activeSelectBoxYear;var activeSelectBoxHour;var activeSelectBoxMinute;var iframeObj=false;var iframeObj2=false;var returnDateToYear;var returnDateToMonth;var returnDateToDay;var returnDateToHour;var returnDateToMinute;var inputYear;var inputMonth;var inputDay;var inputHour;var inputMinute;var calendarDisplayTime=false;var selectBoxHighlightColor="#D60808";var selectBoxRolloverBgColor="#E2EBED";var selectBoxMovementInProgress=false;var activeSelectBox=false;var activeSelectBoxMonth=false;var activeSelectBoxDirection=false
