<!--
function check_date(s)
{
	if (s ==  "") return false ;
	str = s ;
	valid_integers_chars = "0123456789" ;
	if (str.length == 8) { str = str.substr(0,6) + "20" + str.substr(6,2) }
	d = new Date(0) ;
	if (str.length != 10) { return d }
	if (	(valid_integers_chars.indexOf(str.charAt(0), 0) == -1) ||
			(valid_integers_chars.indexOf(str.charAt(1), 0) == -1) ||
			(str.substring(2, 3) != "/") ||
			(valid_integers_chars.indexOf(str.charAt(3), 0) == -1) ||
			(valid_integers_chars.indexOf(str.charAt(4), 0) == -1) ||
			(str.substring(5, 6) != "/") ||
			(valid_integers_chars.indexOf(str.charAt(6), 0) == -1) ||
			(valid_integers_chars.indexOf(str.charAt(7), 0) == -1) ||
			(valid_integers_chars.indexOf(str.charAt(8), 0) == -1) ||
			(valid_integers_chars.indexOf(str.charAt(9), 0) == -1)) { return d }
	day = new Number(Number(str.substr(0,2))) ;
	month = new Number(Number(str.substr(3,2))) ;
	year = new Number(Number(str.substr(6,4))) ;
	if ((day <= 0) || (day > 31)) { return d }
	if ((month <= 0) || (month > 12)) { return d }
	if (((month == 4) || (month == 6) || (month == 9) || (month == 11)) && (day > 30)) { return d }
	if ((month == 2) && (day > 28) && ((year % 4) != 0)) { return d }
	d.setFullYear(year, month - 1, day) ;
	d.setHours(0, 0, 0, 1) ;
	return d
}
function check_email(s){
	if (s == "") return false ;
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	return filter.test(s)
}
//-->
