function contains(onechar,lstring)
{
retval=false
for (var i=1;i<=lstring.length;i++)
        {
        if (lstring.substring(i,i+1)==onechar)
                {
                retval=true
                break
                }
        }
return retval
}


function myForm_Validator(theForm)
{
theForm = document.myForm;

//return (true);

if (theForm.uti_Prenom.value == "")
{
    alert("No \"First Name\" entered. Please complete.");
    theForm.uti_Prenom.focus();
    return (false);
}
if (theForm.uti_Nom.value == "")
{
    alert("No \"Last Name\" entered. Please complete.");
    theForm.uti_Nom.focus();
    return (false);
}
if (theForm.uti_email.value == "")
{
    alert("No \"Email\" entered. Please complete.");
    theForm.uti_email.focus();
    return (false);
}
if (contains("@",theForm.uti_email.value) && contains(".",theForm.uti_email.value))
  {
  //return (true)
  }
  else
  {
    alert("This email address is not valid. Please check.");
    theForm.uti_email.focus();
   return (false);
  		}
	}