// hottopics.js // NLS_CHARSET=UTF-8 // // (C) Copyright IBM Corporation, 2003, 2006 // // All rights reserved. Licensed Materials Property of IBM // // US Government Users Restricted Rights // // Use, duplication or disclosure restricted by // // GSA ADP Schedule Contract with IBM Corp. // //START NON-TRANSLATABLE ////////////////////////////////////////////////////////////////////// // define simple object. function hotTopic() { args=hotTopic.arguments; this.text = args[0]; this.stext = args[1] || "intentionally blank"; this.url = args[2] || ""; this.getText = getText; this.getBlurb = getBlurb; this.getURL = getURL; } function getText() { return this.text; } function getBlurb(){ return this.stext; } function getURL(){ return this.url; } // ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// // redefine the 'push' function for all browsers. //if (Array.prototype.push && ([0].push(true)==true)) // Array.prototype.push = null; if(!Array.prototype.push) { function array_push() { for(i=0;i'+quotes[HTid].getText()+'<\/A>'; return result; } function getHotTopic2(){ result = '<\/A> '; return result; } function getHotTopic3(){ result = ''+quotes[HTid].getBlurb()+'<\/A>'; return result; } function dumpHotTopics(){ document.writeln(strDidYouKnowHeader); document.writeln('
'); for ( ht in quotes ) { result = '

'+quotes[ht].text+'<\/P>'; document.writeln(result); } document.writeln('<\/BLOCKQUOTE>'); } ////////////////////////////////////////////////////////////////////// // This hideous function is a work around for Netscape 4.x. The function // creates the WHOLE callout box. Since, we cannot call a function from within // a TD in Netscape 4.x, we cannot do the getHotTopic() calls in a callout box // within the HTML. That would result in an empty callout box. So we have a // 'parent' function call in the HTML that creates the whole callout box. // This function is not executed in Netscape 4.x, so there is no empty calloutbox. QED. function doDidYouKnow(){ var result=getHotTopic(); result+='
'; result+=getHotTopic2(); result+=getHotTopic3(); result+='
'; result+='
<\/A> '; //result+=' '+sSeeAllTips+''; result+=' '+sSeeAllTips+'<\/A>'; document.open(); document.write(result); document.close(); } //END NON-TRANSLATABLE