Document Actions

qascr01h.htm

by zopeown last modified 2007-05-02 06:50

" + translated_1 + "

"); message.document.close(); // start search...res is the number of documents found in the collection hits[r] = document.QuestAgent.startSearch(lastQuery); totalHits += hits[r]; if(hits[r] == 1) { use_docs = translated_2; } else { use_docs = translated_3; } allResults += "
    " + document.QuestAgent.getCollectionName(currentCollNum) + ": " + hits[r] + use_docs + "
    "; if(hits[r] >= -1) { for (i=0; i < hits[r]; i++) { loc = document.QuestAgent.getHitLocation(i); title = document.QuestAgent.getHitTitle(i); if(title == null) { title = loc; } title = "" + title; if (title.length == 0) { title = loc; } where = document.QuestAgent.getHitLocation(i); allResults += "
  1. " + title + " - " + translated_4 + " " + document.QuestAgent.getHitField(i, "relevance") + "%
    "; // print description if available var desc = document.QuestAgent.getHitField(i, "description"); if(desc != null) { var jsdesc = "" + desc; if(jsdesc.length > 0 && resultLayout == "full") { allResults += jsdesc + " ...
    "; } } allResults += "
  2. "; }//end for loop //replacing call to OnSearchResults... resCnt = hits[r]; window.open("qares01h.htm", "qaview"); }//end if res >= -1 statement allResults += "
"; }//end large for loop allResults += ""; }//end function function OnSearchResults(res) { // Don't change function name resCnt = res; window.open("qares01h.htm", "qaview"); } function paintSearchResults(doc) { // Don't change function name if(resCnt != null) { res = eval( "" + resCnt.toString() ) - 0; } doc.open(); // check result if( resCnt == null ) { return; } else if(totalHits < 0) { doc.writeln("

" + translated_5 + "

"); doc.writeln("
");
		doc.writeln(document.QuestAgent.getLastMessage());
		doc.writeln("
"); } else if(totalHits == 0) { doc.writeln("

" + translated_6 + "

"); } else { doc.writeln("" + translated_7 + totalHits + ""); if (loops > 1) { doc.write(""); } doc.write(allResults); } // print footer (don't remove the following notice) doc.write( "

 

" ); doc.write( "Search technology by JObjects. (http://www.jobjects.com)" ); //doc.write( "Search technology by JObjects. (http://www.jobjects.com)" ); doc.writeln( "" ); doc.close(); } function ShowDocument(loc, qform) { var loc2 = "" + loc.toLowerCase(); var canHighlight = false; if(loc2.indexOf("http:") == 0) canHighlight = false; else if((loc2.indexOf(".htm") + 4) == loc2.length ) canHighlight = true; else if((loc2.indexOf(".html") + 5) == loc2.length ) canHighlight = true; if(showHighlighted == false || canHighlight == false) { loc = "../" + loc; if (navigator.appName.indexOf("Netscape") != -1) { var main = window.open(loc, "book"); main.focus(); } else { window.open(loc, "book"); } //parent.qaview.location = "" + loc; return; } // get keywords used in last query var words = document.QuestAgent.getLastQueryKeywords("body"); // do we need to show navigation controls? var show_nav = false; // highlighting tags can be set here... document.QuestAgent.setHighlightingTags("", ""); // discharge cached page resPage = null; // open document var page = document.QuestAgent.highlightDocument(loc, words, show_nav, "OnPagesReady"); if(page == null || page == "") { // Requested page is not available at this time. // Callback function will be invoked when results are available. return; } else { // Result page is already available. resPage = "" + page; OnPagesReady(); } } // Function "OnPagesReady" is a callback function (do NOT change its name) // that receives event from QuestAgent applet that document is available. function OnPagesReady() { if(navigator.appName.indexOf("Netscape") != -1) { qaresults = window.open("qadoc01h.htm", "book"); qaresults.focus(); } else { showHighlightedDocument(document); qaresults = window.open("","book"); qaresults.document.open(); if(resPage != null) qaresults.document.write(resPage); else qaresults.document.write("

" + translated_9 + ""); qaresults.document.close(); } } // Print document content function showHighlightedDocument(doc) { // get page content from QuestAgent applet... if(navigator.appName.indexOf("Netscape") != -1) { doc.open(); } // reset page counter (useful is page is reloaded and must be shown again) document.QuestAgent.resetPageCounter(); var tmp_page = ""; // collect page elements while(true) { page = document.QuestAgent.getNextPage(); if(page == null || page == "") { break; } tmp_page = tmp_page + "" + page; } resPage = tmp_page; if(navigator.appName.indexOf("Netscape") != -1) { if(tmp_page.length > 0) { resPage = tmp_page; doc.write(tmp_page); } else doc.write("

" + translated_9 + ""); doc.close(); } } // stop hiding --> document.writeln(''); document.writeln(''); document.writeln('

'); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln('
'); document.writeln('' + translated_10 + ''); document.writeln('
'); document.writeln(''); document.writeln('File Formats'); document.writeln('All Books'); document.writeln('All Design Books'); document.writeln('All Drafting Books'); document.writeln('All Simulation Books'); document.writeln('All Test Books'); document.writeln('Administration User\'s Guide'); document.writeln('Data Management'); document.writeln('Design'); document.writeln('Drafting'); document.writeln('Drafting Programmer\'s Guide'); document.writeln('Electronic System Cooling'); document.writeln('Element Library'); document.writeln('External Solvers'); document.writeln('Finite Element Modeling'); document.writeln('Geometry Data Translators'); document.writeln('I-DEAS User\'s Guide'); document.writeln('Manufacturing'); document.writeln('Material Data Systems'); document.writeln('Mechanism Design and Simulation'); document.writeln('Model Solution Open Solution'); document.writeln('Model Solution Optimization'); document.writeln('Modeling for Moldflow'); document.writeln('Mold Design'); document.writeln('New Features'); document.writeln('Open Architecture'); document.writeln('PCB.xchange and PCB.modeler'); document.writeln('Plotting'); document.writeln('Relational Data Manager'); document.writeln('Response Analysis and Durability'); document.writeln('Simulation: Model Solution'); document.writeln('Simulation: TMG Thermal Analysis'); document.writeln('Simulation: TMG Verification Guide'); document.writeln('Test: Basic Capabilities'); document.writeln('Test: Modal Analysis'); document.writeln('Test: Open Architecture'); document.writeln('Test: Signal Processing'); document.writeln('Tutorials'); document.writeln('Variational Analysis'); document.writeln(''); document.writeln('
'); document.writeln('' + translated_11a + ':'); document.writeln(''); document.writeln(''); document.writeln('
'); document.writeln('' + translated_14a + '
'); document.writeln(''); document.writeln('' + translated_16); document.writeln('' + translated_15); document.writeln(''); document.writeln('
'); document.writeln('' + translated_13a + '
'); document.writeln(''); document.writeln('100'); document.writeln('200'); document.writeln('50'); document.writeln('25'); document.writeln(''); document.writeln('
'); if (disableHighlighting == false) { document.writeln(''); document.writeln('' + translated_17 + ''); } document.writeln('     '); document.writeln( "" + translated_18 + "" ); document.writeln('
'); document.writeln(''); document.writeln('