Advertisement
Guest User

Untitled

a guest
Aug 21st, 2013
1,347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. function Initialize( str ) {
  2. alert('Initialized');
  3. return true;
  4. }
  5.  
  6. function Terminate() {
  7. //code
  8. }
  9.  
  10. function GetValue() {
  11. //code
  12. }
  13.  
  14. function SetValue() {
  15. //code
  16. }
  17.  
  18. function Commit() {
  19. //code
  20. }
  21.  
  22. function GetLastError() {
  23. //code
  24. }
  25.  
  26. function GetErrorString() {
  27. //code
  28. }
  29.  
  30. function GetDiagnostic() {
  31. //code
  32. }
  33.  
  34. var nFindAPITries = 0;
  35. var API = null;
  36. var maxTries = 500;
  37.  
  38. function ScanForAPI(win)
  39. {
  40. while ((win.API_1484_11 == null) && (win.parent != null) && (win.parent != win))
  41. {
  42. nFindAPITries++;
  43. if (nFindAPITries > maxTries)
  44. {
  45. return null;
  46. }
  47. win = win.parent;
  48. }
  49. return win.API_1484_11;
  50. }
  51.  
  52. function GetAPI(win)
  53. {
  54. if ((win.parent != null) && (win.parent != win))
  55. {
  56. API = ScanForAPI(win.parent);
  57. }
  58. if ((API == null) && (win.opener != null))
  59. {
  60. API = ScanForAPI(win.opener);
  61. }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement