function highlight_form_field(form_field){if ('undefined' != form_field.className){form_field.className += ' highlight';}}
function blur_form_field(form_field){if ('undefined' != form_field.className){if ('highlight' == form_field.className){form_field.className = '';}else{form_field.className = form_field.className.replace(' highlight', '');}}}
function remove_default_input(form_field){if (form_field.value == form_field.title){form_field.value = '';}}
function add_default_input(form_field){if ('' == form_field.value){form_field.value = form_field.title;}}

window.onload = function()
{
  var div =  document.getElementById("container");
  {
    inputs = div.getElementsByTagName('input');
    for (i = 0; i < inputs.length; i++)
    {
      if ('text' == inputs[i].type)
      {
        inputs[i].onfocus   = function() {highlight_form_field(this); remove_default_input(this);}
        inputs[i].onblur  = function() {blur_form_field(this); add_default_input(this);}

        if ('' == inputs[i].value)
        {
          add_default_input(inputs[i]);
        }
      }	  
    }
  }
}