// 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;
  //document.getElementById('popup').style.display='none';

  if(window.opener.location.pathname == "/tell-a-friend.html")
		{
	
  	  document.getElementById('important-safety-information_print').style.display='none';

  }
		
  else if(window.opener.location.pathname == "/pdc/zostavax/request-more-information/Shingles-Information.jsp")
  {
	  
	  document.getElementById('important-safety-information_print').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");
 }
 
 
  function printFriendly()
 {
          var searchType = window.searchType;
          goToPrinterFriendly("medSearch", 10, searchType)
          return;
}
