- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
function check_date() {
var message = "Дата невалидна.";
days = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
var str = $('#registration-form [name="birthday"]').val();
var m = str.match(/(\d*)\.(\d*)\.(\d*)(.*)/);
if (!m ||
!m[1] ||
!m[2] ||
!m[3] ||
m[4] ||
parseInt(m[2], 10) < 1 ||
parseInt(m[2], 10) > 12 ||
parseInt(m[1], 10) < 1 ||
parseInt(m[1], 10) > days[parseInt(m[2], 10)-1] ||
parseInt(m[3], 10) < 1920 ||
parseInt(m[3], 10) > 2000 ) {
tooltip($('#registration-form [name="birthday"]').get(0), message);
} else {
removett($('#registration-form [name="birthday"]').get(0));
}
}
ixth 03.03.2010 16:15 # 0
ixth 03.03.2010 16:31 # 0
murz 03.03.2010 16:42 # 0
ixth 03.03.2010 16:48 # 0
guest 06.03.2010 12:21 # 0
ixth 07.03.2010 08:36 # 0
guest 03.03.2010 16:45 # 0
ixth 03.03.2010 17:16 # 0
ixth 03.03.2010 17:24 # 0
murz 03.03.2010 16:45 # 0
murz 03.03.2010 16:50 # 0
ixth 03.03.2010 17:16 # 0
murz 03.03.2010 17:28 # 0
ixth 03.03.2010 18:09 # 0
guest 03.03.2010 22:39 # 0
ixth 04.03.2010 00:49 # 0
mrbig66 04.03.2010 16:23 # 0
mrbig66 04.03.2010 16:23 # 0
Прочитал: Два инвалида. )))
guest 05.03.2010 21:49 # −1
guest 06.03.2010 00:15 # −1.2
guest 10.03.2010 02:39 # −1.2
pee 11.03.2010 13:57 # +0.6
bugmenot 02.06.2010 00:20 # 0