//this function should replace the two "clear" functions above - use them as a facade
function clearTextInputOnFocus(element, sIn)
{
    if (element.value == sIn)
    {
        element.value = "";   
    }
    
    element.onblur = function ()
    {
        if (element.value == "")
        {
            element.value = sIn;
        }
    }
}

//apply this to onmouseover event
function imageSwapOnHover(imageButton, imageUrl)
{
    var oldImageSrc = imageButton.src;
    imageButton.src = imageUrl;
    
    imageButton.onmouseout = function ()
    {
        imageButton.src = oldImageSrc;
        imageButton.onmouseout = "";
    }    
}
