// based on script from shauninman.com

function formInitialValues() {
	d = document;
	if (d.getElementById) {
		theInput = d.getElementById("s");
		theInput.defaultValue = theInput.value;
		theInput.onfocus = clearInitialValues
		theInput.onblur = resetInitialValues
	}
}
function clearInitialValues() {
	if (this.value == this.defaultValue) {
		this.value = "";
		}
	}
function resetInitialValues() {
	if (this.value == "") {
		this.value = this.defaultValue;
		}
	this.blur();
	}

// load everything up

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(formInitialValues);

