﻿// JScript File
// used 3 schools for help

	function emailcheck(field,alerttxt)
	{
	with (field)
	{
	a=value.indexOf("@")
	d=value.lastIndexOf(".")
	if (a<1||d-a <2) 
  	{
	alert(alerttxt);
	return false
	}

	else {return true}
	}
	}

function validatetheform(theform)
{

with(theform)
{
if (emailcheck(email,"Sorry - not a valid e-mail address!")==false)
  {	email.focus();
	return false;
  }
}
}
function firstname_onclick() {

}

    
