Check out the SMF Function DB!
Use standards, that's what the Mozilla Foundation does, check http://www.w3.org/