Preparation, characterization, and CuX2 and CoX2 (X=Cl-, Br-, ClO-4) adsorption behavior of a polyhedral oligomer silsesquioxane functionalized with an organic base.