var inValid = "azertyuiopqsdfghjklmwxcvbn0123456789";

function Form_Validator(theForm)

{

	var alertstr = " ";



	if (theForm.cname.value == "")

	{

		alert(alertstr + "Please fill in your name.");

		theForm.cname.focus();

		return (false);

	}

	if (theForm.cname.value.length < 4)

	{

		alert(alertstr + "Please fill in your name correctly.");

		theForm.cname.focus();

		return (false);

	}

		if (theForm.ctype.value == "")

	{

		alert(alertstr + "Please specify the licence type.");

		theForm.ctype.focus();

		return (false);

	}

	if (theForm.cemail.value == "")

	{

		alert(alertstr + "Please specify a valid contact email.");

		theForm.cemail.focus();

		return (false);

	}

	if (theForm.cbirth.value == "")

	{

		alert(alertstr + "Please specify your date of birth.");

		theForm.cbirth.focus();

		return (false);

	}
}