function get_div(div)
{
    if (document.getElementById && document.getElementById(div))
    {
        return document.getElementById(div);
    }

    return false;
}

function show_div(div)
{
    if (div = get_div(div))
    {
        div.style.visibility = 'visible';
    }
}

function hide_div(div)
{
    //alert ("Hiding " + div);

    if (div = get_div(div))
    {
        div.style.visibility = 'hidden';
    }
}

function check_searchform()
{
    for (i = 0; i < document.searchform.archiveid.length; i++)
    {
        if (document.searchform.archiveid[i].checked)
        {
            return true;
        }
    }

    show_div('archiveoptionserror');
    return false;
}