Before getting started I should explain that I am not a coder nor a web expert, so please make it easy where poss 
I am trying to put a redirection script on our webserver so that anyone coming from an internal address (10.0.XX.XX) gets send to one page and anyone coming from any other range gets sent to a different page.
here's what someone set up for me:
I have change the external ip of our server for safety reasons
Now he said it should work, but for some reason I am getting this error:
Any help is appreciated!

I am trying to put a redirection script on our webserver so that anyone coming from an internal address (10.0.XX.XX) gets send to one page and anyone coming from any other range gets sent to a different page.
here's what someone set up for me:
Code:
<%
var ipAdd = Request.ServerVariables("REMOTE_ADDR");
if(ipAdd.substr(0, 4) == "10.0")
{
Response.Redirect("http://localhost/seditio/index.php");
}
else
{
Response.Redirect("http://<external ip of server>/citrix/metaframexp/default/login.asp");
}
%>
I have change the external ip of our server for safety reasons
Now he said it should work, but for some reason I am getting this error:
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
Technical Information (for support personnel)
* Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/redir.asp, line 2, column 50
* Browser Type:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
* Page:
GET /redir.asp
Any help is appreciated!