What is $NIC, why are you forcing case with ==, and why the empty ELSE sections?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.