Please read the link in my signature on asking questions the smart way, then try again.

Simply attaching your code isn't really going to get you very far. Instead, post an SSCCE and ask a specific...