
function searchInitial(initial) {
  document.getElementById('drugFirstLetter').value=initial;
  document.getElementById('drugFirstLetterForm').submit();
}

function openDrugInfo(drugId, brandDrug) {
  var childW = 450;
  var childH = 420;
  var childX = (top.screen.availWidth - childW) / 2;
  var childY = (top.screen.availHeight - (childH + 40)) / 2;
  myChild = self.open('drugInfo.do?drugId=' + drugId + '&brandDrug=' + brandDrug,
                      'results',
                      'left=' + childX
                    + ',top=' + childY
                    + ',width=' + childW
                    + ',height=' + childH
                    + ',location=no'
                    + ',menubar=yes'
                    + ',resizable=yes'
                    + ',scrollbars=yes'
                    + ',status=no'
                    + ',toolbar=no');
  myChild.focus();
}

function openPrint(action) {
  var childW = 750;
  var childH = 620;
  var childX = (top.screen.availWidth - childW) / 2;
  var childY = (top.screen.availHeight - (childH + 40)) / 2;
  myChild = self.open(action,
                      'print',
                      'left=' + childX
                    + ',top=' + childY
                    + ',width=' + childW
                    + ',height=' + childH
                    + ',location=no'
                    + ',menubar=no'
                    + ',resizable=yes'
                    + ',scrollbars=yes'
                    + ',status=no'
                    + ',toolbar=no');
  myChild.focus();
}
