Report question

Question: Detect iPhone 3G or 3GS (and iPod touch 2G vs iPod touch 3G) in JavaScript