function validate_region(alerttxt) {
		var dropdownIndex = document.getElementById('region').selectedIndex;
		var dropdownValue = document.getElementById('region')[dropdownIndex].value;
		
		if ( dropdownValue == "" || dropdownValue == "-- Please Select Your Ship-to Country --") {
			alert(alerttxt);
			return false;
		} else {
			return true;
		}
}

function validate_illinois(alerttxt) {
		var dropdownIndex = document.getElementById('il').selectedIndex;
		var dropdownValue = document.getElementById('il')[dropdownIndex].value;
		
		if ( dropdownValue == "" || dropdownValue == "-- Do you live in Illinois? --") {
			alert(alerttxt);
			return false;
		} else {
			return true;
		}
}

function validate_form(thisform) {
	with (thisform) {		
		if ( validate_region("You must select the country that you are shipping to." ) == false ) {
			region.focus();
			return false;
		}
		
		if ( validate_illinois("Your must select whether you live in Illinois or not." ) == false ) {
			il.focus();
			return false;
		}
	}
}
