function przestyluj()
{
    if (navigator.userAgent.indexOf("MSIE") != -1) {
        if (document.compatMode == 'CSS1Compat') {

            //style dla IE w trybie strict (np. IE 6)
            var tmp = document.getElementById("tekst");
            tmp.style.width = 200;

        } else {

            //style dla IE w trybie quirks (np. IE 5)
            var tmp = document.getElementById("tekst");
            tmp.style.width = 300;

        }
    }
}

