Change the javascript function as below
parent.banner.document.bgColor = p;
parent.frame1.document.bgColor = p;
parent.frame2.document.bgColor = p;
parent.changcolor.document.bgColor = p;
parent.main.document.bgColor = p;
NOTE: Frames and Frameset are obsolete, try changing page design if possible. Its will be more flexible and easy to manipulate and handle.
Regards,
Sujay Chakraborty