Diagnostic and therapeutic procedures during laparoscopy for sterility and pelvic pain.