
          // User_packages should not appear in the same window as the test
          // Later, we can do this in questions.asp, but for now we maintain compatibility with previous versions
          if ( window.opener && (window.name=='test_window') && !(window.opener.closed) ) {
            // reload the current parent document
            window.opener.location.reload();
            window.self.close();
          } else {};




function openTDSWindow() 
{
	// OpenTDSWindows opens document in new window and backs up the original window.
	// TDS will open a new window without the navigation toolbar here so this will
	// not be necessary during the practice or the demo tests.  Ideally, the 
	// originating page will create its own window for TDS, naming it TDSWindow.
          if (window.name != 'TDSWindow') 
					{
             newwin2=window.open(document.location.href,"TDSWindow",
               "scrollbars,resizable,status,top=2,left=2");
          } else 
					{
            // bring the tds windows to the front
            if(!window.opener.closed && window.opener.history) {
             window.opener.history.back();
           }
            window.resizeTo(screen.availWidth-50,screen.availHeight-50);
            window.opener.blur();
            window.focus();
          }
 }


