if you create a modal dialog window and try to access any function from parent window, well its not possible, any browser will not allow you to access parent window functions unless it is a normal window. so the alternate possible solution is as below
modal window can return a value to parent window's calling function, so based on its value you can either change parent window variables or call
modal window can return a value to parent window's calling function, so based on its value you can either change parent window variables or call