function FindProxyForURL(url, host) { if ( ( isPlainHostName(host) || host == "127.0.0.1" || isInNet (host, "194.83.24.0", "255.255.252.0") || isInNet (host, "192.168.0.0", "255.255.0.0") || isInNet (host, "10.0.0.0", "255.0.0.0") || host == "paymentservices.bacs.co.uk" || dnsDomainIs(host, ".regionalknowledgesystem.com") ) ) return "DIRECT"; else { var myip = myIpAddress(); var ip = myip.split("."); var flag=(ip[2] & 1); switch(flag) { case 1: return "PROXY 10.253.1.20:8080; PROXY 10.253.1.21:8080; PROXY 10.254.1.20:8080"; default: return "PROXY 10.253.1.21:8080; PROXY 10.253.1.20:8080; PROXY 10.254.1.21:8080"; } } }