<!--
function isEmail(string)
{
	if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
		return true;
	else
		return false;
}

function isProper(string)
{
	if (string.search(/^\w+( \w+)?$/) != -1)
		return true;
	else
		return false;
}


function checkAge(refAge, birthYear)
{
	
	
	/* checkAge checks if a person with birth month birthMonth and birth year birthYear is of age
	refAge or older than refAge. Birth day will be the first of the month in the check.*/
	var birthDay = '1';
	var birthMonth = '1';
	var dtBirth = new Date(birthYear, birthMonth, birthDay);
	
	var dtCurrent = new Date();
	var dtRef = new Date(dtCurrent.getYear()-refAge, dtCurrent.getMonth(), dtCurrent.getDate());
	
	return (dtBirth <= dtRef);
}
//-->
