function openWin(URL, width, height) {
  if (!width) { width = 780; }
  if (!height) { height = 580; }
  window.open(URL, "crxWin", "width="+width+",height="+height+",scrollbars=yes,toolbar=no,status=no,resizable=no");
}
function go() {
  var selectedValue = document.selecter.select1.options[document.selecter.select1.selectedIndex].value;

  if (selectedValue != "none") {
    switch(selectedValue) {
      case "bucksport":
        page = "bucksrefill.do";
        break;
      case "bluehill":
        page = "bluehillrefill.do";
        break;
      case "eaglelake":
        page = "eaglelakerefill.do";
        break;
      case "fairfield":
        page = "fairfieldrefill.do";
        break;
      case "fortkent":
        page = "fortkentrefill.do";
        break;    
      case "gorham":
        page = "gorhamrefill.do";
        break;
      case "gray":
        page = "grayrefill.do";
        break;
      case "houlton":
        page = "houltonrefill.do";
        break;
      case "madawaska":
        page = "madawaskarefill.do";
        break;
      case "randolph":
        page = "randolphrefill.do";
        break;
      case "raymond":
        page = "raymondrefill.do";
        break;
      case "saco":
        page = "sacorefill.do";
        break;
      case "scarborough":
        page = "scarboroughrefill.do";
        break; 
      case "newport":
        page = "newportrefill.do";
        break;    
      case "dexter":
        page = "dexterrefill.do";
        break;
      case "corinth":
        page = "corinthrefill.do";
        break;  
      case "cornish":
        page = "cornishrefill.do";
        break;            
    }
  }
  
  openWin("https://www.communityrx.com/crx/"+page);
}
function writeToday() {
  var theMonth = "";
  var theMonthName = ""
  var theWeekday = "";
  var theYear = "";
  var theDate = new Date();

  theMonth = theDate.getMonth();
  theWeekday= theDate.getDate();
  theYear = theDate.getFullYear();

  switch (theMonth) {
    case 0:
      theMonthName = "January ";
      break;
    case 1:
      theMonthName = "February ";
      break;
    case 2:
      theMonthName = "March ";
      break;
    case 3:
      theMonthName = "April ";
      break;
    case 4:
      theMonthName = "May ";
      break;
    case 5:
      theMonthName = "June ";
      break;
    case 6:
      theMonthName = "July ";
      break;
    case 7:
      theMonthName = "August ";
      break;
    case 8:
      theMonthName = "September ";
      break;
    case 9:
      theMonthName = "October ";
      break;
    case 10:
      theMonthName = "November ";
      break;
    case 11:
      theMonthName = "December ";
  }
  document.write(theMonthName+theWeekday+",&nbsp;"+theYear);
}