// DOM ready

function initClickable()
{
    jQuery("#regionSelector").bind('change', function() {
          var getState = jQuery(this).val();
          
          if(getState != '')
          {
              var stateBox = jQuery("#" + getState).clone( true ); 
              jQuery("#stateArea").empty();
              stateBox.attr("id", "location");
              stateBox.attr("name", "location");
              stateBox.appendTo('#stateArea');
          }
    }); 
}

jQuery(document).ready(function () {
    initClickable();
}); 
