<!--
	function verify(formobj) {
		warning_msg = '';	
		bValid = true;
		
		with (formobj) {
			//Section A
			//Check First Name
			if ((firstname.value = trim(firstname.value)).length == 0) {				
				warning_msg += "Please enter your first name.\n";
				bValid = false;
			}

			//Check Last Name
			if ((lastname.value = trim(lastname.value)).length == 0) {
				warning_msg += "Please enter your last name.\n";
				bValid = false;
			}

			//Check Birth date
			if ((birthdate.value = trim(birthdate.value)).length == 0) {
				warning_msg += "Please enter your birth date.\n";
				bValid = false;
			}
			else if (/\d{1,2}\/\d{1,2}\/\d{4}/.test(birthdate.value) == false) {
				warning_msg += "The birth date format is not correct.\n";
				bValid = false;
			}

			//Check occupation
			if ((occupation.value = trim(occupation.value)).length == 0) {
				warning_msg += "Please enter your Occupation.\n";
				bValid = false;
			}

			//Check email
			if ((email.value = trim(email.value)).length == 0) {
				warning_msg += "Please enter your email address.\n";
				bValid = false;
			}
			else if (chkEmail(email.value) == false) {
				warning_msg += "The email address is not in correct format.\n";
				bValid = false;
			}

			//Check Telephone
			if ((phone.value = trim(phone.value)).length == 0) {
				warning_msg += "Please enter your contact telephone.\n";
				bValid = false;
			}

			//Check Address
			if ((address.value = trim(address.value)).length == 0) {
				warning_msg += "Please enter your address.\n";
				bValid = false;
			}

			//Check city
			if ((city.value = trim(city.value)).length == 0) {
				warning_msg += "Please enter your city.\n";
				bValid = false;
			}

			//Check country
			if ((country.value = trim(country.value)).length == 0) {
				warning_msg += "Please enter your country.\n";
				bValid = false;
			}

			//Check Number of logo
			if (logono.options[logono.selectedIndex].value == "" ) {
				warning_msg += "Please choose the number of logo being submitted.\n";
				bValid = false;
			}

			//Check box
			if (checkme.checked == false) {
				warning_msg += "To enter this competition, you must accept the terms and conditions.\n";
				bValid = false;
			}

			//Status
			if (filename.value.length == 0) {
				warning_msg += "Please upload your logo.\n";
				bValid = false;
			}

			//Validate Overall				
			if (bValid == false) {
				warning_msg = "Please check the following:\n" +
								  "----------------------------------------------\n\n" + warning_msg;
				alert(warning_msg);
				return;
			} else {
				submit();
			}
			
		}
		
	}
//-->