// Licensed Materials - Property of IBM // // IBM Cognos Products: pps // // (C) Copyright IBM Corp. 2005, 2017 // // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. // This forms the javascript functions used for PowerPlay Studio Toolbar // The functions handle any minor browser differences. function make_url(form) { this.action = form.action; this.elements = []; var x, i; x = form.getElementsByTagName("input"); for (i = 0; i < x.length; ++i) { this.elements.push({fName: x[i].name, fValue: x[i].value}); } } function make_cq_url(s){ document.cq.query.value=s; var f = new make_url(document.cq); this.action = f.action; this.elements = f.elements; } function make_mdc_url(s){ document.mdc.E.value=s; var f = new make_url(document.mdc); this.action = f.action; this.elements = f.elements; } function make_mig_mdc_url(s){ var intialSearchPath = document.getElementById("mdcsearchpath").value; var searchPath = intialSearchPath + s; document.getElementById("mdcsearchpath").value = searchPath; var f = new make_url(document.mig_mdc); this.action = f.action; this.elements = f.elements; document.getElementById("mdcsearchpath").value = intialSearchPath; } function make_iwr_url(s){ document.iwr.entry.value=s; var f = new make_url(document.iwr); this.action = f.action; this.elements = f.elements; } function make_ppx_url(s){ document.ppx.E.value=s; var f = new make_url(document.ppx); this.action = f.action; this.elements = f.elements; } function make_mig_ppx_url(s){ var initialSearchPath = document.mig_ppx.CRNOBJ.value; var searchPath = initialSearchPath + s; document.mig_ppx.CRNOBJ.value = searchPath; var f = new make_url(document.mig_ppx); this.action = f.action; this.elements = f.elements; document.mig_ppx.CRNOBJ.value = initialSearchPath; } function make_crr_url(s) { document.crr.entry.value = s; var f = new make_url(document.crr); this.action = f.action; this.elements = f.elements; }