function FindProxyForURL(url, host) { // // If the host is go.bates.edu, proxy it because this host wants // to detect if the user has a proxy configuration installed. This // cannot be detected if the user goes direct. // if (shExpMatch(url, "*director/go/testproxy")) { return "PROXY proxy.bates.edu:81"; } // // If the host is at Bates, use a direct conenction: // var myIP = myIpAddress(); if (isInNet(myIP, "134.181.0.0", "255.255.0.0")) { return "DIRECT"; } // // If the host is from Serial Solutions query, use proxy connection // if (isInNet(myIP, "216.162.203.72", "255.255.255.248")) { return "PROXY proxy.bates.edu:81"; } if (isInNet(myIP, "216.162.203.144", "255.255.255.240")) { return "PROXY proxy.bates.edu:8630-788-0081"; } if (isInNet(myIP, "64.73.220.217", "255.255.255.255")) { return "PROXY proxy.bates.edu:81"; } // // Define an array of domains which we need a proxy server for: // These are hosts which will require a proxy server. To add // another host or domain, increase the value in () by one in // the line below then add the domain/hostname to the list, with // the value in brackets set to one less than the total number // of hosts/domains. // // This line defines the total number of hosts/domains in the list // var testhosts = new Array( "www.mcreview.com", "www.fordhamscholarship.com", "admintool.elsevier.com", "afs.allenpress.com", "afso.alexanderstreet.com", "amso.alexanderstreet.com", "anth.alexanderstreet.com", "glmu.alexanderstreet.com", "lado.alexanderstreet.com", "mwld.alexanderstreet.com", "muco.alexanderstreet.com", "sixt.alexanderstreet.com", "wasi.alexanderstreet.com", "e-math.ams.org", "www.ams.org", "ajp.press.uiuc.edu", "ajp.psychiatryonline.org", "www.ambrosedigital.com", "www.amsciepub.com", "ancestrylibrary.proquest.com", "anthro.AnnualReviews.org", "ao.osa.org", "www.armand-colin.com", "www.areditions.com", "aslo.org", "autoweb.rlg.org", "bas.umdl.umich.edu", "biblioline.nisc.com", "bna.birds.cornell.edu", "brio.bates.edu", "ca2.csa.com", "cabells.com", "www.cabells.com", "caliber.ucpress.net", "carousel.lis.uiuc.edu", "ccc.isitrial.com", "chinadataonline.org", "chronicle.com", "circres.ahajournals.org", "cms.math.ca", "www.continuum-islamicphilosophy.com", "databank.worldbank.org", "ddp-ext.worldbank.org", "devdata.worldbank.org", "www.oed.com", "didp.nyu.edu", "digital.films.com", "digitalmicrofilm.proquest.com", "digitalmicrofilm1.proquest.com", "gateway.proquest.com", "www.il.proquest.com", "search.proquest.com", "dram.nyu.edu", "dx.doi.org", "ebooks.greenwood.com", "ehrafworldcultures.yale.edu", "ehrafarchaeology.yale.edu", "ethnology.pitt.edu", "enw.softlineweb.com", "ets.umdl.umich.edu", "eureka.rlg.org", "access.gale.com", "animals.galegroup.com", "find.galegroup.com", "firstsearch.oclc.org", "galenet.galegroup.com", "www.galetrials.com", "gateway.ovid.com", "gateway1.ovid.com", "gateway2.ovid.com", "glossary.agiweb.org", "hapi.gseis.ucla.edu", "haworthpress.com", "hn.umi.com", "annals.princeton.edu", "ica-catalog.princeton.edu", "ica.princeton.edu", "icadb.princeton.edu", "ifs.apdi.net", "infotrac.galegroup.com", "infoweb.newsbank.com", "isiknowledge.com", "jama.ama-assn.org", "jap.physiology.org", "josaa.osa.org", "josab.osa.org", "journals.impan.gov.pl", "journalsip.astm.org", "libraries.maine.edu", "libraries.mangolanguages.com", "library.artstor.org", "library.cqpress.com", "library.nlx.com", "libraryip.cq.com", "link.aip.org", "litguide.press.jhu.edu", "md3.csa.com", "muse.jhu.edu", "nationaljournal.com", "new.sourceoecd.org", "www.nlx.com", "ns01.newsbank.com", "online.infobaselearning.com", "online.psycinfo.com", "opres.highwire.org", "oupjournals.org", "pamina.catchword.com", "papers.nber.org", "pastmasters2000.nlx.com", "www.perceptionweb.com", "pjm.math.berkeley.edu", "pm.nlx.com", "prl.aps.org", "projecteuclid.org", "proquest.safaribooksonline.com", "proquest.umi.com", "pubs.acs.org", "referenceworks.brillonline.com", "rmmc.eas.asu.edu", "roperweb.ropercenter.uconn.edu", "rtabstracts.org", "sage-ereference.com", "scholar.google.com", "scifinder.cas.org", "scitation.aip.org", "search.eb.com", "search.ebscohost.com", "search.marquiswhoswho.com", "search.rdsinc.com", "serials.abc-clio.com", "site.ebrary.com", "mesharpe.metapress.com", "springerlink.metapress.com", "taylorandfrancis.metapress.com", "www.metapress.com", "stats.newsbank.com", "toolkit.dialog.com", "usage.csa.com", "wikis.ala.org", "www.universitypressscholarship.com", "vnweb.hwwilsonweb.com", "web.ebscohost.com", "web.lexis-nexis.com", "web.lexisnexis.com", "web5.silverplatter.com", "webreports.mergent.com", "wilsonweb2.hwwilson.com", "wnc.dialog.com", "wncnet.fedworld.gov", "www.2facts.com", "www.africanstudiescompanion.com", "www.agu.org", "www.ajsonline.org", "www.americanscientist.org", "www.amjbot.org", "www.ammonsscientific.com", "ejournals.ammonsscientific.com", "www.anb.org", "www.annalsnyas.org", "www.annee-philologique.com", "arjournals.annualreviews.org", "www.annualreviews.org", "www.anthrosource.net", "www.artstor.org", "www.aspresolver.com", "www.atypon-link.com", "www.bepress.com", "www.bergfashionlibrary.com", "www.bioone.org", "www.blackwell-synergy.com", "www.blackwellreference.com", "www.booksinprint.com", "apps.brepolis.net", "www.brepolis.net", "www.brillonline.nl", "www.buddhism-dict.net", "www.catchword.com", "www.cgf.org", "www.chicagomanualofstyle.org", "www.ciaonet.org", "www.cios.org", "www.cro2.org", "www.csa.com", "www.degruyter.com", "www.dictionaryofeconomics.com", "proxy.dramonline.org", "www.dramonline.org", "www.dukeupress.edu", "www.dukejournals.org", "www.els.net", "www.emeraldinsight.com", "www.ency-japan.com", "www.eupjournals.com", "www.fisonline.com", "www.genetics.org", "www.geoscienceworld.org", "www.greeninfoonline.com", "www.groveart.com", "www.grovemusic.com", "www.historycooperative.org", "www.historyebook.org", "www.humanitiesebook.org", "www.humankinetics.com", "www.icpsr.umich.edu", "www.imf.org", "www.imfstatistics.org", "www.imstat.org", "www.indiana.edu", "www.informaworld.com", "www.ingentaconnect.com", "www.ingentaselect.com", "www.inthefirstperson.com", "www.iop.org", "www.itergateway.org", "search2.itergateway.org", "www.jbc.org", "www.jce.divched.org", "www.kluweronline.com", "www.leaonline.com", "www.learnatest.com", "www.learnmem.org", "www.letraslibres.com", "www.lexis-nexis.com", "www.lexisnexis.com", "www.litfinder.com", "www.marcive.com", "www.mergentonline.com", "www.merip.org", "www.mitpressjournals.org", "www.mlajournals.org", "www.mlalrg.org", "onlinelibrary.wiley.com", "www.mrw.interscinece.wiley.com", "www3.interscience.wiley.com", "www.nationaljournal.com", "www.nature.com", "www.nber.org", "www.netlibrary.com", "www.newleftreview.org", "www.newyorker.com", "www.nisc.com", "www.OECD-library.org", "www.oxford-africanthought.com", "www.oxford-americanfoodanddrink.com", "www.oxford-americanliterature.com", "www.oxford-ancientegypt.com", "www.oxford-britishliterature.com", "www.oxford-byzantium.com", "www.oxford-childrensliterature.com", "www.oxford-classicart.com", "www.oxford-classicaldictionary3.com", "www.oxford-dance.com", "www.oxford-decorativearts.com", "www.oxford-economichistory.com", "www.oxford-enlightenment.com", "www.oxford-enlightenment.com", "www.oxford-evolution.com", "www.oxford-globalchange.com", "www.oxford-islamicart.com", "www.oxford-latinos.com", "www.oxford-linguistics.com", "www.oxford-medievalwarfare.com", "www.oxford-middleagesdictionary.com", "www.oxford-northernrenaissanceart.com", "www.oxford-reformation.com", "www.oxford-renaissance.com", "www.oxford-rhetoric.com", "www.oxford-theatreandperformance.com", "www.oxfordaasc.com", "www.oxfordartonline.com", "www.oxfordbibliographiesonline.com", "www.oxfordbiblicalstudies.com", "www.oxforddnb.com", "www.oxfordhandbooks.com", "www.oxfordmusiconline.com", "www.oxfordreference.com", "www.oxfordscholarship.com", "www.oxmill.com", "www.palgrave-journals.com", "www.plantcell.org", "www.plantphysiol.org", "www.pnas.org", "www.portico.org", "www.press.uillinois.edu", "www.psychonomic.org", "www.psycinfo.com", "www.qjps.com", "access.rdatoolkit.org", "www.rdatoolkit.org", "www.reference-global.com", "www.rsc.org", "sanborn.umi.com", "www.sciencedirect.com", "www.sciencemag.org", "www.sciverse.com", "www.hub.sciverse.com", "www.scopus.com", "www.socialexplorer.com", "www.sociologyencyclopedia.com", "www.softlineweb.com", "www.springerlink.com", "www.statesmansyearbook.com", "www.stg.brown.edu", "www.tol.org", "www.tandfonline.com", "www.ulrichsweb.com", "artfl.uchicago.edu", "colet.uchicago.edu", "colet.lib.uchicago.edu", "dsal.uchicago.edu", "humanities.uchicago.edu", "machaut.uchicago.edu", "gide.uchicago.edu", "barkov.uchicago.edu", "spleen.uchicago.edu", "philologic.uchicago.edu", "www.journals.uchicago.edu", "www.lib.uchicago.edu", "www.westlaw.com", "www.worldshakesbib.org", "www.xreferplus.com", "www3.oup.co.uk", "zv6dg7yl8g.cs.serialssolutions.com" ); // // Parse the testhosts array see if a proxy is needed: // for (i=0; i