A judge has dismissed a lawsuit against the social networking Web site MySpace filed by the family of a 13-year-old girl who says she was sexually assaulted by a 19-year-old man she met online. The $30 million lawsuit accused the site of having no measures to protect children who use it.