Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Initialize( str ) {
- alert('Initialized');
- return true;
- }
- function Terminate() {
- //code
- }
- function GetValue() {
- //code
- }
- function SetValue() {
- //code
- }
- function Commit() {
- //code
- }
- function GetLastError() {
- //code
- }
- function GetErrorString() {
- //code
- }
- function GetDiagnostic() {
- //code
- }
- var nFindAPITries = 0;
- var API = null;
- var maxTries = 500;
- function ScanForAPI(win)
- {
- while ((win.API_1484_11 == null) && (win.parent != null) && (win.parent != win))
- {
- nFindAPITries++;
- if (nFindAPITries > maxTries)
- {
- return null;
- }
- win = win.parent;
- }
- return win.API_1484_11;
- }
- function GetAPI(win)
- {
- if ((win.parent != null) && (win.parent != win))
- {
- API = ScanForAPI(win.parent);
- }
- if ((API == null) && (win.opener != null))
- {
- API = ScanForAPI(win.opener);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement