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

  1. // var dir
  2. // declare and assign this variable before including this script
  3. //
  4.  
  5. if (!document.images) {}
  6. else {
  7.   back0 = new Image();
  8.   back0.src  = dir+"back.gif";
  9.   back1 = new Image();
  10.   back1.src = dir+"backon.gif";
  11.   next0 = new Image();
  12.   next0.src  = dir+"next2.gif";
  13.   next1 = new Image();
  14.   next1.src = dir+"next2on.gif";
  15.   cancel0 = new Image();
  16.   cancel0.src  = dir+"cancel.gif";
  17.   cancel1 = new Image();
  18.   cancel1.src = dir+"cancelon.gif";
  19.   finish0 = new Image();
  20.   finish0.src  = dir+"finish.gif";
  21.   finish1 = new Image();
  22.   finish1.src = dir+"finishon.gif";
  23. }
  24.  
  25. function change(Name,Image,No)
  26. {
  27.   if (!document.images) {}
  28.   else document [Name].src = eval(Image + No + ".src");
  29. }
  30.  
  31. function onCancel(domain, mailbox)
  32. {
  33.     change('cancelA', 'cancel', 0);
  34.  
  35.     if (!window.confirm("The mailbox will not be created\n\r\n\rAre you sure?"))
  36.         return;
  37.  
  38.     window.location.href="cancel.fts?domain="+domain+"&mailbox="+mailbox;
  39. }
  40.  
  41. function onFinish()
  42. {
  43.     if (!isOK(document.ftgate))
  44.         return;
  45.  
  46.     document.ftgate.command.value="3";
  47.     document.ftgate.submit();
  48. }
  49.  
  50. function onNext()
  51. {
  52.     if (!isOK(document.ftgate))
  53.         return;
  54.  
  55.     document.ftgate.submit();
  56. }
  57.  
  58. function onBack()
  59. {
  60.     document.ftgate.command.value="2";
  61.     document.ftgate.submit();
  62. }