function makeprefs()
{
var pcomments = new Array (
"**** MySQL Settings: ***** MySQL server",
"MySQL username",
"MySQL password",
"MySQL database [default value recommended]",
"Posts Table [default value recommended]",
"Temp. Posts Table [default value recommended]",
"Comments Table [default value recommended]",
"Username Table [default value recommended]",
"Themes Table [default value recommended]",
"Images Table [default value recommended]",
"Upload Key Table [default value recommended]",
"**** Personal Settings: **** Your name",
"Title of your site",
"URL of your site, e.g.: http://www.mysite.com/rilkecms/",
"Description of your site",
"How you refer to the previous entry",
"How you refer to the next entry",
"URL / permanent link to a particular post",
"Text shown for link when on most recent post",
"Text shown for link when on first post",
"How many related posts are to be shown",
"How an entry is referred to",
"Keyword 1 for related posts classification",
"Keyword 2 for related posts classification",
"Keyword 3 for related posts classification",
"**** Commenting System Settings: **** path to commenting system",
"main page for commenting system",
"What a comment is called - i.e. review/comment/thought",
"What comments are called - i.e. reviews/comments/thoughts",
"the variable for a blog post",
"not used, but set to blank to prevent breakage",
"not used, but set to blank to prevent breakage",
"Contact Person (not currently used)",
"Address (not currently used)",
"Business Name (not currently used)",
"Telephone (not currently used)",
"Address (not currently used)",
"Business Description (not currently used)",
"demo title (not currently used)",
"configure uploads file name (see uploads help in setup dir)")
;

var ourform = document.forms[0];
//alert (ourform.length);
var allvars = "";

for (i=0;i<(ourform.length - 2);i++)
	{
		if (!allvars)
			{
			//cannot append if allvars is not defined
			allvars = ("\n" + "$" + ourform.elements[i].name + " = ");	
			}
		else
			{
			allvars += ("\n" + "$" + ourform.elements[i].name + " = ");
			}
		allvars += "\"" + ourform.elements[i].value + "\"" + ";" + "//" + pcomments[i];	
		allvars += "\n \n";
		
	}
  //alert(allvars);	
  ourform.prefs.value = "<?php \n include(\"vendor.php\");\n" + "\n //Preferences File for Rilke CMS (gen. by Setup Wizard)"  +  allvars + "\n ?>";
}
