radzmar,Your script works great but I have two company domains that I have to compair to what the user enters. In other words they have to enter either myname@domain1.com or myname@domain2.com. If it is neither of these then the error message pops-up. I tried to modify your script to accomdate this ...