function SRC_verifyWindowAccess()
 {
 	try
 	{
	  /*
	   * Done if the edit window is closed
	   */
//		alert("window=" + window);
// 		alert("window.opener=" + window.opener);

	  if (window.opener.closed)
	  {
	    if (confirm("The editor window has been closed\r\n\r\n"
	        +       "    Close this search window?"))
	    {
	      window.close();
	    }
	    return false;
	  }
	  /*
	   * Done if there isn't an HTML editor associated with this window (how?)
	   */
//	alert("window.opener.document=" + typeof window.opener.document);
//	try {alert("window.opener.document.htmlareas=" + typeof window.opener.document.htmlareas);} catch (e) {}

	 	if ((!window.opener.document) || (!window.opener.document.htmlareas) || (window.opener.document.htmlareas.length == 0))
		{
	    if (confirm("There is no HTML editor associated with this window\r\n\r\n"
	        +       "          Close this search window?"))
	    {
	      window.close();
	    }
    return false;
	  }
	}
	catch (exception)
	{
    if (confirm("Unable to access an HTML editor for this window\r\n\r\n"
        +       "            Close this search window?"))
    {
      window.close();
    }
    return false;
	}
	return true;
}
/*
 * TwinPeaks common scripts
 *
 * Verify access to our parent window and the HTML editor
 */
TwinPeaks common scripts
Verify access to our parent window and the HTML editor
TwinPeaks common scripts Verify access to our parent window and the HTML editor
function SRC_verifyWindowAccess()
 {
 	try
 	{
	  if (window.opener.closed)
	  {
	    if (confirm("The editor window has been closed\r\n\r\n"
	        +       "    Close this search window?"))
	    {
	      window.close();
	    }
	    return false;
	  }
	 	if ((!window.opener.document) || (!window.opener.document.htmlareas) || (window.opener.document.htmlareas.length == 0))
		{
	    if (confirm("There is no HTML editor associated with this window\r\n\r\n"
	        +       "          Close this search window?"))
	    {
	      window.close();
	    }
    return false;
	  }
	}
	catch (exception)
	{
    if (confirm("Unable to access an HTML editor for this window\r\n\r\n"
        +       "            Close this search window?"))
    {
      window.close();
    }
    return false;
	}
	return true;
}
function SRC_verifyWindowAccess ( ) { try { if ( window . opener . closed ) { if ( confirm ( "The editor window has been closed\r\n\r\n" + "    Close this search window?" ) ) { window . close ( ) ; } return false ; } if ( ( ! window . opener . document ) || ( ! window . opener . document . htmlareas ) || ( window . opener . document . htmlareas . length == 0 ) ) { if ( confirm ( "There is no HTML editor associated with this window\r\n\r\n" + "          Close this search window?" ) ) { window . close ( ) ; } return false ; } } catch ( exception ) { if ( confirm ( "Unable to access an HTML editor for this window\r\n\r\n" + "            Close this search window?" ) ) { window . close ( ) ; } return false ; } return true ; }
TwinPeaks common scripts
 Verify access to our parent window and the HTML editor
TwinPeaks common scripts Verify access to our parent window and the HTML editor
/*
	   * Done if the edit window is closed
	   */ //		alert("window=" + window); // 		alert("window.opener=" + window.opener); /*
	   * Done if there isn't an HTML editor associated with this window (how?)
	   */ //	alert("window.opener.document=" + typeof window.opener.document); //	try {alert("window.opener.document.htmlareas=" + typeof window.opener.document.htmlareas);} catch (e) {}