Question: I'm want to use client-side printing to print multiple documents but want some more control over the print functionality or print dialog. This is not possible in IE but I noticed that chrome browser has it own print dialog compared to the default windows print dialog.

Is there an API for the chrome print that I could use in JavaScript?

Answer: 
there are many possible solutions for this kind of problem, eg:

* use [enums](https://stackoverflow.com/questions/2913495/refactoring-if-else-logic)
* use chain of responsibilty pattern if it is suitable
* refactor your swithes to private methods for more readable code

Martin Fowler - Refactoring can be a good source (chapter 9 - Simplifying conditional expressions)
I suggest you to store costs somewhere in database instead of not hard-coded. this will reduce your code to db connection and query.