// check fields in reverse order so that first incorrect field has focus 
function checkFields() {
	verrmsg = "Please fill in this field";
	vcorrect = true;
	if (document.priceform.emailaddr.value == "") {
			vcorrect = false;
			document.priceform.emailaddr.focus();
	}
	if (document.priceform.country.selectedIndex == 0) {
		vcorrect = false;
		document.priceform.country.focus();
	}
	if (document.priceform.company.value == "") {
			vcorrect = false;
			document.priceform.company.focus();
	}
	if (document.priceform.name.value == "") {
			vcorrect = false;
			document.priceform.name.focus();
	}
	if (vcorrect == true) {
		document.priceform.submit();
	} else {
		alert ("Please complete all fields");
	}
}