function writeaskheadscriptJS(){
var str='';
str+='<script language="JavaScript" type="text\/JavaScript">';
str+='<!--';
str+='function goThere() {';
str+='    var list = document.forms[0].urlList';
str+='    location = list.options[list.selectedIndex].value';
str+='}';
str+='\/\/-->';
str+='<\/script>';
str+='<script>';
str+='var hasJava = 0;        ';
str+='var hasIFC = 0;        ';
str+='var isSSL = 0;';
str+='var str = \'\';';
str+='self.name="ns_search_results";';
str+='\/\/ If it isn\'t Communicator then the user doesn\'t have the IFC classes so';
str+='\/\/ use the IE applet which includes these classes within it.';
str+='function setIFC(){';
str+='        if (navigator.appName == "Netscape" && ';
str+='            parseInt(navigator.appVersion) == 4 &&';
str+='            navigator.javaEnabled()){';
str+='                hasIFC = 1;';
str+='        }';
str+='} ';
str+='function setJava(){';
str+='        if ((navigator.appName == "Netscape" &&';
str+='             parseInt(navigator.appVersion) >= 4 ||';
str+='             navigator.appName == "Microsoft Internet Explorer") && ';
str+='             navigator.javaEnabled()){';
str+='                hasJava = 1;';
str+='        }';
str+='}';
str+='function setSSL(){';
str+='        if (window.location.protocol == "https:") {';
str+='            isSSL=1;';
str+='        }';
str+='}';
str+='function GuidedSearchApplet(){';
str+='        str = \'\';';
str+='        makeGuidedSearchApplet();';
str+='        var myWin = open("", \'guidedSearchApplet\',\'resizeable=0,width=440,height=310,toolbar=no,scrollbars=no\')';
str+='        myWin.document.write(str);';
str+='        myWin.document.close();';
str+='}';
str+='function makeGuidedSearchApplet(){';
str+='        str=\'<html><head><title>GuidedSearch@javatest<\/title>\';';
str+='        str+=\'<meta http-equiv="content-type" content="text\/html;charset=iso-8859-1"><\/head>\';';
str+='        str+=\'<body bgcolor=#FFFFFF>\';';
str+='        str+=\'<center>\';';
str+='        if(hasIFC){';
str+='        str+=\'<applet codebase="http:\/\/www.broward.edu\/search-ui\/applet" archive="SearchApplet.jar" code="NetscapeApplet"  width=390 height=265>\';';
str+='        } else {';
str+='        str+=\'<applet codebase="http:\/\/www.broward.edu\/search-ui\/applet" archive="SearchAppletIE.jar" code="NetscapeApplet"  width=390 height=265>\';';
str+='        }';
str+='        str+=\'<param name="ApplicationClass" value="SearchInterface">\';';
str+='        str+=\'<param name="search-applet-search-in" value="\';';
str+='        str+=\'Search in:\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-search" value="\';';
str+='        str+=\'Search\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-for" value="\';';
str+='        str+=\'for:\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-advanced" value="\';';
str+='        str+=\'Advanced\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-help" value="\';';
str+='        str+=\'Help\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-add-line" value="\';';
str+='        str+=\'Add Line\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-undo-line" value="\';';
str+='        str+=\'Undo Line\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-clear" value="\';';
str+='        str+=\'Clear\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-and-search-for" value="\';';
str+='        str+=\'and search for ...\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-or-search-for" value="\';';
str+='        str+=\'or search for ...\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-words" value="\';';
str+='        str+=\'Words\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-words-in-proximity" value="\';';
str+='        str+=\'Words in proximity\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-phrase" value="\';';
str+='        str+=\'Phrase\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-literal" value="\';';
str+='        str+=\'Literal\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-attribute" value="\';';
str+='        str+=\'Attribute\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-any-pattern" value="\';';
str+='        str+=\'Any Pattern\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-that" value="\';';
str+='        str+=\'that\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-contains" value="\';';
str+='        str+=\'Contains\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-starts" value="\';';
str+='        str+=\'Starts\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-ends" value="\';';
str+='        str+=\'Ends\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-matches" value="\';';
str+='        str+=\'Matches\'; str+=\'">\';';
str+='        str+=\'<param name="search-applet-has-a-substring" value="\';';
str+='        str+=\'Has a substring\'; str+=\'">\';';
str+='        str+=\'<param name="NS-collection" value="\';';
str+='        str+=\'\'; str+=\'">\';';
str+='        str+=\'<param name="NS-display-query" value="\';';
str+='        str+=\'\'; str+=\'">\';';
str+='        str+=\'<\/applet>\';';
str+='\/\/      str+=\'<br><font size=-1>Copyright © 1999-2001 Sun Microsystems, Inc.  Some preexisting portions Copyright © 1997-2000 Netscape Communications Corporation. All Rights Reserved.<\/font>\';';
str+='        str+=\'<\/center>\';';
str+='        str+=\'<\/body><\/html>\';';
str+='}';
str+='function GuidedSearch() {';
str+='   setJava();';
str+='   setIFC();';
str+='   setSSL();';
str+=' ';
str+='   if (hasJava && !isSSL) {';
str+='         GuidedSearchApplet();';
str+='      }';
str+='   else {';
str+='      var myWin = open(\'http:\/\/www.broward.edu\/search?NS-query-pat=\/text\/NS-advquery.pat\', \'_self\');';
str+='      }';
str+='}';
str+='function setSearchData(myForm){';
str+='    searchContext = document.search.pushIFCContext();';
str+='    myForm.searchPattern.value = searchContext.setSearchQuery();';
str+='    myForm.collectionName.value = searchContext.setCollectionName();';
str+='    document.search.popIFCContext();';
str+='}    ';
str+='<\/script>';
document.write(str);
}
writeaskheadscriptJS();