// JavaScript Document

ProgVersion = new Array(
new Array(
new Array("Select a Version"),
new Array("Microsoft Word 2010"),
new Array("Microsoft Word 2007"),
new Array("Microsoft Word 2003"),
new Array("Microsoft Word 2002 (XP)"),
new Array("Microsoft Word 2000"),
new Array("Microsoft Word 97"),
//new Array("Microsoft Word 7.0"),
//new Array("Microsoft Word 6.0"),
//new Array("Microsoft Works 8.0, 7.0"),
//new Array("Microsoft Works 2003"),
//new Array("Microsoft Works 2001, 2000, 6.0"),
//new Array("Microsoft Works '99, 4.x"),
//new Array("Microsoft Works 3.0"),
new Array("Microsoft Office 2008 for Mac"),
new Array("Microsoft Office 2004 for Mac"),
new Array("Microsoft Office v. X for Mac OS X"),
new Array("Microsoft Office 2001 for Mac")
//new Array("Microsoft Office 98 for Mac"),
//new Array("Microsoft Word 6.0 for Mac")
),
new Array(
new Array("Select a Version"),
new Array("Corel/WordPerfect X5"),
new Array("Corel/WordPerfect X4"),
new Array("Corel/WordPerfect X3"),
new Array("Corel/WordPerfect 12"),
new Array("Corel/WordPerfect 11"),
new Array("Corel/WordPerfect 10"),
new Array("Corel/WordPerfect 9"),
new Array("Corel/WordPerfect 8"),
new Array("Corel/WordPerfect 7"),
new Array("Corel/WordPerfect 6.1")
//new Array("Corel/WordPerfect 5.1 for DOS"),
//new Array("Corel/WP for Unix, Linux"),
//new Array("WP 3.x for Mac")
),
new Array(
new Array("Select a Version"),
new Array("Lotus AmiPro"),
new Array("Lotus WordPro 96, 97, Millennium"),
new Array("Lotus Notes 4.x"),
new Array("Lotus Notes 3.x")
),
new Array(
new Array("Select a Version"),
new Array("Source Code"),
new Array("Windows SDK"),
new Array("Java Spelling Engine"),
new Array("ActiveX Speller"),
new Array("ASP Spelling Server"),
new Array("Spelling Applet")
),
//new Array(
// new Array("Select a Version"),
//new Array("Spellex AccuCount")
//),
new Array(
 new Array("Select a Version"),
new Array("Spellex-Anywhere Single User"),
new Array("Spellex-Anywhere Multi User")
),
new Array(
new Array("Select a Version"),
new Array("Spellex for Outlook Express Single User"),
new Array("Spellex for Outlook Express Multi User")
),
new Array(
 new Array("Select a Version"),
new Array("Spellex for Internet Explorer Single User"),
new Array("Spellex for Internet Explorer Multi User")
),
new Array(
new Array("Spellex for Tablet PC")
),
new Array(
new Array("Select a Version"),
new Array("Medical Dictionary CD-ROM"),
new Array("Proofing Tools"),
new Array("Handheld Speller")
)
);
function fillSelectFromArray(selectCtrl, itemArray, goodPrompt, badPrompt, defaultItem) {
var i, j;
var prompt;
// empty existing items
for (i = selectCtrl.options.length; i >= 0; i--) {
selectCtrl.options[i] = null; 
}
prompt = (itemArray != null) ? goodPrompt : badPrompt;
if (prompt == null) {
j = 0;
}
else {
selectCtrl.options[0] = new Option(prompt);
j = 1;
}
if (itemArray != null) {
// add new items
for (i = 0; i < itemArray.length; i++) {
selectCtrl.options[j] = new Option(itemArray[i][0]);
if (itemArray[i][1] != null) {
selectCtrl.options[j].value = itemArray[i][1]; 
}
j++;
}
// select first item (prompt) for sub list
selectCtrl.options[0].selected = true;
   }
}
