// JavaScript Document
/* to call from main page to print page */

function writeContent(pagevar)
{
  var getContentWin=window.opener;
  var contentPrint=getContentWin.document.getElementById('content-links').innerHTML;
  document.getElementById('getContent').innerHTML=contentPrint;
  if(window.opener.location.pathname == "/pdc/zostavax/request-more-information/Shingles-Information.jsp")
  {
	  document.getElementById('JobRMI').style.display='inline';
	  document.getElementById('JobNum').style.display='none';
  }
}


 function printWindow()
 {
    var path = document.location.pathname;

    switch (path)
    {
       case "/shingles-questions.html":
          window.open("/shingles-questions_print.html");
          return;
      
       case "/pdc/zostavax/findLocation.do":
          var searchType = window.searchType;
          if (searchType != "MAVP" && searchType != "ZSTVX")
          {
             searchType = "ZSTVX";
          }
          goToPrinterFriendly("medSearch", 10, searchType)
          return;
    }

    // all others   
    window.open("/print.html");
 }