// JavaScript Document
function writeHelp(helpIdx){
switch(helpIdx){
	case 0:
		document.getElementById("divHelpMsg").innerHTML =  "<br /><br />SoapCalc is a lye calculator for making soap.<br /><br />Making your own soap is fairly easy and a lot of fun.&nbsp; <a style='color:#0000FF' href='http://www.SoapCalc.net/default.asp'> The SoapCalc Home Page</a> can get you started if you are new to soapmaking.<br /><br />If you have some soapmaking experience (or are just curious), click the blue number buttons, in order, for basic insructions.&nbsp; <a  style='color:#0000FF' href='http://www.SoapCalc.net/info/helptext.asp' target='_blank'>Detailed instructions are here.</a><br /><br />SoapCalc lets you play 'what if' with your soap recipe.&nbsp; You can easily change what oils are used and their percentages, compute the recipe, then see if the soap's qualities are what you want (section 5).&nbsp; The View Recipe page displays your entire recipe with an optional graph.<br /><br />You can repeatedly change the oils used and their percentages; SoapCalc will provide an accurate estimation of the soap bar qualities each time you click Compute.  When your recipe is where you want it, click View/Print Recipe to get a detailed page for printing.<br /><br />";
		break;
	case 1:
		document.getElementById("divHelpMsg").innerHTML = "<br /><br /><span style='color:#0000FF;'><strong>Help # " + helpIdx + "</strong></span> &nbsp; Choose what kind of lye you will be using.  <ul><li>Sodium hydroxide, <strong>NaOH</strong>, is used to make soap bars. &nbsp;If you want to make bar soap, click the circle next to NaOH.</li><br /><li>Potassium hyroxide, <strong>KOH</strong>, is used to make liquid soap. &nbsp;This is a slightly more complicated process than making bar soap.  It involves adding the water in two stages: one for the soap cooking stage, the other for diluting the soap.  You can find more about it by Googling  'making liquid soap'. &nbsp;When making liquid soap, click the circle next to KOH.</li></ul>";
		break;
	case 2:
		document.getElementById("divHelpMsg").innerHTML = "<br /><br /><span style='color:#0000FF;'><strong>Help # " + helpIdx + "</strong></span> &nbsp; This value is the total weight of all the oils that will be used in your recipe. &nbsp;You can use either pounds, ounces or grams as your unit of measurement.<br /><br />No matter what unit of measurement you use to create your recipe, the calculated values are displayed in pounds, ounces and grams after clicking the 'View/Print Recipe' button.<br /><br />";
		break;
	case 3:
		document.getElementById("divHelpMsg").innerHTML = "<br /><br /><span style='color:#0000FF;'><strong>Help # " + helpIdx + "</strong></span> &nbsp; <strong>Water as % of Oils</strong>' is the simplest way to determine the amount of water used in your recipe. &nbsp;It is recommended that beginners use this method and use the default value of 38%. &nbsp;More experienced users have the option of reducing this percentage, typically to around 33%. &nbsp;Example: If the total weight of the oils in your recipe is 1 pound, the amount of water in which the lye is mixed would be 0.38 pounds.<br /><br />'<strong>Lye Concentration</strong>' - Advanced users can set the Lye percentage of the water & lye solution directly.  Example:  If you want lye to be 34% of (lye + water), check the box and enter 34  in the text box to the right of the check box before clicking 'Calculate Recipe'. &nbsp;<br /><br />'<strong>Water : Lye Ratio</strong>' - Advanced users can also set the Water:Lye ratio directly.  Example:  If you want the water to lye ratio to be 2 to 1, check the box and enter 2:1 before clicking 'Calculate Recipe'.  To use these advanced options simply click the appropriate check box and enter the value in the text box to the right of the check box.  Click a checked box to uncheck it.<br /><br />";
		break;
	case 4:
		document.getElementById("divHelpMsg").innerHTML = "<br /><br /><span style='color:#0000FF;'><strong>Help # " + helpIdx + "</strong></span> &nbsp; <strong>Super Fat.</strong> &nbsp;Due to several possible variables it is safer to use less lye than needed to saponify the oils in your recipe (see FAQ #8 under 'Much more...').  This is called a <strong>lye discount</strong> and 5% is generally considered a safe number to use. &nbsp;Because discounting the lye by 5% leaves 5% of unsaponified oils in your soap bar this number is also referred to as <strong>super fat</strong>. &nbsp;That extra 5% of superfat not only is a safety factor, it also gives the soap bar extra skin conditioning qualities because approximately 95% of the bar is soap and approximately 5% of the bar is an oil mixture that is deposited on the skin.<br /><br /><strong>Fragrance.</strong> &nbsp;if you are working in Ounces or Pounds a fragrance ratio of 0.8 ounces per pound is a good starting point.  Of course you can vary this up or down.  The metric equivalent would be 50 grams per kilogram.<br /><br />";
		break;
	case 5:
		document.getElementById("divHelpMsg").innerHTML = "<br /><br /><span style='color:#0000FF;'><strong>Help # " + helpIdx + "</strong></span> &nbsp; The column on the left displays % values for both 'Soap Qualities' and 'Fatty Acids' for the oil that is selected from the list in the middle of the page.  Go ahead, click a few to see the values change.&nbsp; Place your mouse over the Soap Qaulities (Hardness, Cleansing, etc.) to see the recommended range of values for the All column.<br /><br />The righthand column (All) displays the weighted average values for all the oils in your recipe.  These values are displayed after you enter your recipe and click 'Calculate Recipe'.<br /><br />After 'Calculate Recipe' is clicked the 'Sat : Unsat' ratio is displayed at the bottom of this column.  'Sat : Unsat' is the ratio of saturated to unsaturated oils/fats in your recipe.  To learn more, click on the 'Fatty Acids' link at the top of this section."; 
		break;
	case 6:
		document.getElementById("divHelpMsg").innerHTML = "<br /><br /><span style='color:#0000FF;'><strong>Help # " + helpIdx + "</strong></span> &nbsp; To add an oil to your recipe, select it from the list in the middle and <span style=\"color:Red;\">double click it</span> or click the '<span style=\"color:Red;\">+</span>' in the 'Soap Recipe' section just to the right of the oil list.<br /><br />To remove an oil from your recipe, click the '<span style=\"color:Red;\">-</span>' next to it. &nbsp;To replace an oil in the recipe with another oil from the list, select the new oil in the list with one click then click the '<span style=\"color:Red;\">+</span>' next to the oil you want to replace.<br /><br />";
		break;
	case 7:
		document.getElementById("divHelpMsg").innerHTML = "<br /><br /><span style='color:#0000FF;'><strong>Help # " + helpIdx + "</strong></span> &nbsp; <strong>'Calculate Recipe'</strong> will compute your recipe.  SoapCalc will  pop up friendly reminders if there have been any typos or if any information is invalid or missing.  <br /><br />After clicking <strong>'Calculate Recipe'</strong>, click <strong>'View/Print Recipe'</strong> to open a new Window or a new Tab in your browser to view or print the recipe details including lye and water amounts.<ul><li>If your browser is set to open new windows, it will open the 'View/Print Recipe' page in a new window.</li><li>If you have your browser set to open new windows in a tab, the browser will switch to new Tab only the first time you click 'View/Print Recipe'. &nbsp;After that you will need to click on the Tab to display its contents.</li><ul><li>IE7 will turn the tab orange.</li><li>Firefox will briefly show 'Loading...' then the Tab will be shaded.</li></ul></li></ul><strong>Converting weight recipes to percent.</strong><ol><li>Click the round weight button at the top of the right column in the Recipe section.</li><li>Enter the oils and weights</li><li>Fill in other necessary values and click 'Calculate Recipe'</li><li>Click the round '%' button, enter your 'Total Oil Weight' (Help button 2).</li><li>Click 'Calculate Recipe'.</li></ol><br /><strong>'Reset Recipe'</strong> will clear SoapCalc and reset SoapCalc to default values.<br /><br />Checking the '<strong>Multiple tabs</strong>' box will open a new window or tab each time you click 'View/Print Recipe'.<br /><br />Checking the '<strong>Bold</strong>' box will display bold ingredient values in 'View/Print Recipe'.<br /><br /><strong>Note</strong>: By design, some buttons are grayed out (disabled) until 'Calculate Recipe' has been clicked.<br /><br />";
		break;
	case 8:
		document.getElementById("divHelpMsg").innerHTML = "<br /><br /><span style='color:#0000FF;'><strong>Help # " + helpIdx + "</strong></span> &nbsp; After clicking 'Calculate Recipe', your recipe can be saved using the 'Save Recipe' button.  Up to 8 recipes can be saved as cookies on your PC - choose one of the recipe names in the drop down menu before clicking 'Save Recipe'. (Sorry, the recipe names can not be changed.)<br /><br />Recipes will be saved using percentages if the round '%' button is selected; or in weights if the round weight button is selected.<br /><br /><strong>Note</strong>: By design, some buttons are grayed out (disabled) until 'Calculate Recipe' has been clicked.<br /><br />";
		break;
	case 9:
		document.getElementById("divHelpMsg").innerHTML = "<br /><br /><span style='color:#0000FF;'><strong>Help # " + helpIdx + "</strong></span> &nbsp; After clicking 'Calculate Recipe', 2 graphs are displayed one for Soap Qualities and one for Fatty Acids. &nbsp;The 'Print Graph' button will display the graphs in a separate page for printing.<br /><br /><br /><br /><strong>Note</strong>: By design, some buttons are grayed out (disabled) until 'Calculate Recipe' has been clicked.";
		break;
	default:
		document.getElementById("divHelpMsg").innerHTML = "<br /><br />No help available.";
		break;
}}
