function isTime() {
var control = document.getElementById("Text1");
var reg = /^(((0?|1)\d)|(2[0-3]))\:[0-5]\d$/;
return reg.test(control.value);
}
var control = document.getElementById("Text1");
var reg = /^(((0?|1)\d)|(2[0-3]))\:[0-5]\d$/;
return reg.test(control.value);
}