if you are refering to simply writing your ASP code in javascript then just add
<%@ LANGUAGE="javascript" %>
then you will be able to write the javascript for your coding.
however, the mail component will not change syntax wise I believe. for instance the syntax for ASPMail as a example is Mailer.BodyText = " " and this will not change via the declaration of the scripting language being used
The syntax for coding in vbscript really is much easier to debug and write (my opinion) then javascript though.
I suggest finding examples of mailer components and simply using vbscript to make the script much happier.
---------------------------------------
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee"

;alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924