// Copyright © 2004 Software Dunn Right

// 1= question (FAQ)
// 2= comment/suggestion
// 3= bug
// 4= other
// 5= login

// define the FAQ content here so that it can be easily 
// re-arranged and appended
var fTitle = new Array();
var fAlso = new Array();
var fText = new Array();
var nFAQ = 21;
var fi=0;

fTitle[fi] = "How can RecipeWorks help me be organized?";
fAlso[fi] = "<a href='../features.htm'>Features</a>";
fText[fi++] = "<p>RecipeWorks is designed to be used right in the kitchen to help alleviate the clutter and mess that is often found with loose recipes and unorganized books. With the powerful search tools available in RecipeWorks, you can easily find the recipe you are looking for without thumbing through several books. Not sure what to make for dinner? Just ask RecipeWorks! Enter a couple primary ingredients into the search tool and RecipeWorks will bring up some suggestions.</p><p>RecipeWorks can also help you plan your meals with the menu-planning feature. Schedule meals with a flexible repeat rule and your worries are over. Then, add the menu to your shopping list so you are sure to buy the items required for the menu.</p><p>RecipeWorks helps you keep track of your food storage and pantry inventory. When you use something from the inventory, it is automatically added to the shopping list. If you use a PDA, the item is added back to the inventory when you check it off the shopping list.</p><p>RecipeWorks links recipes to the USDA Nutrient Database to provide a complete Nutrition Facts table, including custom equations (such as netCarbs or WeightWatchers POINTS®)</p><p>With improved entry features, RecipeWorks makes it easy for you to capture recipes from the Web and to manually enter your own recipes. The new<i> RecipeWorks on the Web</i> feature provides thousands of recipes with easy access.</p>";

fTitle[fi] = "Will RecipeWorks run on a Mac?";
fAlso[fi] = "<a href='http://www.apple.com/macosx/applications/virtualpc/' target='_blank'>Virtual PC</a>";
fText[fi++] = "<p><b>Yes!</b> Using Virtual PC on Mac OS X or Mac OS 9, you can run RecipeWorks on a Mac. Sync'ing data with a Palm device will also work. Download the demo and give it a try!";

fTitle[fi] = "How can I purchase RecipeWorks?";
fAlso[fi] = "<a href='../purchase.htm'>Purchase</a>";
fText[fi++] = "<p>RecipeWorks is available for online purchase with your credit card or PayPal account. After payment is received, you will be able to download and install the software to your computer.&nbsp;</p>";

fTitle[fi] = "How can I try RecipeWorks?";
fAlso[fi] = "<a href='../download.htm'>Downloads</a>";
fText[fi++] = "<p>RecipeWorks is available for a free try-before-you-buy trial. The evaluation version is available on the <a href='../download.html'>download page</a> and is limited to the example recipes provided with it.&nbsp;</p>";

fTitle[fi] = "What is the RecipeWorks upgrade policy?";
fAlso[fi] = "";
fText[fi++] = "<p>RecipeWorks is a one-time investment. Future upgrades will always be free to existing customers. When upgrades are available customers will be notified via the<i> RecipeWorks on the Web</i> feature, an integrated web interface within the RecipeWorks program.</p>";

fTitle[fi] = "How do I install RecipeWorks on my desktop?";
fAlso[fi] = "";
fText[fi++] = "<p>After downloading the software, use an un-zipping utility (such as <a href='http://www.winzip.com' target='_blank'>WinZip</a>) to extract the setup files from the zip archive you downloaded. Then run the <i> setup.exe</i> program and follow the instructions. If you have problems installing the software, you may need to download the Windows Installer Redistributables available on the download page.</p><p>If you installed the evaluation version, you will need to use the Control Panel (Add/Remove Programs) to remove it before installing the full version.</p>";

fTitle[fi] = "How do I install RecipeWorks on my Palm or PocketPC?";
fAlso[fi] = "<a href='../Palm.htm'>Palm</a>&nbsp; <a href='../Pocket.htm'>PocketPC</a>";
fText[fi++] = "<p>After installing the desktop version of RecipeWorks, select the appropriate command from the Help menu. A PocketPC device should be connected to your computer. For a Palm device, RecipeWorks will be installed the next time you perform a HotSync.</p><p>If you installed the evaluation version on your Palm, it is recommended that you first remove it before installing the full version.</p><p>If you are having problems with the above Help menu commands, then install RecipeWorks manually to your PDA with:<br><b>- Palm:</b> C:\\Program Files\\RecipeWorks\\Palm\\RecipeWorks.prc<br><b>- PocketPC:</b> C:\\Program Files\\RecipeWorks\\PocketPC\\setup.exe<br>(Note: These are the typical locations. Your settings may vary.)";

fTitle[fi] = "How do I sync data between my desktop and my Palm or PocketPC?";
fAlso[fi] = "<a href='../binaries/RecipeWorks.chm'>Help topics</a>";
fText[fi++] = "<p>Detailed syncing instructions are included in the help topics of the desktop version.</p>";

fTitle[fi] = "On what operating systems is RecipeWorks supported?";
fAlso[fi] = "";
fText[fi++] = "<p>RecipeWorks is compatible with all versions of Windows providing the latest service pack of Internet Explorer has been installed. Window XP or Windows 2000 is recommended. RecipeWorks is also supported on PalmOS version 3.0 and later (including versions 5, 6 and later) and PocketPC 2000 and later.</p>";

fTitle[fi] = "Is RecipeWorks available for other platforms (Mac, Linux, Symbian, etc.)?";
fAlso[fi] = "<a href='../Customer/index.htm'>Customer Area</a>&nbsp; <a href='http://www.apple.com/macosx/applications/virtualpc/' target='_blank'>Virtual PC</a>&nbsp; <a href='http://www.winehq.org/' target='_blank'>WINE</a>";
fText[fi++] = "<p>Other than the ability to run RecipeWorks in a Windows emulator (such as Virtual PC on a Mac or WINE on Linux), there are no plans to port RecipeWorks to additional platforms. If you don't own a PC and wish to purchase RecipeWorks for use on your Palm device only, then you will be able to download it in the customer area after purchase.</p>";

fTitle[fi] = "My computer crashed. Where can I re-download RecipeWorks?";
fAlso[fi] = "<a href='../Customer/index.htm'>Customer Area</a>";
fText[fi++] = "<p>Logon to the customer area of the RecipeWorks website and download the software.</p>";

fTitle[fi] = "Can I add and modify recipes on my Palm or PocketPC?";
fAlso[fi] = "<a href='../Palm.htm'>Palm</a>&nbsp; <a href='../Pocket.htm'>PocketPC</a>";
fText[fi++] = "<p>With RecipeWorks version 3.0 and later, yes! You can also add and modify the Inventory, Shopping List, and Menu planning data on your PDA. All of this data can also be synced with your desktop. However, the ability to establish links to the USDA Nutrient Database is only available on the PC - the information is available in a read-only manner on the PDA versions.</p>";

fTitle[fi] = "What about metric units?";
fAlso[fi] = "";
fText[fi++] = "<p>RecipeWorks can be configured to automatically convert typical units of measurement to any unit you specify. So it is easy to convert from ounces and teaspoons to grams and milliliters.</p>";

fTitle[fi] = "Is RecipeWorks available for business partnerships?";
fAlso[fi] = "";
fText[fi++] = "<p>We are always interested in making RecipeWorks available to as many people as possible. We are particularly interested in bundling RecipeWorks with a website or another publishing entity. If you think RecipeWorks can help grow your business, please don’t hesitate to <a href='input.htm?subject=4'>contact us</a> with this form.</p>";

fTitle[fi] = "When will the next version be available?";
fAlso[fi] = "";
fText[fi++] = "<p>We are always working to improve RecipeWorks to help make it more useful. Major releases typically occur around the first quarter of each year, with intermediate release before then. If you have comments or suggestions for RecipeWorks, please submit them with <a href='input.htm?subject=2'>this form</a>.</p>";

fTitle[fi] = "After upgrading the PC or PocketPC edition, RecipeWorks does not open my recipe books.";
fAlso[fi] = "";
fText[fi++] = "<p>RecipeWorks version 4.0 stores the user-settings (defined in the Options dialog) in a different manner than previous versions. As a result, it will not automatically open your recipe books. Simply use the <b>File | Open</b> menu command to locate your recipe books. After this, they should be opened automatically in the future.</p>";

fTitle[fi] = "After upgrading the Palm edition, RecipeWorks does not open my recipe books.";
fAlso[fi] = "";
fText[fi++] = "<p>RecipeWorks version 3.0 uses a different format for the recipe book, menu planning, and shopping list databases. It is unable to read the old versions. Therefore, you will need to open your recipe books in the new PC edition and export them to your Palm device. </p>";

fTitle[fi] = "Will RecipeWorks run and access data from a memory card in my PDA?";
fAlso[fi] = "";
fText[fi++] = "<p>Yes. On both Palm and PocketPC devices RecipeWorks can be run from the memory card. It can also access recipe books stored on the memory card. For Palm devices, a new book will be created in the main memory, but can later be moved to the card. On PocketPC devices, you need to explicitly open recipe books from the storage card.</p>";

fTitle[fi] = "After exporting to Palm and performing a HotSync, the data is not installed to my Palm device.";
fAlso[fi] = "";
fText[fi++] = "<p>The Palm HotSync Manager does not recognize new database files to be installed if the Install Tool has not been used since the last HotSync. Try exporting the data <b>without</b> specifying the user name in the Export Wizard. If the Install Tool does not launch, then find the exported .pdb file and manually add it to the Install Tool. Consult the Troubleshooting guide in the Help topics for more information.</p>";

fTitle[fi] = "What text formats can RecipeWorks import?";
fAlso[fi] = "";
fText[fi++] = "<p>RecipeWorks will import text files that are in the Meal-Master, MasterCook, and Now You're Cooking! formats. It is also possible to create new recipes with a simple 3-step copy-and-paste operation.</p>";

fTitle[fi] = "Why is PayPal the preferred payment method?";
fAlso[fi] = "<a href='../purchase.htm'>Buy it now!</a>";;
fText[fi++] = "<p>PayPal is a quick an easy payment method. When you purchase RecipeWorks with PayPal, about 98% of the price goes to the developer. Other resellers take 30-40% and sometimes 50%. Once we are notified of a PayPal purchase, you will receive an email with download instructions.</p>";

// end FAQ content

function setUp()
{
	var from=window.location.search
	parts = from.split("=")
	document.mailer.subject.value=parts[1]
	var parts = eval(document.mailer.subject.value)
	if (parts == 1) {
		document.mailer.subject.value = "RecipeWorks: FAQ"
	}
	if (parts == 2){
		document.mailer.subject.value = "RecipeWorks: Comment"
	}
	if (parts == 3){
		document.mailer.subject.value = "RecipeWorks: Bug"
	}
	if (parts == 4){
		document.mailer.subject.value = "RecipeWorks: other"
	}
	if (parts == 5){
		document.mailer.subject.value = "RecipeWorks: login"
	}
	document.mailer.from_name.focus();
}

function writeIntro()
{
	var from=window.location.search
	parts = from.split("=")
	if (eval(parts[1]) == 1) {
		document.write("Question?</h4><p>If you didn't find the answer to your question in the <a href='index.htm#FAQ'>FAQ</a> or Troubleshooting guide then please use the form below. If you include your email address, you will receive a response soon.</p><p><b>Note:</b> Please make sure you have reviewed all available documentation. Replies to questions with an answer in the documentation will be delayed.")
	}
	if (eval(parts[1]) == 2){
		document.write("Comments and Suggestions</h4><p>Thank you for your comments. We are always working to improve RecipeWorks to help make it more useful. Your comments are very important to us.</p>")
	}
	if (eval(parts[1]) == 3){
		document.write("Found a bug?</h4><p>If you think you've encountered a <i>bug</i> in the program please use this form to submit your findings. Be as specific as possible explaining the steps to reproduce the problem. Also indicate the version of Windows and/or PDA you are using.</p><p><b>Note:</b> Before submitting a bug report, please verify you are using the latest version of RecipeWorks. Use the <i>RecipeWorks on the Web</i> feature (the Web tab in the lower right corner of the desktop edition) to determine if an update is available.</p><p><b>Note:</b> Please make sure you have reviewed all available documentation (<a href='index.htm#FAQ'>FAQ</a> and Troubleshooting guide). Replies to questions with an answer in the documentation will be delayed.")
	}
	if (eval(parts[1]) == 4){
		document.write("Contact Us</h4><p>Use this form to send a message concerning any aspect of RecipeWorks and/or business partnerships. Be sure to include your e-mail address so your request can be processed.</p>")
	}
	if (eval(parts[1]) == 5){
		document.write("Customer Login Problems</h4><p>If you are having problems logging in to the Customer Area, then use this form to explain the problem and your request will be handled soon. Please include the approximate date of your purchase and how it was purchased (PayPal, Handango.com, Palmgear.com, etc.).</p>")
	}
}

function writeLabel()
{
	var from=window.location.search
	parts = from.split("=")
	if (eval(parts[1]) == 1) {
		document.write("Question:")
	}
	if (eval(parts[1]) == 2){
		document.write("Comment:")
	}
	if (eval(parts[1]) == 3){
		document.write("Observation:")
	}
	if (eval(parts[1]) == 4){
		document.write("Message:")
	}
	if (eval(parts[1]) == 5){
		document.write("Information:")
	}
}

function writeFAQTable()
{
	var i=0;
	document.write("<h4><a name='FAQ'></a><br>Frequently Asked Questions</h4><ol>");
	while (i<nFAQ)
	{
		i=i+1;
		document.write("<li><b><a href='#q"+i+"' class='NoUnderline'><font size='2'>"+fTitle[i-1]+"</font></a></b>");
	}
	document.write("</ol><p>&nbsp;</p><hr>");
}

function writeFAQItems()
{
	var i=0;
	while (i<nFAQ)
	{
		i=i+1;
		document.write("<tr><td width='100%'>");
		document.write("<a name='q"+i+"'></a><b>"+i+". "+fTitle[i-1]+"</b>");
		document.write(fText[i-1]);
		document.write("<p><font size='2'>");
		if (fAlso[i-1]!="")
		{
			document.write("See also: "+fAlso[i-1]+"<br>");
		}
		document.write("<a href='#FAQ'>Return to top</a></font>");
		document.write("<hr></td></tr>");
	}
}