<!--
// Cameron Gregory - http://www.bloke.com/
// http://www.bloke.com/javascript/Select/
// This line and about must remain .. then you can use it for free...
//
// ChangeLog
// Sun Apr 18 17:46:53 EDT 1999
// created
//
// Usage:
//  Select(text,urls)
//  SelectLong(text,urls,target)
//     text             text to use for URL's
//     urls             is space or comma separated list of url's
//     target           the target frame

var urlSet;

function jump(f)
{
  document.location=f.jumpbot.options[f.jumpbot.selectedIndex].value;
}

function SelectLong(text,urls,tgt)
{
/* si: start index 
** i: current index
** ei: end index
** cc: current count
*/
 imageSet = new Array();
 urlSet = new Array();
 si = 0; 
 cc=0;
 ei = text.length;
  for (i=1;i<ei;i++) {
    //if (text.charAt(i) == ' ' || text.charAt(i) == ',') {
    if (text.charAt(i) == ',') {
      imageSet[cc] = text.substring(si,i);
      cc++;
      si=i+1;
      }
    }
 si = 0; 
 ci=0;
 ei = urls.length;
  for (i=1;i<ei;i++) {
    if (urls.charAt(i) == ' ' || urls.charAt(i) == ',') {
      urlSet[ci++] = urls.substring(si,i);
      si=i+1;
      }
    }

  document.writeln("<FORM>");
  document.writeln("<SELECT name=jumpbot onChange='jump(this.form,"+tgt+");'>");
str="";
  for (i=0;i<cc && i<ci ;i++) {
    document.writeln("<OPTION value='"+urlSet[i]+"'>"+imageSet[i]+"</OPTION>");
       str += "<OPTION value='"+urlSet[i]+"'>"+imageSet[i]+"</OPTION>";
    }
  

  document.writeln("</SELECT></b></FORM>");
}

function Select(text,urls)
{
  SelectLong(text,urls,null);
}
// -->