reMail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/

function Checkform(thisform) {

strError = 'The following error(s) occurred:\n\n';
intError = 0;

if (thisform.Teamleader.value == "")
{
strError = strError + 'Please enter teamleader name - or your own name ...\n'
intError = 1;
thisform.Teamleader.focus(); 
}

if (thisform.Telephone.value == "")
{
strError = strError + 'Please enter telephone number ...\n'
intError = 1;
thisform.Telephone.focus(); 
}

if (!reMail.test(thisform.Email.value))
{
strError = strError + 'Please enter a valid e-mail address ...\n'
intError = 1;
thisform.Email.focus();
}

if (intError == 1) {
alert(strError)
return false;
}

}