On 06.06.08 14:37, Ionel GARDAIS wrote: > function FindProxyForURL(url,host) { > if ( > ( > !( > host.indexOf('www.ifp.fr') == 0 > || host.indexOf('validation.ifp.fr') == 0 > || host.indexOf('project.ifp.fr') == 0 > || host.indexOf('ogst.ifp.fr') == 0 > ) > ) wouldn't be easier to compare host with those strings? host != "www.ifp.fr" && host != "validation.ifp.fr" ... > || host.match('127.0.0.1') is using of isInNet(host, "127.0.0.0", "255.0.0.0") not working? -- Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. I just got lost in thought. It was unfamiliar territory.