﻿function toggle_visibility(hideorshow)
{
    var e = document.getElementById("alerticon");
    if (hideorshow == 'hide')
    {
        if (e.style.visibility == 'visible')
        {
            blink(6000);
        }
        else
        {
            blink(6000);
        }
    }
    else
    {
        if (e.style.visibility == 'visible')
        {
            blink(6000);
        }
        else
        {
            blink(6000);
        }
    }
}
function blink(count)
{
    var count = count
    var e = document.getElementById("alerticon");
    e.style.visibility = ( e.style.visibility == 'visible' )? 'hidden' : 'visible';
    count--;
    if (count <= 0)
    {
    return;
    }
    else
    {
        setTimeout("blink('" + count + "');", 500);
    }
}



