Hi,
pls. look at this code below. it might help u
function openCalendar(XX) { if (XX.disabled==false){ voidValdiate = true; // this mean that the page is opened via a Model Dialog if (window.dialogArguments != null && (typeof(dialogArguments.window) != 'undefined')){ var win =dialogArguments.window.open(webApplicationName + '/HR_Common/DecisionsUCForms/Popups/frmOverTimeDate.aspx?obj=' + XX.id ,'_blank','height=300,width=300,top=200,left=250,status=no,toolbar=no,menubar=no,location=no,titlebar=no'); // give pages name win.name = '__HGSChildWindow'; window.name = '__HGSParentWindow'; // set the Parent, Opener for (window.open) win.parentWindow = window; win.opener = window; // set the Parent, Opener for dialogArgument window.parentWindow = dialogArguments.window; window.opener= dialogArguments.window; } else { window.open(webApplicationName + '/HR_Common/DecisionsUCForms/Popups/frmOverTimeDate.aspx?obj=' + XX.id ,'_blank','height=300,width=300,top=200,left=250,status=no,toolbar=no,menubar=no,location=no,titlebar=no'); } } }