
function VerifyUSA() {
	var objForm = DocumentObject( 'locate-usa', false );

	if ( objForm.state.selectedIndex == 0 ) {
		alert( 'Please select your state.' );
		return false;
	}
	if ( objForm.city.value != ""  &&  objForm.zipcode.value != "" ) {
		alert( 'Please enter a city OR zip code.' );
		return false;
	}
	return true;
}

function VerifyCanada() {
	var objForm = DocumentObject( 'locate-canada', false );

	if ( objForm.province.selectedIndex == 0 ) {
		alert( 'Please select your province.' );
		return false;
	}
	if ( objForm.city.value != ""  &&  objForm.postalcode.value != "" ) {
		alert( 'Please enter a city OR postal code.' );
		return false;
	}
	return true;
}

function VerifyInternational() {
	var objForm = DocumentObject( 'locate-international', false );

	if ( objForm.country.selectedIndex == 0 ) {
		alert( 'Please select your country.' );
		return false;
	}
	
	objForm.countryname.value = objForm.country[ objForm.country.selectedIndex ].text;
	
	return true;
}