function check_country () {
         var state = document.getElementById("state_select");
         var box   = document.getElementById("state_box");
         if (document.forms['JoinForm'].COUNTRY.value == "United States") {
            state.style.display = 'inline';
            box.style.display   = 'none';
         }else{
            state.style.display = 'none';
            box.style.display = 'inline';
         }
}

function check_state (this_state) {
 	var errorTitle = 'We are sorry, but we do not allow registrations from '+this_state+'.';
	var errorText = 'Please note that any transactions from registrations with fraudulent US State or birthdate entries will result in the cancellation of the account and voiding of any results and, if possible, a complete refund of any monies deposited to the account. If, due to the fraudulent data on the account, the monies cannot be refunded directly, the monies will be held pending complete authorized documentation to allow the withdrawal.';
        if ((document.forms['JoinForm'].state.value == "MO") ||(document.forms['JoinForm'].state.value == "DC")) {
           alert(errorTitle+"\n\n"+errorText);
           document.forms['JoinForm'].state.options[0].selected = true; // select the first option
        }
}

function check_form () {
         var this_form = document.forms['JoinForm'];
         if (this_form.COUNTRY.value == "United States") {
            this_form.STATE.value = this_form.state.value;
         }else {
            this_form.STATE.value = this_form.province.value;
         }
         this_form.province.disabled = true;
         this_form.state.disabled = true;

return true;
}
