/* called at load of page */
function pageSetup() {
	// allow user to specify one element to have initial focus
	var focusTarget = document.getElementById('focusTarget')
	if (focusTarget) {
		focusTarget.focus();
	}
}


function toggle_visibility(hideorshow)
{ var e = document.getElementById("alerticon");
    if (hideorshow == 'hide')
    { if (e.style.visibility == 'visible')
        { blink(6); }
        else
        { blink(7); }
    }
    else
    { if (e.style.visibility == 'visible')
        { blink(7); }
        else
        { blink(6); }
    }
}

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 + "');", 200); }
}
