// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function clickclear(thisfield, defaulttext, color) {
  if (thisfield.value == defaulttext) {
  	thisfield.value = "";
  	if (!color) {
  		color = "999";
  	}
  	thisfield.style.color = "#" + color;
  }
}

function clickrecall(thisfield, defaulttext, color) {
  if (thisfield.value == "") {
  	thisfield.value = defaulttext;
  	if (!color) {
  		color = "999";
  	}
  	thisfield.style.color = "#" + color;
  }
}