More progress (again thanks for the help), still no luck, new error:

Script Error: expected expression!
if isinsubnet($ipaddresss,$networkid,$subnetmask)

So close [Confused]