/* this was stolen from kilbot.net, don't know where he got it from */
/* but patrick adapted it for papercut and incorporated colour shifting */
/* and also the deFocus function */
/* so please keep acknowledgement intact if you steal it yourself */

/* clears default values from input boxes */
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
    thefield.value = ""
    thefield.style.color = "#000"
}

/* if the value hasn't been changed, then put the default back in and shift the colour */
function deFocus(thefield) {
    if (thefield.value=="") {
        thefield.value = thefield.defaultValue
        thefield.style.color = "#ccc"
    }
}