function link()
{
    var w=document.wyszukiwarka;
    var producent = w.producent.value;
    var id = w.rozmiar.value;
    if(producent=='0' && id==472)
        alert (myvar = 'Nie wybra\u0142eś żadnej z opcji wyszukiwania.');
    else
    {
        if(producent=='0')
            producent='';
        else if(id<1204 && id!=472)
            producent=producent+'-';

        links = new Array();

        links[472] = 'opony-'+ producent + '.html';
        links[473] = 'opony-' + producent +'10.00-0-17.5.html';
        links[474] = 'opony-' + producent +'12.00-0-18.html';
        links[475] = 'opony-' + producent +'10.00-0-20.html';
        links[476] = 'opony-' + producent +'10.00-0-22.5.html';
        links[477] = 'opony-' + producent +'11.00-0-20.html';
        links[478] = 'opony-' + producent +'11.00-0-22.5.html';
        links[479] = 'opony-' + producent +'12.00-0-20.html';
        links[480] = 'opony-' + producent +'12.00-0-22.5.html';
        links[481] = 'opony-' + producent +'12.00-0-24.html';
        links[482] = 'opony-' + producent +'13.00-0-22.5.html';
        links[483] = 'opony-' + producent +'14.00-0-20.html';
        links[484] = 'opony-' + producent +'18-0-22.5.html';
        links[485] = 'opony-' + producent +'205-65-17.5.html';
        links[486] = 'opony-' + producent +'205-75-17.5.html';
        links[487] = 'opony-' + producent +'215-75-17.5.html';
        links[488] = 'opony-' + producent +'225-70-17.5.html';
        links[489] = 'opony-' + producent +'225-70-19.5.html';
        links[490] = 'opony-' + producent +'225-75-17.5.html';
        links[491] = 'opony-' + producent +'235-75-17.5.html';
        links[492] = 'opony-' + producent +'245-70-17.5.html';
        links[493] = 'opony-' + producent +'245-70-19.5.html';
        links[494] = 'opony-' + producent +'245-75-17.5.html';
        links[495] = 'opony-' + producent +'255-70-22.5.html';
        links[496] = 'opony-' + producent +'265-55-19.5.html';
        links[497] = 'opony-' + producent +'265-70-17.5.html';
        links[498] = 'opony-' + producent +'265-70-19.5.html';
        links[499] = 'opony-' + producent +'265-85-20.html';
        links[500] = 'opony-' + producent +'275-60-22.5.html';
        links[501] = 'opony-' + producent +'275-70-22.5.html';
        links[502] = 'opony-' + producent +'275-80-22.5.html';
        links[503] = 'opony-' + producent +'285-70-19.5.html';
        links[504] = 'opony-' + producent +'295-60-22.5.html';
        links[505] = 'opony-' + producent +'295-75-22.5.html';
        links[506] = 'opony-' + producent +'295-80-22.5.html';
        links[507] = 'opony-' + producent +'305-70-19.5.html';
        links[508] = 'opony-' + producent +'305-70-22.5.html';
        links[509] = 'opony-' + producent +'305-75-24.5.html';
        links[510] = 'opony-' + producent +'315-60-22.5.html';
        links[511] = 'opony-' + producent +'315-70-19.5.html';
        links[512] = 'opony-' + producent +'315-70-22.5.html';
        links[513] = 'opony-' + producent +'315-80-22.5.html';
        links[514] = 'opony-' + producent +'335-80-20.html';
        links[515] = 'opony-' + producent +'355-50-22.5.html';
        links[516] = 'opony-' + producent +'365-80-20.html';
        links[517] = 'opony-' + producent +'365-80-22.html';
        links[518] = 'opony-' + producent +'365-80-20.html';
        links[519] = 'opony-' + producent +'385-55-19.5.html';
        links[520] = 'opony-' + producent +'385-55-22.5.html';
        links[521] = 'opony-' + producent +'385-65-19.5.html';
        links[522] = 'opony-' + producent +'385-65-22.5.html';
        links[523] = 'opony-' + producent +'395-85-20.html';
        links[524] = 'opony-' + producent +'425-55-19.5.html';
        links[525] = 'opony-' + producent +'425-65-22.5.html';
        links[526] = 'opony-' + producent +'435-50-19.5.html';
        links[527] = 'opony-' + producent +'435-50-22.5.html';
        links[528] = 'opony-' + producent +'445-45-19.5.html';
        links[529] = 'opony-' + producent +'445-65-19.5.html';
        links[530] = 'opony-' + producent +'445-65-22.5.html';
        links[531] = 'opony-' + producent +'455-40-22.5.html';
        links[532] = 'opony-' + producent +'455-45-22.5.html';
        links[533] = 'opony-' + producent +'6.50-0-20.html';
        links[534] = 'opony-' + producent +'7.00-0-16.html';
        links[535] = 'opony-' + producent +'7.00-0-17.5.html';
        links[536] = 'opony-' + producent +'7.50-0-15.html';
        links[537] = 'opony-' + producent +'7.50-0-16.html';
        links[538] = 'opony-' + producent +'7.50-0-20.html';
        links[539] = 'opony-' + producent +'8.00-0-17.5.html';
        links[540] = 'opony-' + producent +'8.25-0-15.html';
        links[541] = 'opony-' + producent +'8.25-0-16.html';
        links[542] = 'opony-' + producent +'8.25-0-20.html';
        links[543] = 'opony-' + producent +'8.5-0-17.5.html';
        links[544] = 'opony-' + producent +'9.00-0-20.html';
        links[545] = 'opony-' + producent +'9.00-0-22.5.html';
        links[546] = 'opony-' + producent +'9.5-0-17.5.html';
        links[547] = 'opony-' + producent +'9.00-0-20.html';
        links[548] = 'opony-' + producent +'9.00-0-22.5.html';

        document.location = links[id];
    }
}

