function FindProxyForURL(url, host) { if (isPlainHostName(host) || isInNet(host, "192.168.1.0", "255.255.255.0") || isInNet(host, "127.0.0.0", "255.0.0.0")) return "DIRECT"; else return "PROXY 192.168.1.100:3128; DIRECT"; };