error 500 is internal server error...
turn off friendly error messages in IE and you'll get a better idea of which bit of code is wrong...
Tools, Internet Options, Advanced Tab, Un-tick show friendly HTTP error messages.
If you're still stuck, post the code and the error message
MX is like a box of chocolates - Someone's usually eaten the good bits already!