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

var Registration = {}

Registration = {
  disableSubscriberForm: function() {
    Element.show('form_indicator');
    Form.disable('subscriber_form');
  },
  
  enableSubscriberForm: function(form) {
    Element.hide('form_indicator');
    Form.enable('subscriber_form');
  }
}

function setTitleTag(id,title_text) {
  document.getElementById(id).title=title_text
  }

function clearTitleTags() {
  allLinks = document.getElementsByClassName('product_link');
  for(i=0; i < allLinks.length; i++) {
    allLinks[i].title='';
    }
  }