﻿var gFocused = false;
var gTimer = 0;

function VVEffect(textBoxId)
{
    if (gFocused)
        return;

    window.clearTimeout(gTimer);
    
    var textBox = document.getElementById(textBoxId);
                
    if (textBox.value != "")
        textBox.value = textBox.value.substr(0, textBox.value.length-1);
    
    if (textBox.value != "")
        gTimer = window.setTimeout("VVEffect('" + textBoxId + "')", 20);
}
function VVFocus(textBoxId)
{    
    if (gFocused)
        return;
        
    gFocused = true;

    var textBox = document.getElementById(textBoxId);

    window.clearTimeout(gTimer);
        
    textBox.value = "";
}
