
function checkform(){

var name = book.full_name.value
var email = book.email.value
var phone = book.phone.value
var company = book.company.value
var area = book.course_area.value
var date = book.course_date.value
var delegates = book.delegates.value

if (name == "")
	{
		alert("Please enter your name");
		book.full_name.focus();
		return false;
	}
	
	if (email == "")
	{
		alert("Please enter your email address");
		book.email.focus();
		return false;
	}

if (phone == "")
	{
		alert("Please enter your contact number");
		book.phone.focus();
		return false;
	}
	
	if (company == "")
	{
		alert("Please enter the name of your company");
		book.company.focus();
		return false;
	}


if (area == "")
	{
		alert("Please choose your preferred area");
		book.area.focus();
		return false;
	}

if (date == "")
	{
		alert("Please select your preferred course date");
		book.date.focus();
		return false;
	}
	
	
if (delegates == "")
	{
		alert("Please enter the number of delegates who will be attending this course");
		book.delegates.focus();
		return false;
	}
	


if (email.indexOf("@",0) == -1 || email.indexOf(".",0) == -1)
	{
		alert("The email address is not valid.  Please check and enter again");
		book.email.select();
		book.email.focus();
		return false;
	}

if (confirm("You entered \""+email+"\" as your email address. Is that correct?"))
return true
else{
book.email.focus()
return false
}



return true;
}
