        window.name = "first";
        
        var mywin = null;
        userwin = new Array();
        userwin.closed = false;
        function RegWin(page,features)
          { 
            var width   = 640;
            var height  = 480;
            
            // make sure cookies are enabled
            document.cookie = "CookieTest=" + escape(0) + "; expires=";
            var cookieLen=document.cookie.length;
            
            if (!cookieLen)	{  
               page='/cgi-bin/user/cookerr.pl/CREC';
		           	} 
			
            if ((mywin == null) || (userwin.closed==true) )
              {
                mywin = true;
                if (parseInt(navigator.appVersion) >= 4)
                  {
                    var top     = (screen.availHeight - height) / 2;
                    var screenY = top;
                    var left    = (screen.availWidth - width) / 2;
                    var screenX = left;
                    userwin = window.open(page, "reg", "width="+width+",height="+height+",screenX="+screenX+",screenY="+screenY+",top="+top+",left="+left+",resizable,scrollbars,status");
                  }
                else
                  { alert('You must have a version 4 browser or later to use the archives.');}
              }
            else
              { userwin.focus; }
          }    

          
          
function Print_Window(docid)
{ 
	var width   = 640;
	var height  = 480;
	if (parseInt(navigator.appVersion) >= 4)
	{
		var top     = (screen.availHeight - height) / 2;
		var screenY = top;
		var left    = (screen.availWidth - width) / 2;
		var screenX = left;
		var BrowseWindow = window.open("/ar-search/we/Archives/?p_action=print&p_docid=" + docid, "Print", "width="+width+",height="+height+",screenX="+screenX+",screenY="+screenY+",top="+top+",left="+left+",toolbar,status,menubar,scrollbars,resizable");
	}
	else
		{var BrowseWindow = window.open("/ar-search/we/Archives/?p_action=print&p_docid=" + docid, "Print", "width="+width+",height="+height+",toolbar,status,menubar,scrollbars,resizable");}
}
		



































































