This commit is contained in:
Andreas Österreicher
2007-06-08 12:24:01 +00:00
parent c934a5b2e9
commit 2b8c88e1d4
4 changed files with 50 additions and 17 deletions
+15
View File
@@ -102,4 +102,19 @@ function ParseReturnValue(response)
function SetStatusBarText(text)
{
document.getElementById('statusbarpanel-text').label=text;
}
// ****
// * Prueft ein Datum auf Gueltigkeit
// * Erlaubte Formate: 1.1.2007, 31.12.2007
// ****
function CheckDatum(datum)
{
var pattern = /^(0[1-9]|[1-9]|[12][0-9]|3[01])[.](0[1-9]|[1-9]|1[012])[.](19|20)\d\d$/
if(pattern.exec(datum))
return true;
else
return false;
}