/////
//
//	ft.js - File Tool JavaScript Utilities
//
//	Developed by: First Time Software
//
//	Wed Jul 28 15:06:05 EDT 2004 - F Harvell
//
/////
//
//	Website application technologies developed by:
//
//	First Time Software
//	http://www.firsttimesoftware.com
//
/////
//
//	Copyright &copy; First Time Software 2001 - 2004
//
//	All rights reserved worldwide by First Time Software.
//	Usage rights have been granted to the website owner according to the
//	terms and conditions of the First Time Software License Agreement.
//
/////
//
// Version 2.1, $Id: ft.js,v 1.2 2004/12/02 18:36:49 fharvell Exp $
//
/////


// open loading window and call application to load options
function
fileTool(
  obj,
  u,
  i,
  t
) {
  u = u + '?token=' + t + '&form=' + obj.form.name + '&ft=' + escape(obj.form['fts_filetool' + i].value);
  toolWin = window.open(u, 'filetool', 'dependent,width=595,height=460,scrollbars');
  toolWin.focus();

  return false;
}

// set an input option
function
setFTOpt(
  f,
  e,
  v
) {
  d = window.opener.document;
  s = d.f ? d.f.elements[e].options : d.getElementById(e).options;
  s.length = 0;
  s.length = 1;
  s[0].text = s[0].value = v;
  s.selectedIndex = 0;
}
