awnversion=new String('2-52')
function setsub(ind) {
var subname = document.gF.gN.options[ind].value
var flist = eval(subname + "F")
while (flist.length < document.gF.gP.options.length) {
rem = (document.gF.gP.options.length - 1)
document.gF.gP.options[rem] = null
}

for (var c=0; c < flist.length; c++) {
      document.gF.gP.options[c]= new Option(flist[c],flist[c])
    }


setinf(0)

}

function setinf(ind) {
document.gF.gP.selectedIndex=ind
var subname = document.gF.gN.options[document.gF.gN.selectedIndex].value
var ilist = eval(subname + "I")
document.gF.gI.value = ilist[ind]
}

function prog_select() {

document.write('<FORM NAME="gF">\n'+
'<center>'+
'<select SIZE="4" NAME="gN" onChange="setsub(this.selectedIndex)">\n'+
'<option value="brucesteers">Bruce Steers</option>\n'+
'<option value="billparker">Bill Parker</option>\n'+
'<option value="brianscott">Brian Scott</option>\n'+
'<option value="chriselliott">Chris Elliott</option>\n'+
'<option value="gabrielefavrin">Gabriele Favrin</option>\n'+
'<option value="hervedupont">Hervé Dupont</option>\n'+
'<option value="nilsgoers">Nils Goers</option>\n'+
'<option value="berndgollesch">Bernd Gollesch</option>\n'+
'</select>\n'+
'&nbsp;')

    billparkerF = new Array('AWNP_'+awnversion+'.lha')
    billparkerI = new Array('The Main AWNPipe Archive.\nComplete with Docs and Tutorials')
    brianscottF = new Array('IBSearch.lha')
    brianscottI = new Array('A tool for Browsing IBrowse Cache')
   brucesteersF = new Array('Aminet.awnp.lha','aweblastpages.lha','awnpmiami.lha','Clipper_AWNP.lha','Fix.backdrop.lha','qgl.lha','RexxJump.lha','SFSGui.lha')
   brucesteersI = new Array('A tool for Aminet.\nAllows Searching & Downloading\nReads the Recent uploads and Views Readmes',
                            'Get a list of AWeb Cached Files sorted by date.\nAllows Pattern Matching and Cache Cleaning.',
                            'Operate Miami From an AWNP GUI.\nSupports Alternative Miami settings file\nfor OffPeak times',
                            'Build Multiple Lists of text that when clicked\nare sent to the clipboard for pasting into\nanywhere you can',
                            'Cleans up any errors in a disks .backdrop file',
                            'A multiple program launcher designed for a single command line',
                            'Lists ALL functions in an ARexx script then makes\nyour editor Jump to the correct line of a chosen function',
                            'Manage your SFS partitions with this AWNP GUI')

  chriselliottF = new Array('AWNGui.lha')
  chriselliottI = new Array('An ARexx tool for developing gui text files.')

gabrielefavrinF = new Array('AWebModes.lha','HTTX.lha')
gabrielefavrinI = new Array('A Tool for Changing AWeb Settings','a program to convert files from HTML format')
   hervedupontF = new Array('AutoCat.lha')
   hervedupontI = new Array('Makes Easier Creation of .catalog files')
     nilsgoersF = new Array('SortCopyGUI.lha','THE.lha','USCleaner.lha')
     nilsgoersI = new Array('Graphical-User-Interface for SortCopy','WB3.5 HotKey utility','A Tool for Managing your User-Startup file')

 berndgolleschF = new Array('ReadVNGCache.lha')
 berndgolleschI = new Array('Voyager CacheBrowser Clone in ARexx for Version 3.x using AWNPipe as GUI (localization in development)')

document.write('<select SIZE="4" NAME="gP" onChange="setinf(this.selectedIndex)">\n<option>Some text to spread</option></select>')

document.write('&nbsp; <a href="Get_Programs" onClick="return(get_prog())"><img HSPACE=5 VSPACE=25 ALT="Download" src="img/onoff/down_off.gif" border=0></a>\n'+
'<br><textarea name="gI" rows=3 cols=50></textarea></center></FORM><br>')

document.gF.gN.selectedIndex=0
document.gF.gP.selectedIndex=0
setsub(document.gF.gN.selectedIndex)

}

function get_prog() {
     url = document.gF.gN.options[document.gF.gN.selectedIndex].value + "/" + document.gF.gP.options[document.gF.gP.selectedIndex].value

     if (confirm("Press OK to download\n\n" + url + "\n"))
     { document.location=url 
       return(false) }
     else
     { return(false) }
}
