
function openPDF(pdfURL) {
	var width = 640;
    var height = 550;
	var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + 
    ",status,resizable,left=" + left + ",top=" + top + "screenX=" + 
    left + ",screenY=" + top+",toolbar=no,directories=no,status=no,location=no,menubar=no,scrollbars=yes,resizable=yes";    		
  thisWindow = window.open(pdfURL+"#zoom=scale&view=fit","MedAmericaPDF",windowFeatures)
 if (window.focus)
  {
    thisWindow.focus();
  }
 }
function openArchive() 
{
  select = document.getElementById("archive");
  form = select.value;
  if (form == "selector") {
    alert("Please select a newsletter from the archive before clicking \"Submit\"");
  } else {
    openPDF(form);
  }
}
function selectState() 
{
  select = document.getElementById("state");
  form = select.value;
  if (form == "selector") {
    alert("Please select a State before clicking \"Submit\"");
  } 
  else 
  {
 location.href = '/groups/consumer/StatesIndex.jsp'+'?State='+form;
  }
}
