function $(id) { 
    if (document.getElementById)
        return document.getElementById(id);
    if (document.all)
        return document.all[id];
    return null;
}

function focuser() {
   if (this.className.indexOf('empty')!=-1) {
      this.setAttribute('title',this.value);
      this.value = '';
      this.className = 'text-input';
   }
}
function blurrer() {
   if (!this.value) {
      this.value = this.getAttribute('title');
      this.className = 'text-input empty';
   }
}

var names = ['jjflj-jjflj', 'ft-fullname', 'ft-email'];
for (var i=0; i < names.length; i++) {
   if ($(names[i])) {
      $(names[i]).onfocus = focuser;
      $(names[i]).onblur = blurrer;
   }
}
