home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2002 March / PCWMAR02.iso / software / windowsxp / ftgateoffice / ftgateoffice.exe / Main / dialog.js < prev    next >
Encoding:
Text File  |  2001-11-29  |  1.2 KB  |  64 lines

  1. // var dir
  2. // declare and assign this variable before including this script
  3. //
  4.  
  5. if (!document.images) {}
  6. else {
  7.   ok0 = new Image();
  8.   ok0.src  = dir+"ok2.gif";
  9.   ok1 = new Image();
  10.   ok1.src = dir+"ok2on.gif";
  11.   apply0 = new Image();
  12.   apply0.src  = dir+"apply.gif";
  13.   apply1 = new Image();
  14.   apply1.src = dir+"applyon.gif";
  15.   cancel0 = new Image();
  16.   cancel0.src  = dir+"cancel.gif";
  17.   cancel1 = new Image();
  18.   cancel1.src = dir+"cancelon.gif";
  19. }
  20.  
  21. function change(Name,Image,No)
  22. {
  23.   if (!document.images) {}
  24.   else document[Name].src = eval(Image + No + ".src");
  25. }
  26.  
  27. function onCancel(parms)
  28. {
  29.     if (!checkModified())
  30.         return;
  31.  
  32.     if (parms)
  33.         window.location.href="index.fts?"+parms;
  34.     else
  35.         window.location.href="index.fts";
  36. }
  37.  
  38. function onClose()
  39. {
  40.     if (!isOK(document.ftgate))
  41.     return;
  42.  
  43.     document.ftgate.redirect.value="index.fts"
  44.     document.ftgate.submit();
  45. }
  46.  
  47. function onApply()
  48. {
  49.     if (!isOK(document.ftgate))
  50.     return;
  51.  
  52.     document.ftgate.submit();
  53. }
  54.  
  55. function onLaunch(href)
  56. {
  57.     if (!checkModified())
  58.         return;
  59.  
  60.   document.ftgate.config.value="2";
  61.   document.ftgate.redirect.value=href;
  62.     document.ftgate.submit();
  63. }
  64.