// resize the iframe based on response from remote iframe // Calculator V1 related and can be removed it not used. function resizeXDQuestions(rHeight) { var frame = document.getElementById("questionsFrame"); var height = 600; try { height = parseInt(rHeight) + 20; } catch(err) {} document.getElementById("frameLoading").style.display = "none"; try { innerDoc = (frame.contentDocument) ? frame.contentDocument : frame.contentWindow.document; objToResize = (frame.style) ? frame.style : frame; objToResize.height = height + "px"; } catch(err) { document.getElementById("questionsFrame").style.height = height + "px"; } window.scrollTo(0, 40); } /** * print the page content */ function printContent(strid) { var printContent = document.getElementById(strid); html = ""; html += "

"; html += printContent.innerHTML; html += "\t

© 2024 SS&C. All rights reserved. Reproduction in whole or in part is prohibited without the express permission of SS&C.

\n"; html += ""; var printWindow = window.open('','','left=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0'); printWindow.document.write(html); printWindow.document.close(); printWindow.focus(); printWindow.print(); printWindow.close(); } function loadScript(url) { var html_doc = document.getElementsByTagName('head').item(0); var js = document.createElement('script'); js.setAttribute('language', 'javascript'); js.setAttribute('type', 'text/javascript'); js.setAttribute('src', url); html_doc.appendChild(js); } function updateSrcElements() { el = document.getElementById("sANDpContent"); if (el) { protocol = window.location.protocol; wrong = protocol + "//" + window.location.host; actual = protocol + "//content.sharefc.com"; imgs = el.getElementsByTagName("img"); for (var i=0; i 0 ? "topic=" + st : ""; scqs = sc.length > 0 ? "siteContent=" + sc : ""; if (type == "FastFact") { window.open('http://content.sharefc.com//sites/client/generic/di7281/ent009/fastfact.vm?' + stqs + "&" + scqs, 'tutorial','toolbars=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=1, copyhistory=0,width=760,height=600') return; } if (search.length != 0) { // remove any of our topic if (search.indexOf("topic") != -1) { start = search.indexOf("topic"); end = search.indexOf("&", start); if (end == -1) end = search.length; tmp = search.substring(start,end); search = search.replace(tmp, stqs); stqs = ""; } // remove any of our sc if (search.indexOf("siteContent") != -1) { start = search.indexOf("siteContent"); end = search.indexOf("&", start); if (end == -1) end = search.length; tmp = search.substring(start,end); search = search.replace(tmp, scqs); scqs = ""; } } // now make it happen url = protocol + "//" + host + path; url += search.length == 0 ? "?" : search; // clean extra while (url.indexOf("&", url.length-1) != -1) { url = url.substring(0, url.length-1); } if (stqs.length > 0) url += "&" + stqs; if (scqs.length > 0) url += "&" + scqs; window.location = url; } /* * a backwards compatable implementation of postMessage * by Josh Fraser (joshfraser.com) * released under the Apache 2.0 license. * * this code was adapted from Ben Alman's jQuery postMessage code found at: * http://benalman.com/projects/jquery-postmessage-plugin/ * * other inspiration was taken from Luke Shepard's code for Facebook Connect: * http://github.com/facebook/connect-js/blob/master/src/core/xd.js * * the goal of this project was to make a backwards compatable version of postMessage * without having any dependency on jQuery or the FB Connect libraries * * my goal was to keep this as terse as possible since my own purpose was to use this * as part of a distributed widget where filesize could be sensative. * */ // everything is wrapped in the XD function to reduce namespace collisions var XD = function(){ var interval_id, last_hash, cache_bust = 1, attached_callback, window = this; return { postMessage : function(message, target_url, target) { if (!target_url) { return; } target = target || parent; // default to parent if (window['postMessage']) { // the browser supports window.postMessage, so call it with a targetOrigin // set appropriately, based on the target_url parameter. target['postMessage'](message, target_url.replace( /([^:]+:\/\/[^\/]+).*/, '$1')); } else if (target_url) { // the browser does not support window.postMessage, so set the location // of the target to target_url#message. A bit ugly, but it works! A cache // bust parameter is added to ensure that repeat messages trigger the callback. target.location = target_url.replace(/#.*$/, '') + '#' + (+new Date) + (cache_bust++) + '&' + message; } }, receiveMessage : function(callback, source_origin) { // browser supports window.postMessage if (window['postMessage']) { // bind the callback to the actual event associated with window.postMessage if (callback) { attached_callback = function(e) { callback(e); }; } if (window['addEventListener']) { window[callback ? 'addEventListener' : 'removeEventListener']('message', attached_callback, !1); } else { window[callback ? 'attachEvent' : 'detachEvent']('onmessage', attached_callback); } } else { // a polling loop is started & callback is called whenever the location.hash changes interval_id && clearInterval(interval_id); interval_id = null; if (callback) { interval_id = setInterval(function(){ var hash = document.location.hash, re = /^#?\d+&/; if (hash !== last_hash && re.test(hash)) { last_hash = hash; callback({data: hash.replace(re, '')}); } }, 100); } } } }; }(); //XD.receiveMessage(function(message){ resizeXDQuestions(message.data); }, 'http://content.sharefc.com'); document.write("
"); document.write("\t\n\n\n\n\n\tinvalid customer id\n\n\n\t
\n\t\t

© 2024 SS&C. All rights reserved. Reproduction in whole or in part is prohibited without the express permission of SS&C.

\n\t\n"); document.write("
");