I used to use the following JavaScript code in my popup windows:

<script type="text/javascript">
function ChangeColor(color)
   opener.document.getElementById("bgcolor").value = color;
   opener.document.getElementById("xbgcolor").style.background = color;
After assigning the color to the 2 Id's, the popup window is closed. It worked perfect!
But now I want to use this code in an iFrame instead of a popup window.
But the code does not seem to work. Any one know how I can do the same thing in iFrame?