function validateform (form) {

	// variable for email validation
	var str=document.validation.email.value
	var filter=/^.+@.+\..{2,3}$/

	// check name text box
	if (form.name.value=="") {
		alert ("You must enter a name!");
		form.name.focus();
		return false;
	}

	// check email text box
	if (!filter.test(str)) {
		alert("Please input a valid email address!")
		form.email.focus();
		return false;
	}

	// check country list menu
	if (form.country_code.value=="") {
		alert ("You must select a country!");
		form.country_code.focus();
		return false;
	}

	// check subject text box
	if (form.subject.value=="") {
		alert ("You must input a subject!");
		form.subject.focus();
		return false;
	}
	
	// check comment text field
	if (form.comment.value=="") {
		alert ("You must input a comment!");
		form.comment.focus();
		return false;
	}

	// everythings is OK!
	return true;
}