I have 2 seperate pages, one called main.asp which gets html form info. Then the other main2.asp which has the function validateThis. I use <!--#include --> to include main2.asp in main.asp. In the validateThis function, it uses pattern matching to take a string passed to it and, based on the pattern, change it to something else. Then what I need to do is pass this new string back to the calling page. How do I pass this variable back to the calling page? I can't seem to use a RETURN statement, and I can't locate any info on this topic. Thanks!!