function callpopup(popupname, formname, fieldname) {
  var newWindow;

  switch(popupname) {
    case 'date':
      newWindow = open('/view_date.html?fldname='+fieldname+'&frmname='+formname+'&time_check=0', 'view_date', 'width=190,height=170,resizable=yes,status=yes,menubar=yes,scrollbars=yes');
      break;
  }
}

function viewContact(contact_id) {
  refine_popup = window.open('view_contact_info.html?contact_id=' + contact_id, 'Show_Contact', 'location=0,menubar=0,resizable=1,height=233,width=300,innerHeight=233,innerWidth=300,scrollbars=0,toolbar=0,titlebar=0');
  refine_popup.creator = self;
  refine_popup.focus();
}

function popRules(URL)
{
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, 'popRules','toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=yes,width=800,height=560');");
}