Modern standards compliant browsers (not IE) support the CSS2 properties:

min-height
min-width

These properties have been part of standards since 1997 but MS decided to ignore them.

Search on the web for hacks for IE. I've never had to use them but I'm pretty sure there are some simpler solutions for IE than all that javascript.