function validateform()
	{	var form = document.registration;
		if (form.firstname.value.length == 0)
			{	alert ("Please enter your first name");
				form.firstname.focus();
				return;
			}
		
		if (form.lastname.value.length == 0)
			{	alert ("Please enter your last name");
				form.lastname.focus();
				return;
			}

		if (form.country.selectedIndex == 0)
			{	alert ("Please supply the country of residence");
				form.country.focus();
				return;
			}

		if (form.interest.selectedIndex == 0)
			{	alert ("Please choose your interest");
				form.interest.focus();
				return;
			}

		if (form.hearaboutsmarterwork.selectedIndex == 0)
			{	alert ("Please choose how you heard about smarterwork");
				form.hearaboutsmarterwork.focus();
				return;
			}

		if (form.membername.value.length == 0)
			{	alert ("Please supply your smarterwork login name");
				form.membername.focus();
				return;
			}

		if (form.emailaddress.value.length == 0)
			{	alert ("Please supply your email address");
				form.emailaddress.focus();
				return;
			}
		if (form.confirmemailaddress.value.length == 0)
			{	alert ("Please confirm your email address");
				form.confirmemailaddress.focus();
				return;
			}


		if (form.password.value.length == 0)
			{	alert ("Please supply your smarterwork logon password");
				form.password.focus();
				return;
			}
		if (form.confirmpassword.value.length == 0)
			{	alert ("Please confirm your your smarterwork logon password");
				form.confirmpassword.focus();
				return;
			}

		if (form.companyname.value.length == 0)
			{	alert ("Please supply your company name");
				form.companyname.focus();
				return;
			}			
		if (form.companyindustry.selectedIndex == 0)
			{	alert ("Please choose your companys main industry");
				form.companyindustry.focus();
				return;
			}
		if (form.companydepartment.selectedIndex == 0)
			{	alert ("Please choose your department within your company");
				form.companydepartment.focus();
				return;
			}
		if (form.companylevel.selectedIndex == 0)
			{	alert ("Please choose your level with-in your company");
				form.companylevel.focus();
				return;
			}
		if (form.companysize.selectedIndex == 0)
			{	alert ("Please choose the size of your company");
				form.companysize.focus();
				return;
			}


		if (!validateemailaddress(form.emailaddress.value) == true)
			{	alert ("Please suppy a valid email address");
				form.emailaddress.focus();
				return;
			}
			
		if (form.emailaddress.value != form.confirmemailaddress.value)
			{	alert ("Your email address does not match the confirmed email address");
				form.emailaddress.focus();
				return;
			}
			
		if ((form.password.value.length < 6) || (form.password.value.length > 25))
			{	alert ("Your password needs to be at least six (6) characters long and no more than twenty five (25)");
				form.password.focus();
				return;
			}
			
		if (form.password.value != form.confirmpassword.value)
			{	alert ("Your password does not match the confirmed password");
				form.password.focus();
				return;
			}
			
		if (!form.acceptuseragreement.checked)
			{	alert ("Before registering with smarterwork you need to accept smarterworks terms and conditions");
				form.acceptuseragreement.focus();
				return;
			}
		
		form.submit();
	}

