    function add_entry(date_selector, script_name) {
      var myurl = script_name + '?' + date_selector;
      myApp=open(myurl,'add_entry','resizable=yes,width=525,height=400');
      myApp.location.href = myurl;
      if (myApp.opener == null) myApp.opener = self;   
    }  
    function view_entry(appt_id, script_name) {
      var myurl = script_name+'?op=view&ws_id='+appt_id;
      myView=open(myurl,'view_entry','resizable=yes,width=300,height=250');
      myView.location.href = myurl;
      if (myView.opener == null) myView.opener = self;   
    }      

    function view_calendar_item(id, type) {
      var myurl = 'plugin_calendar_item.php?op='+type+'&id='+id;
      myView=open(myurl,'cal_item','resizable=yes,width=300,height=250');
      myView.location.href = myurl;
      if (myView.opener == null) myView.opener = self;   
    }      

    function view_visit(visit_id, script_name) {
      var myurl = script_name + '?op=view&id=' + visit_id;
      myView=open(myurl,'view_entry','scrollbars=yes,resizable=yes,width=350,height=300');
      myView.location.href = myurl;
      if (myView.opener == null) myView.opener = self;   
    }                 
    function view_presentation(present_id, script_name) {
      var myurl = script_name + '?op=view&id=' + present_id;
      myView=open(myurl,'view_entry','scrollbars=yes,resizable=yes,width=350,height=300');
      myView.location.href = myurl;
      if (myView.opener == null) myView.opener = self;   
    }                 
    function view_agency(agn_id, script_name) {
      var myurl = script_name + '?op=view&id=' + agn_id;
      myView=open(myurl,'view_agency','scrollbars=yes,resizable=yes,width=350,height=300');
      myView.location.href = myurl;
      if (myView.opener == null) myView.opener = self;   
    }                 
    
    function close_entry(script_name) {
      self.close();
      opener.location = script_name;
    }          
    function full_path(anchor) 
    { 
      location.href = document.location + anchor;    
    }