Hi guys have a bit of a problem. I'm currently working on a website using asp to generate page on the fly however the functions whichI am using in vbscript will not work. The error message that is being returned is that the server was expecting the 'End' statement however the 'End Function' statement is already there. Predictably enough when I remove the word function the error is that the word function was expected, any Ideas? thanx