function polaczenieDo(ieWinUrl, w3Url) {
    var czyWin = (navigator.userAgent.indexOf("Win") != -1);
    // wywoanie funkcji z receptury 5.3
    var czyIE5Min = okreslNumerWersjiIE() >= 5;
    var czyW3 = (document.getElementById) ? true : false;
    if (czyWin && czyIE5Min) {
        location.href = ieWinUrl;
        return false;
    } else if (czyW3) {
        location.href = w3Url;
        return false;
    }
    return true
}
...
<a href="std/newProds.html" title="Wywietl nowe produkty" 
onclick="return polaczenieDo('ieWin/newProds.html', 'w3/newProds.html')">Nowe produkty</a>
