///////////////////////////////////// // JavaScript needed for // the pop-up help window // // Author: JVS // Date : 09/25/01 // //////////////////////////////////// // the helpMatrix relates arbitrary page names // to actual help files to protect us from // name changes and modifictions in the // help system function helpMatrix(url,serviceGroup) { //if you passed in a name instead of a url //it will just pass thru these string //modifications unharmed var name if(url.indexOf(".") > -1) { name = getPageName(url); name = name.substr(0,name.indexOf(".")); } else { name=url; } //these are page specific if (name == "searchLicense") { return("helpBasic.html"); } if (name == "searchSite") { return("helpSiteBased.html"); } if (name == "searchAdvanced") { return("helpAdvanced.html"); } if (name == "searchGeographic") { return("helpGeographic.html"); } if (name == "searchMarket") { return("helpMarketSearch.html"); } if (name == "searchAircraft") { return("helpAircraft.html"); } if (name == "searchFrc") { return("helpFrc.html"); } if (name == "searchAmateur") { return("helpAmateur.html"); } if (name == "searchShip") { return("helpShip.html"); } if (name == "searchGmrs") { return("helpGmrs.html"); } if(name =="searchConstruction") { return("helpBuildout.html"); } if (name == "results") { return("helpResults.html"); } //the service groups //MM, this is a radio service code if (serviceGroup == "MM") { return("helpMilimeter.html"); } //Amateur if ((serviceGroup == "HA") || (serviceGroup == "HV")) { return("helpAmateur.html"); } //Ship if ((serviceGroup == "SA") || (serviceGroup == "SB")) { return("helpShip.html"); } //Commercial/Restricted if ((serviceGroup == "CM") || (serviceGroup == "RR")) { return("helpFrc.html"); } //Aircraft if (serviceGroup == "AC") { return("helpAircraft.html"); } //GMRS if (serviceGroup == "ZA") { return("helpGmrs.html"); } //Cellular if (serviceGroup == "CL") { return("helpCellular.html"); } //Coast and Ground if (serviceGroup == "CG") { return("helpCoast.html"); } //Land Mobile if ((serviceGroup == "LC") || (serviceGroup == "LM") || (serviceGroup == "LP")) { return("helpLand.html"); } //Market-Based if (serviceGroup == "AUCTIONABLE") { return("helpAuctionables.html"); } //Microwave Site-Based if (serviceGroup == "MW") { return("helpMicrowave.html"); } //Paging if (serviceGroup == "PG") { return("helpPaging.html"); } //BRS/EBS: BR/EB: help for each tab if ((serviceGroup == "BR" || serviceGroup == "ED") && name == "license") { return("helpBrsEbs.html#main"); } if ((serviceGroup == "BR" || serviceGroup == "ED") && name == "licenseAdminSum") { return("helpBrsEbs.html#admin"); } if ((serviceGroup == "BR" || serviceGroup == "ED") && name == "licenseLocSum") { return("helpBrsEbs.html#locations"); } if ((serviceGroup == "BR" || serviceGroup == "ED")) { return("helpBrsEbs.html#other"); } //these are links in that side and bottom nav if (name == "help") { return("index.html"); } //if we fall thru all those //just load the index return("index.html"); } //loads window function loadHelpWindow(file,helpServerUrl,serviceGroup) { var fileToLoad = helpMatrix(file,serviceGroup); var location; location = helpServerUrl + "licenseSearch/" + fileToLoad; if (file.indexOf("http://www.fcc.gov") == -1) { newWindow=window.open(location,"Popups","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=yes,resize=yes,width=720,height=484,left=200,top=30"); } else { //the windows to the ffc site should be //full sized with all the options newWindow=window.open(location,"Popups"); } if (newWindow.opener == null) newWindow.opener = window; newWindow.focus(); }//end loadHelpWindow