| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 | 
							- /****************************************************************
 
- ** Licensed Materials - Property of IBM
 
- **
 
- ** IBM Cognos Products: drill
 
- **
 
- ** (C) Copyright IBM Corp. 2001, 2010
 
- **
 
- ** US Government Users Restricted Rights - Use, duplication or 
 
- ** disclosure restricted by GSA ADP Schedule Contract with 
 
- ** IBM Corp.
 
- *****************************************************************/
 
- // Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
 
- // Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
 
- // Gloabl Definitions
 
- var sPopUpWebRoot = "..";  // default this to a relative location
 
- if (window.g_PS_getWebRoot)
 
- {
 
- 	if (g_PS_getWebRoot() != "")
 
- 		sPopUpWebRoot = g_PS_getWebRoot();  // set up the official path to the C8 web root
 
- }
 
- var gDispatcher = new CDispatcher();
 
- function sendDispatcherRequest(params, callback)
 
- {
 
- 	var request = gDispatcher.createRequest(cfgGet("SCRIPT_ENGINE"), params, callback);
 
- 	gDispatcher.dispatchRequest(request);
 
- 	return request;
 
- }
 
- function getDispatcherRequestStatus(request)
 
- {
 
- 	return gDispatcher.getRequestStatus(request);
 
- }
 
- function setDispatcherErrorHandler(errorFunction)
 
- {
 
- 	gDispatcher.setErrorHandlerFunction(errorFunction);
 
- }
 
- function cancelDispatcherRequest(request)
 
- {
 
- 	return gDispatcher.cancelRequest(request);
 
- }
 
- function testResponse(response)
 
- {
 
- 	alert("testResponse got this response: [" + response + "]");
 
- }
 
- function testResponseWin(response)
 
- {
 
- 	typeof qs_dir != "undefined" ? qs_dir : (qs_dir = "qs");
 
- 	var sPath = sPopUpWebRoot + qs_dir + "/blankNewWin.html";
 
- 	if (typeof sNewWinSkin != "undefined" && sNewWinSkin != "")
 
- 	{
 
- 		sPath += "?skin=" + sNewWinSkin;
 
- 	}
 
- 	var newWin = window.open(sPath);
 
- 	newWin.document.write(response);
 
- 	newWin.document.close();
 
- }
 
 
  |