var active_color = '#000'; 
var inactive_color = '#888'; 
$(document).ready(function() {

  $(":input:not(.noColor)").css("color", inactive_color);
  var default_values = new Array();
  $(":input:not(.noColor)").focus(function() {
    if (!default_values[this.id]) {
      default_values[this.id] = this.value;
    }
    if (this.value == default_values[this.id]) {
      this.value = '';
      this.style.color = active_color;
    }
    $(this).blur(function() {
      if (this.value == '') {
        this.style.color = inactive_color;
        this.value = default_values[this.id];
      }
    });
  });
});
  
  

function formSub()
{
  $(":input:not(.noColor)").each(function() {
    if (this.value == this.defaultValue) {
      this.value = '';
    }
  });
}
