// Caller Stack utility JavaScript Function
// File:    callerStack.js
// Author:  Eric Baars
// WebGENCAT: 3.0
// Version: 1.1
// History:
//     4 Apr 2001  Initial creation
//    26 Jun 2001  Deal with deep-level calls...ETB
//    11 Jul 2001  Deal with independent window calls...ETB
//	  24 Jul 2002  Added check for create to do expansion into proper entry window...CJF

var callerTop = null;
var temp = top.name.split('_');
if (temp[1] == '0' || top.name == 'Browse1') {
	callerTop = null;
} else if (temp[1] == '1') {
	callerTop = top;
} else {
    if ( top.opener && top.opener.top.typeID == "Entry" )	{
		callerTop = top ;
	} else if ( top.opener ) {
		callerTop = top.opener.top.callerTop;
    } else {
		callerTop = null;
    }
}

