21 |
// build month selector |
// build month selector |
22 |
if (this.sMonth != null) { |
if (this.sMonth != null) { |
23 |
sel = m || this.sMonth.selectedIndex; |
sel = m || this.sMonth.selectedIndex; |
|
alert(sel); |
|
24 |
if (sel < 0) sel = this.BaseDate.getMonth(); |
if (sel < 0) sel = this.BaseDate.getMonth(); |
25 |
for (i = 0; i < this.sMonth.options.length; i++) |
for (i = 0; i < this.sMonth.options.length; i++) |
26 |
this.sMonth.options[i] = null; |
this.sMonth.options[i] = null; |
52 |
var n = new Array(31, -1, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); |
var n = new Array(31, -1, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); |
53 |
if (!m) m = (this.sMonth != null && this.sMonth.options.selectedIndex >= 0) ? |
if (!m) m = (this.sMonth != null && this.sMonth.options.selectedIndex >= 0) ? |
54 |
parseInt(this.sMonth.options[this.sMonth.selectedIndex].value) : this.BaseDate.getMonth(); |
parseInt(this.sMonth.options[this.sMonth.selectedIndex].value) : this.BaseDate.getMonth(); |
|
alert(m); |
|
55 |
if (!y) y = (this.sYear != null && this.sYear.options.selectedIndex >= 0) ? |
if (!y) y = (this.sYear != null && this.sYear.options.selectedIndex >= 0) ? |
56 |
parseInt(this.sYear.options[this.sYear.selectedIndex].text) : this.BaseDate.getYear(); |
parseInt(this.sYear.options[this.sYear.selectedIndex].text) : this.BaseDate.getYear(); |
57 |
if (y < 1900) y += 1900; |
if (y < 1900) y += 1900; |