// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

// Handles the international option for account location
function check_international() {
  if($('account_is_international').checked == true) {
    $('account_state').value='';
    $('account_zip_code').value='';
  }
}
function clear_international() {
  $('account_is_international').checked = false;
}

//clears another element if "this" is used
function clear_another_element(el) {
  if (this.value!="")
    $(el).value='';
}

//used for stepped navigation 
function step_on_it(e, direction) {
  form = e.form
  form.direction.value = direction;
  form.submit();
}
