Array.prototype.noEmpty = function (f) {
 if (!f) return true;
 var
      i = this.length,
      g = f.elements,
      n = true;
 for (j = 0; j < i; j++) {
  if (g[this[j]].value.trim() == '') {
   g[this[j]].style.backgroundColor = '#FF0000';
   n = false;
  }
  else g[this[j]].style.backgroundColor = '';
 }
 return n;
}