INTERACTIONS OF THE MAGNETOSPHERES OF STARS AND CLOSE-IN GIANT PLANETS