source: main/waeup.kofa/trunk/layout/static/js/kofa-functions.js @ 12327

Last change on this file since 12327 was 11741, checked in by Henrik Bettermann, 10 years ago

Merge Javascript functions into one file. Add Javascript function
to calculate copyright notice year automatically.

File size: 449 bytes
RevLine 
[11741]1var RecaptchaOptions = {
2    theme : 'white'
3 };
4
5function renderCurrentYear() {
6        var mydate=new Date()
7        var year=mydate.getYear()
8        if (year < 1000)
9        year+=1900
10        var day=mydate.getDay()
11        var month=mydate.getMonth()
12        var daym=mydate.getDate()
13        if (daym<10)
14        daym="0"+daym
15        document.write(year)
16}
17
18function toggle(source, name) {
19  checkboxes = document.getElementsByName(name);
20  for(var i in checkboxes)
21    checkboxes[i].checked = source.checked;
22}
Note: See TracBrowser for help on using the repository browser.