Ethernet library -- Smaller and more functional

I wonder if you are running Arduino 0011 and millis is overflowing.

Anyway, why not replace:
if (millis() >= (lastmillis + (sek * 1000)))
with
delay(sek * 1000) ;