
// these functions clear the values in the form when the input box is clicked
// this enable the input label to put in the input box e.g. 'enter your name'
$k = document.getElementsByTagName("INPUT");
$morevalue = new Array();
for($count = 0;$count < $k.length;$count++)
{
   if($k[$count].type != "submit")
   {
      $morevalue[$k[$count].name] = $k[$count].value;
      $k[$count].onfocus = input_focus;
      $k[$count].onblur = input_blur;
   }
}

$k = document.getElementsByTagName("TEXTAREA");
for($count = 0;$count < $k.length;$count++)
{
   $morevalue[$k[$count].name] = $k[$count].value;
   $k[$count].onfocus = input_focus;
   $k[$count].onblur = input_blur;
}

function input_focus()
{
   if(this.value == $morevalue[this.name])
   {
      this.value = "";
   }
}

function input_blur()
{
   if(this.value == "")
   {
      this.value = $morevalue[this.name];
   }
}
