function changeDisplay(id, action){
    if (action=="hide"){
        hideDisplay(id);
        //setTimeout('hideDisplay("' + id + '");', 1000);
        //alert('You are out');
    }
    else document.getElementById(id).style.display = "block";
}

function hideDisplay(id){
    document.getElementById(id).style.display = "none";
}

function changeNrRes(form){
    var newIndex = form.nrRes.selectedIndex; 
    cururl = 'http://www.britstyle.ro/?page=listing&nrRes=' + form.nrRes.options[ newIndex ].value;
    window.location.assign(cururl);
}

function changeCat(form){
    var newIndex = form.catId.selectedIndex; 
    cururl = 'http://www.britstyle.ro/?page=listing&catId=' + form.catId.options[ newIndex ].value;
    window.location.assign(cururl);
}

function changeType(form){
    var newIndex = form.typeId.selectedIndex; 
    cururl = 'http://www.britstyle.ro/?page=listing&typeId=' + form.typeId.options[ newIndex ].value;
    window.location.assign(cururl);
}

function changeBrand(form){
    var newIndex = form.brandId.selectedIndex; 
    cururl = 'http://www.britstyle.ro/?page=listing&brandId=' + form.brandId.options[ newIndex ].value;
    window.location.assign(cururl);
}

function changeAvail(form){
    var newIndex = form.availId.selectedIndex; 
    cururl = 'http://www.britstyle.ro/?page=listing&availId=' + form.availId.options[ newIndex ].value;
    window.location.assign(cururl);
}

function changeSize(form){
    var newIndex = form.sizeId.selectedIndex; 
    cururl = 'http://www.britstyle.ro/?page=listing&sizeId=' + form.sizeId.options[ newIndex ].value;
    window.location.assign(cururl);
}