val = 0;
function toggleSendToFriend()
{
    if(document.getElementById("stfh_state").value == "0")
    {
        increaseHeight(val);
    }
    else
    {
        decreaseHeight(val);
    }
}

function increaseHeight()
{
    if(val <= 200)
    {
        val = val + 10;
        document.getElementById("div_send_to_friend").style.height = val + "px";
        setTimeout('increaseHeight()', 1);
    }
    else
    {
        document.getElementById("stfh_state").value = 1;
    }
}

function decreaseHeight()
{
    if(val >= 0)
    {
        val =  val - 10;
        document.getElementById("div_send_to_friend").style.height = val + "px";
        setTimeout('decreaseHeight()', 1);
    }
    else
    {
        document.getElementById("stfh_state").value = 0;
    }
}





