<!--
// tutaj wstaw źródło skryptu

function active_top_button(ident){
document.getElementById(ident).style.bottom = '3px';
}

function reset_top_button(ident){
document.getElementById(ident).style.bottom = '0px';
}

function txtlen(textid,numid,maxlen) {
txt=document.getElementById(textid).value;
zostalo=maxlen - txt.length;
if (zostalo<0){ zostalo = "O "+ -zostalo +" przekroczono"; }
document.getElementById(numid).value=zostalo;
}

function chars(textid,numid,minimum,maximum){
txt=document.getElementById(textid).value;
l=txt.length;
document.getElementById(numid).value=l;
if(l<minimum || l>maximum) document.getElementById(numid).style.color='red';
else document.getElementById(numid).style.color='black';
}

function showColor(script, tit, img) {
    urel = script + "?title=" + tit + "&img=" + img;
    winWidth = 500;
    winHeight = 210;
    if ((document.popup == null) || (document.popup.closed)) {
        posH = (window.screen.width - winWidth) / 2;
        posV = (window.screen.height - winHeight) / 2;
    document.popup = window.open(urel, "",
            "height=" + winHeight + ",width=" + winWidth
            + ",top=" + posV + ",left=" + posH
            + "status=no,location=no,toolbar=no" );
    } else {
        document.popup.location = urel;
        document.popup.focus();
    }
}

function element_disp(element_id,last_element){
    disp_style = document.getElementById(element_id).style.display;
    if(disp_style == 'none'){
        for(i=1;i<=last_element;i++){
            i_element_id = 'forum' + i;
            if(element_id == i_element_id)
                document.getElementById(i_element_id).style.display = 'block';
            else
                document.getElementById(i_element_id).style.display = 'none';
            }
        }
    else
        document.getElementById(element_id).style.display = 'none';
}

function element_disp_change(element_id){
    disp_style = document.getElementById(element_id).style.display;
    if(disp_style == 'none'){
        document.getElementById(element_id).style.display = 'block';
        }
    else
        document.getElementById(element_id).style.display = 'none';
}


function search_box(thetype){
    //document.getElementById('artsterr').style.display = 'none';

    switch(thetype){
        case 1:
            document.getElementById('artsterr').className = 'search inuse';
            document.getElementById('artblock').style.display = 'block';
            document.getElementById('forumsterr').className = 'search other';
            document.getElementById('forumblock').style.display = 'none';
        break;
        case 2:
            document.getElementById('artsterr').className = 'search other';
            document.getElementById('artblock').style.display = 'none';
            document.getElementById('forumsterr').className = 'search inuse';
            document.getElementById('forumblock').style.display = 'block';
    }
}


//-->

