Changeset 1146

Show
Ignore:
Timestamp:
12/12/06 13:42:54
Author:
johnsa
Message:

personal client: continued interface work on recurrence form elements

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css

    r1144 r1146  
    556556} 
    557557table.common td.fieldname { 
    558   width: 80px; 
     558  width: 100px; 
    559559  margin: 0em; 
    560560  vertical-align: top; 
     
    633633} 
    634634#bwEventCalDisplay { 
    635   font-weight: bold; 
     635  /*font-weight: bold;*/ 
    636636  margin-right: 1em; 
    637637} 
     
    676676#recurrenceFields #recurrenceTable p { 
    677677  margin: 0 0 0.5em 0; 
     678} 
     679#recurrenceFields #recurrenceTable .extraByMonthPosFields { 
     680  margin: 0 0 1em 2em; 
     681  padding: 0; 
    678682} 
    679683.shown { 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1145 r1146  
    19861986            </xsl:otherwise> 
    19871987          </xsl:choose> 
    1988           all day event 
     1988          all day (anniversary) 
    19891989 
    19901990          <!-- floating event: no timezone (and not UTC) --> 
     
    20362036            <script language="JavaScript" type="text/javascript"> 
    20372037            <xsl:comment> 
    2038               startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/'); 
     2038              startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/','true'); 
    20392039            </xsl:comment> 
    20402040            </script> 
     
    20962096              <script language="JavaScript" type="text/javascript"> 
    20972097              <xsl:comment> 
    2098                 endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/'); 
     2098                endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/', 'true'); 
    20992099              </xsl:comment> 
    21002100              </script> 
     
    22172217              <tr> 
    22182218                <td class="recurrenceFrequency" rowspan="2"> 
    2219                   <strong>Recurs:</strong><br/> 
    2220                   <input type="radio" name="freqFlag" value="NEVER" onclick="showRecurrence(this.value)" checked="checked"/>never<br/> 
    2221                   <!--<input type="radio" name="freqFlag" value="HOURLY" onclick="showRecurrence(this.value)"/>hourly<br/>--
    2222                   <input type="radio" name="freqFlag" value="DAILY" onclick="showRecurrence(this.value)"/>daily<br/> 
    2223                   <input type="radio" name="freqFlag" value="WEEKLY" onclick="showRecurrence(this.value)"/>weekly<br/> 
    2224                   <input type="radio" name="freqFlag" value="MONTHLY" onclick="showRecurrence(this.value)"/>monthly<br/> 
    2225                   <input type="radio" name="freqFlag" value="YEARLY" onclick="showRecurrence(this.value)"/>yearly 
     2219                  <strong>Frequency:</strong><br/> 
     2220                  <input type="radio" name="freq" value="NONE" onclick="showRecurrence(this.value)" checked="checked"/>once<br/> 
     2221                  <input type="radio" name="freq" value="HOURLY" onclick="showRecurrence(this.value)"/>hourly<br/
     2222                  <input type="radio" name="freq" value="DAILY" onclick="showRecurrence(this.value)"/>daily<br/> 
     2223                  <input type="radio" name="freq" value="WEEKLY" onclick="showRecurrence(this.value)"/>weekly<br/> 
     2224                  <input type="radio" name="freq" value="MONTHLY" onclick="showRecurrence(this.value)"/>monthly<br/> 
     2225                  <input type="radio" name="freq" value="YEARLY" onclick="showRecurrence(this.value)"/>yearly 
    22262226                </td> 
    22272227                <td class="recurrenceRules"> 
    2228                   <div id="neverRecurrenceRules"> 
     2228                  <div id="onceRecurrenceRules"> 
    22292229                    <p>does not recur</p> 
    22302230                  </div> 
    2231                   <!--<div id="hourlyRecurrenceRules" class="invisible"> 
    2232                     every <input type="text" name="hourlyInterval" size="2" value="1"/> hours 
    2233                   </div>--> 
     2231                  <div id="hourlyRecurrenceRules" class="invisible"> 
     2232                    <strong>Interval:</strong> 
     2233                    every <input type="text" name="hourlyInterval" size="2" value="1"/> hour(s) 
     2234                  </div> 
    22342235                  <div id="dailyRecurrenceRules" class="invisible"> 
    22352236                    <p> 
    22362237                      <strong>Interval:</strong> 
    2237                       every <input type="text" name="dailyInterval" size="2" value="1"/> days 
     2238                      every <input type="text" name="dailyInterval" size="2" value="1"/> day(s) 
    22382239                    </p> 
    22392240                  </div> 
     
    22572258                    <p> 
    22582259                      <strong>Interval:</strong> 
    2259                       every <input type="text" name="monthlyInterval" size="2" value="1"/> month(s) on 
     2260                      every <input type="text" name="monthlyInterval" size="2" value="1"/> month(s) 
    22602261                    </p> 
    22612262                    <p> 
    22622263                      <input type="radio" name="monthrrule" value="bymonthpos" checked="checked"/> 
    2263                       the 
    2264                       <select name="bymonthposPos" width="7em"> 
     2264                      on the 
     2265                      <select name="bymonthposPos1" width="7em"> 
    22652266                        <option value="first">first</option> 
    22662267                        <option value="second">second</option> 
     
    22692270                        <option value="last">last</option> 
    22702271                      </select> 
    2271                       <xsl:call-template name="byDayChkBoxList"/> 
     2272                      <select name="bymonthposDay1" width="7em"> 
     2273                        <xsl:for-each select="/bedework/daynames/val"> 
     2274                          <option> 
     2275                            <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 
     2276                            <xsl:value-of select="."/> 
     2277                          </option> 
     2278                        </xsl:for-each> 
     2279                      </select> 
     2280                      <div class="extraByMonthPosFields"> 
     2281                        and the 
     2282                        <select name="bymonthposPos2" width="7em"> 
     2283                          <option value="none">none</option> 
     2284                          <option value="first">first</option> 
     2285                          <option value="second">second</option> 
     2286                          <option value="third">third</option> 
     2287                          <option value="fourth">fourth</option> 
     2288                          <option value="last">last</option> 
     2289                        </select> 
     2290                        <select name="bymonthposDay2" width="7em"> 
     2291                          <option value="none">none</option> 
     2292                          <xsl:for-each select="/bedework/daynames/val"> 
     2293                            <option> 
     2294                              <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 
     2295                              <xsl:value-of select="."/> 
     2296                            </option> 
     2297                          </xsl:for-each> 
     2298                        </select><br/> 
     2299                        and the 
     2300                        <select name="bymonthposPos3" width="7em"> 
     2301                          <option value="none">none</option> 
     2302                          <option value="first">first</option> 
     2303                          <option value="second">second</option> 
     2304                          <option value="third">third</option> 
     2305                          <option value="fourth">fourth</option> 
     2306                          <option value="last">last</option> 
     2307                        </select> 
     2308                        <select name="bymonthposDay3" width="7em"> 
     2309                          <option value="none">none</option> 
     2310                          <xsl:for-each select="/bedework/daynames/val"> 
     2311                            <option> 
     2312                              <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 
     2313                              <xsl:value-of select="."/> 
     2314                            </option> 
     2315                          </xsl:for-each> 
     2316                        </select><br/> 
     2317                        and the 
     2318                        <select name="bymonthposPos4" width="7em"> 
     2319                          <option value="none">none</option> 
     2320                          <option value="first">first</option> 
     2321                          <option value="second">second</option> 
     2322                          <option value="third">third</option> 
     2323                          <option value="fourth">fourth</option> 
     2324                          <option value="last">last</option> 
     2325                        </select> 
     2326                        <select name="bymonthposDay4" width="7em"> 
     2327                          <option value="none">none</option> 
     2328                          <xsl:for-each select="/bedework/daynames/val"> 
     2329                            <option> 
     2330                              <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 
     2331                              <xsl:value-of select="."/> 
     2332                            </option> 
     2333                          </xsl:for-each> 
     2334                        </select> 
     2335                      </div> 
    22722336                    </p> 
    22732337                    <p> 
     
    22822346                  <div id="yearlyRecurrenceRules" class="invisible"> 
    22832347                    <strong>Interval:</strong> 
    2284                     every <input type="text" name="monthlyInterval" size="2" value="1"/> years(s) on<br/> 
    2285                     <input type="radio" name="rrule" value="byyearday"/>days of the year: 
    2286                     <input type="text" name="byyearday"/> 
    2287                       (comma separated list of days, 1-366) 
     2348                    every <input type="text" name="monthlyInterval" size="2" value="1"/> years(s)<br/> 
     2349                    <p> 
     2350                      <input type="radio" name="yearrrule" value="bymonthpos" onclick="swapYearCheckBoxList(this)" checked="checked"/> 
     2351                       on the 
     2352                      <select name="bymonthposPos1" width="7em"> 
     2353                        <option value="first">first</option> 
     2354                        <option value="second">second</option> 
     2355                        <option value="third">third</option> 
     2356                        <option value="fourth">fourth</option> 
     2357                        <option value="last">last</option> 
     2358                      </select> 
     2359                      <select name="bymonthposDay1" width="7em"> 
     2360                        <xsl:for-each select="/bedework/daynames/val"> 
     2361                          <option> 
     2362                            <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 
     2363                            <xsl:value-of select="."/> 
     2364                          </option> 
     2365                        </xsl:for-each> 
     2366                      </select> of 
     2367                      <select name="bymonthposMonth1" width="7em"> 
     2368                        <xsl:for-each select="/bedework/monthvalues/val"> 
     2369                          <option> 
     2370                            <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 
     2371                            <xsl:variable name="pos" select="position()"/> 
     2372                            <xsl:value-of select="/bedework/monthlabels/val[position() = $pos]"/> 
     2373                          </option> 
     2374                        </xsl:for-each> 
     2375                      </select> 
     2376                      <div class="extraByMonthPosFields"> 
     2377                        and the 
     2378                        <select name="bymonthposPos2" width="7em"> 
     2379                          <option value="none">none</option> 
     2380                          <option value="first">first</option> 
     2381                          <option value="second">second</option> 
     2382                          <option value="third">third</option> 
     2383                          <option value="fourth">fourth</option> 
     2384                          <option value="last">last</option> 
     2385                        </select> 
     2386                        <select name="bymonthposDay2" width="7em"> 
     2387                          <option value="none">none</option> 
     2388                          <xsl:for-each select="/bedework/daynames/val"> 
     2389                            <option> 
     2390                              <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 
     2391                              <xsl:value-of select="."/> 
     2392                            </option> 
     2393                          </xsl:for-each> 
     2394                        </select> of 
     2395                        <select name="bymonthposMonth2" width="7em"> 
     2396                          <option value="none">none</option> 
     2397                          <xsl:for-each select="/bedework/monthvalues/val"> 
     2398                            <option> 
     2399                              <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 
     2400                              <xsl:variable name="pos" select="position()"/> 
     2401                              <xsl:value-of select="/bedework/monthlabels/val[position() = $pos]"/> 
     2402                            </option> 
     2403                          </xsl:for-each> 
     2404                        </select><br/> 
     2405                        and the 
     2406                        <select name="bymonthposPos3" width="7em"> 
     2407                          <option value="none">none</option> 
     2408                          <option value="first">first</option> 
     2409                          <option value="second">second</option> 
     2410                          <option value="third">third</option> 
     2411                          <option value="fourth">fourth</option> 
     2412                          <option value="last">last</option> 
     2413                        </select> 
     2414                        <select name="bymonthposDay3" width="7em"> 
     2415                          <option value="none">none</option> 
     2416                          <xsl:for-each select="/bedework/daynames/val"> 
     2417                            <option> 
     2418                              <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 
     2419                              <xsl:value-of select="."/> 
     2420                            </option> 
     2421                          </xsl:for-each> 
     2422                        </select> of 
     2423                        <select name="bymonthposMonth3" width="7em"> 
     2424                          <option value="none">none</option> 
     2425                          <xsl:for-each select="/bedework/monthvalues/val"> 
     2426                            <option> 
     2427                              <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 
     2428                              <xsl:variable name="pos" select="position()"/> 
     2429                              <xsl:value-of select="/bedework/monthlabels/val[position() = $pos]"/> 
     2430                            </option> 
     2431                          </xsl:for-each> 
     2432                        </select><br/> 
     2433                        and the 
     2434                        <select name="bymonthposPos4" width="7em"> 
     2435                          <option value="none">none</option> 
     2436                          <option value="first">first</option> 
     2437                          <option value="second">second</option> 
     2438                          <option value="third">third</option> 
     2439                          <option value="fourth">fourth</option> 
     2440                          <option value="last">last</option> 
     2441                        </select> 
     2442                        <select name="bymonthposDay4" width="7em"> 
     2443                          <option value="none">none</option> 
     2444                          <xsl:for-each select="/bedework/daynames/val"> 
     2445                            <option> 
     2446                              <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 
     2447                              <xsl:value-of select="."/> 
     2448                            </option> 
     2449                          </xsl:for-each> 
     2450                        </select> of 
     2451                        <select name="bymonthposMonth4" width="7em"> 
     2452                          <option value="none">none</option> 
     2453                          <xsl:for-each select="/bedework/monthvalues/val"> 
     2454                            <option> 
     2455                              <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 
     2456                              <xsl:variable name="pos" select="position()"/> 
     2457                              <xsl:value-of select="/bedework/monthlabels/val[position() = $pos]"/> 
     2458                            </option> 
     2459                          </xsl:for-each> 
     2460                        </select> 
     2461                      </div> 
     2462                    </p> 
     2463                    <p> 
     2464                      <input type="radio" name="yearrrule" value="byyearday" onclick="swapYearCheckBoxList(this)"/>day(s):<br/> 
     2465                      <div id="yearCheckBoxList" class="invisible"> 
     2466                        <xsl:call-template name="buildCheckboxList"> 
     2467                          <xsl:with-param name="current">1</xsl:with-param> 
     2468                          <xsl:with-param name="end">366</xsl:with-param> 
     2469                          <xsl:with-param name="name">byyearday</xsl:with-param> 
     2470                        </xsl:call-template> 
     2471                      </div> 
     2472                    </p> 
    22882473                  </div> 
    22892474                </td> 
     
    22982483                     &#160; 
    22992484                     <input type="radio" name="rCountUntil" value="count"/> 
    2300                      until <input type="text" value="04/23/2008" size="10" name="until"/> 
     2485                     until 
     2486                     <div class="dateFields"> 
     2487                       <select name="untilMonth"> 
     2488                         <xsl:for-each select="form/start/month/select/option"> 
     2489                           <xsl:copy-of select="."/> 
     2490                         </xsl:for-each> 
     2491                       </select> 
     2492                       <select name="untilDay"> 
     2493                         <xsl:for-each select="form/start/day/select/option"> 
     2494                           <xsl:copy-of select="."/> 
     2495                         </xsl:for-each> 
     2496                       </select> 
     2497                       <xsl:choose> 
     2498                        <xsl:when test="/bedework/creating = 'true'"> 
     2499                           <select name="untilYear"> 
     2500                             <xsl:for-each select="form/start/year/select/option"> 
     2501                               <xsl:copy-of select="."/> 
     2502                             </xsl:for-each> 
     2503                           </select> 
     2504                        </xsl:when> 
     2505                        <xsl:otherwise> 
     2506                          <input type="text" name="untilYear" size="4"/> 
     2507                          <xsl:attribute name="value"><xsl:value-of select="form/start/yearText/input/@value"/></xsl:attribute> 
     2508                        </xsl:otherwise> 
     2509                       </xsl:choose> 
     2510                     </div> 
     2511                     <script language="JavaScript" type="text/javascript"> 
     2512                     <xsl:comment> 
     2513                       untilDateDynCalWidget = new dynCalendar('untilDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'untilDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/','false'); 
     2514                     </xsl:comment> 
     2515                     </script> 
    23012516                   </div> 
    23022517                </td> 
     
    24872702    <xsl:param name="end"/> 
    24882703    <xsl:param name="name"/> 
    2489     <xsl:param name="splitter">8</xsl:param> 
     2704    <xsl:param name="splitter">10</xsl:param> 
    24902705    <span class="chkBoxListItem"> 
    24912706      <input type="checkbox"/> 
  • trunk/deployment/webuser/webapp/resources/demoskins/resources/dynCalendarWidget.js

    r952 r1146  
    3131* @param string OPTIONAL     Optional layer name 
    3232*/ 
    33         function dynCalendar(objName, yr, mth, dy, callbackFunc
     33        function dynCalendar(objName, yr, mth, dy, callbackFunc, hideBwFields
    3434        { 
    3535    /** 
     
    376376 
    377377    // for Bedework event editing; reveal time fields when cal widget is hidden 
    378     changeClass('calWidgetStartTimeHider','shown'); 
    379     changeClass('calWidgetEndTimeHider','shown'); 
     378    if (hideBwFields) { 
     379      changeClass('calWidgetStartTimeHider','shown'); 
     380      changeClass('calWidgetEndTimeHider','shown'); 
     381    } 
    380382        } 
    381383 
     
    392394    // to avoid IE rendering oddities (IE always displays the "windowed" layer 
    393395    // above everything else -- that includes select boxes. 
    394     changeClass('calWidgetStartTimeHider','invisible'); 
    395     changeClass('calWidgetEndTimeHider','invisible'); 
     396    if (hideBwFields) { 
     397      changeClass('calWidgetStartTimeHider','invisible'); 
     398      changeClass('calWidgetEndTimeHider','invisible'); 
     399    } 
    396400        } 
    397401 
  • trunk/deployment/webuser/webapp/resources/demoskins/resources/includes.js

    r1140 r1146  
    1919    allDayStartDateField.value = "off"; 
    2020    allDayEndDateField.value = "off"; 
    21   } 
    22 } 
    23 function swapRecurrence(obj) { 
    24   if (obj.checked) { 
    25     changeClass('recurrenceFields','dateStartEndBox'); 
    26   } else { 
    27     changeClass('recurrenceFields','invisible'); 
    28   } 
    29 } 
    30 function showRecurrence(freq) { 
    31  
    32   changeClass('recurrenceUntilRules','shown'); 
    33  
    34   /*if (freq == 'HOURLY') { 
    35     changeClass('hourlyRecurrenceRules','shown'); 
    36   } else { 
    37     changeClass('hourlyRecurrenceRules','invisible'); 
    38   }*/ 
    39   if (freq == 'DAILY') { 
    40     changeClass('dailyRecurrenceRules','shown'); 
    41   } else { 
    42     changeClass('dailyRecurrenceRules','invisible'); 
    43   } 
    44   if (freq == 'WEEKLY') { 
    45     changeClass('weeklyRecurrenceRules','shown'); 
    46   } else { 
    47     changeClass('weeklyRecurrenceRules','invisible'); 
    48   } 
    49   if (freq == 'MONTHLY') { 
    50     changeClass('monthlyRecurrenceRules','shown'); 
    51   } else { 
    52     changeClass('monthlyRecurrenceRules','invisible'); 
    53   } 
    54   if (freq == 'YEARLY') { 
    55     changeClass('yearlyRecurrenceRules','shown'); 
    56   } else { 
    57     changeClass('yearlyRecurrenceRules','invisible'); 
    58   } 
    59   if (freq == 'NEVER') { 
    60     changeClass('neverRecurrenceRules','shown'); 
    61     changeClass('recurrenceUntilRules','invisible'); 
    62   } else { 
    63     changeClass('neverRecurrenceRules','invisible'); 
    6421  } 
    6522} 
     
    11875  } 
    11976} 
    120  
     77function swapRecurrence(obj) { 
     78  if (obj.checked) { 
     79    changeClass('recurrenceFields','dateStartEndBox'); 
     80  } else { 
     81    changeClass('recurrenceFields','invisible'); 
     82  } 
     83
     84function showRecurrence(freq) { 
     85 
     86  changeClass('recurrenceUntilRules','shown'); 
     87 
     88  if (freq == 'ONCE') { 
     89    changeClass('onceRecurrenceRules','shown'); 
     90    changeClass('recurrenceUntilRules','invisible'); 
     91  } else { 
     92    changeClass('onceRecurrenceRules','invisible'); 
     93  } 
     94  if (freq == 'HOURLY') { 
     95    changeClass('hourlyRecurrenceRules','shown'); 
     96  } else { 
     97    changeClass('hourlyRecurrenceRules','invisible'); 
     98  } 
     99  if (freq == 'DAILY') { 
     100    changeClass('dailyRecurrenceRules','shown'); 
     101  } else { 
     102    changeClass('dailyRecurrenceRules','invisible'); 
     103  } 
     104  if (freq == 'WEEKLY') { 
     105    changeClass('weeklyRecurrenceRules','shown'); 
     106  } else { 
     107    changeClass('weeklyRecurrenceRules','invisible'); 
     108  } 
     109  if (freq == 'MONTHLY') { 
     110    changeClass('monthlyRecurrenceRules','shown'); 
     111  } else { 
     112    changeClass('monthlyRecurrenceRules','invisible'); 
     113  } 
     114  if (freq == 'YEARLY') { 
     115    changeClass('yearlyRecurrenceRules','shown'); 
     116  } else { 
     117    changeClass('yearlyRecurrenceRules','invisible'); 
     118  } 
     119
     120function swapYearCheckBoxList(obj) { 
     121  if (obj.value == "byyearday") { 
     122    changeClass('yearCheckBoxList','shown'); 
     123  } else { 
     124    changeClass('yearCheckBoxList','invisible'); 
     125  } 
     126
    121127// launch a simple window for displaying information; no header or status bar 
    122128function launchSimpleWindow(URL) { 
     
    161167  document.eventForm['eventEndDate.day'].value = date; 
    162168  document.eventForm['eventEndDate.year'].value = year; 
     169} 
     170function untilDateCalWidgetCallback(date, month, year) { 
     171  if (String(month).length == 1) { 
     172      month = '0' + month; 
     173  } 
     174  if (String(date).length == 1) { 
     175      date = '0' + date; 
     176  } 
     177 
     178  document.eventForm['untilMonth'].value = month; 
     179  document.eventForm['untilDay'].value = date; 
     180  document.eventForm['untilYear'].value = year; 
    163181} 
    164182