/*

This javascript allows you to place a default value in a text field, that will clear if a user clicks it
and will restore that default text if the user clicks back out of it and typed nothing. If they DID
type something, than the javascript will do nothing

Usage:

1) Include this javascript file at the top of the page (in the header.php file)
<script type="text/javascript" src="/path/to/this/file.js"></script>

2) In the input field this javascript shall work for, you must use the onblur and onclick events to clear/restore default text:

<input type="text" onclick="clickclear(this, 'default text here')" onblur="clickrecall(this, 'default text here')" value="default text here">


 */

function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}

function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}
