%@LANGUAGE="VBScript"%>
<%
var a = 2;
var b = 2;
var c = add(a,b)
c += " (Two numbers are added by JavaScript, "
c += "and then formatted into currency by VBScript.)"
function add(x,y)
{
result = x + y;
result = toDollars(result);
return result;
}
Response.Write("\r")
Response.Write(JSGreeting() + "
\r")
Response.Write(VBGreeting() + "
\r")
Response.Write(c + "
\r")
Response.Write("\r")
%>