function togglePrompt( elm, defaultValue, hasFocus ) {
    if( hasFocus ) {
        if( elm.value == defaultValue ) {
            elm.value = '';
        }
    }else{ 
        if( elm.value == '' ) {
            elm.value = defaultValue;
        }
    }
}