Hi,

Was hoping someone could help me out here.

Parent Page
Code:
<script>
function ShowDialog()
{
//declare a string variable

var retval="";

//show modal dialog box and collect its return value

retval=window.showModalDialog
('dialogboxhostframe.htm',window,'dialogHeight: 250px; 
dialogWidth: 200px;
 dialogTop: 200px; 
dialogLeft: 300px;
 edge: Raised; 
center: Yes; 
scroll: No;
 help: No; 
resizable: No; 
status: Yes; 
unadorned: Yes;');

//check if user closed the dialog 
//without selecting any value

if(retval!="" && retval!=null)
{
//fill the textbox with selected value
document.getElementById('True').checked=1
}
}
</script>
Child Page
Code:
<script>
function CloseWindow()
{
//set return value of the dialog box or dialog result
top.returnValue=
document.getElementById("True" ).value;
//close the dialog window
window.close();
}
</script>
When I select the value it isnt passed to the other page. Anyone got any ideas ? I'm stumped.