Event.observe(window, 'load', function() {
  $$('a').each(function(e) {
    if(e.href.startsWith('http://www.nautilusone.biz/CFPL/')) {
      e.setAttribute('title', 'Housed at and Property of CFPL');
      e.setAttribute('target', '_new');
    }
  });

  $$('input[type=text][title],input[type=password][title],textarea[title]').each(function(e){
    $(e).addClassName('input-prompt-' + e.getAttribute('name'));
    var promptSpan = new Element('span', { class: 'input-prompt' }); // $('<span class="input-prompt"/>');
    promptSpan.setAttribute('id', 'input-prompt-' + e.getAttribute('name'));
    promptSpan.insert($(e).getAttribute('title'));
    Event.observe($(promptSpan), 'click', function(){
      $(promptSpan).hide();
      $(e).focus();
    });
    if($(e).getValue() != ''){
      $(promptSpan).hide();
    }
    $(e).insert({ before: $(promptSpan) });
    Event.observe($(e), 'focus', function(){
      $(promptSpan).hide();
    });
    Event.observe($(e), 'blur', function(){
      if($(e).getValue() == ''){
        $(promptSpan).show();
      }
    });
  });
});