home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 August / TommyVideo.iso / flash / services / exclusive.swf / scripts / DefineSprite_203_supportContent / frame_1 / DoAction.as
Encoding:
Text File  |  2003-06-08  |  850 b   |  47 lines

  1. function clearFields()
  2. {
  3.    company = "";
  4.    address1 = "";
  5.    address2 = "";
  6.    state = "";
  7.    zip = "";
  8.    country = "";
  9.    url = "http://";
  10.    lname = "";
  11.    fname = "";
  12.    phone = "";
  13.    fax = "";
  14.    email = "@";
  15.    description = "";
  16. }
  17. function check()
  18. {
  19.    ind = email.indexOf("@") + 1;
  20.    len = email.length;
  21.    if(FName == "" or LName == "")
  22.    {
  23.       return false;
  24.    }
  25.    if(ind <= 1 or ind == len)
  26.    {
  27.       return false;
  28.    }
  29.    return true;
  30. }
  31. _parent.tabEnabled = false;
  32. input_0.tabIndex(1);
  33. input_1.tabIndex(2);
  34. input_2.tabIndex(3);
  35. input_3.tabIndex(4);
  36. input_4.tabIndex(5);
  37. input_5.tabIndex(6);
  38. input_6.tabIndex(7);
  39. input_7.tabIndex(8);
  40. input_8.tabIndex(9);
  41. input_9.tabIndex(10);
  42. input_10.tabIndex(11);
  43. input_11.tabIndex(12);
  44. input_12.tabIndex(13);
  45. Selection.setFocus("input_0");
  46. stop();
  47.