// Avoid framing - Give Caesar his due!
if(self != top) {
  top.location = self.location; 
}

// Now on for some lame Javascript code, I like Perl better ;)

// free2list()
// -----------
// Used to simulate a combobox using a listbox and an input field:
// when a predefined value is selected, the input field takes the
// same value. (should be triggered by the OnChange event of the
// listbox).
// the OnChange on the input field should set the List.selectedIndex
// so the List displays the "the text field is autoritative" value,
// and that both controls are consistent at any time.

// Controls may not be consistent for navigators without Javascript.
// In that case, I've found trusting the listbox over the input field
// is better.

function list2free(List,Text)
{
  Index = List.selectedIndex;
  if (Index>0) {
    Text.value = List.options[Index].text;
//  List.selectedIndex=0;
  }
}

// Avoid form "bouncing"

function formSubmit(f) {
  f.submit.disabled = true;
  return true;
}
