
function clearText(textbox)
{
    var strOldText = textbox.value;
    
    textbox.value = "";
    textbox.onblur = function()
    {
        if(textbox.value == "")
        {
            textbox.value = strOldText;
        }
    }
}