> function FindProxyForURL(url, host) {
> if isPlainHostName(host)
> return "DIRECT";
>
> return "PROXY 172.17.1.170:8080";
> }
>
I think you need to use C like syntax for the if statement.
if ( isPlainHostName( host ) )
return "DIRECT";