Hola Adler... ¿y si el planteamiento fuera al contrario? Si tengo una var js y quiero compararla en un if en as, ¿como pudiera hacerle?
 
Maomeno esto:  
Código:
 
matriz[fila][x] = valor				//valores ocupados
if (matriz[fila][x] < 10)
{
d = (matriz[fila][x])
if (mes < 10)
	{
	m = ("0"+mes)
	}
else
	{
	m = (mes)
	}
a = (anio)
ff = ("0"+d+"/"+m+"/"+a)
}
else
{
d = (matriz[fila][x])
if (mes < 10)
	{
	m = ("0"+mes)
	}
else
	{
	m = (mes)
	}
a = (anio)
ff = (d+"/"+m+"/"+a)
}
<%
Set con=Server.CreateObject("ADODB.Connection")
Set rs=Server.CreateObject("ADODB.Recordset")
Set Ors=Server.CreateObject("ADODB.Recordset")
Con.connectionstring="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mappath("agendavh.mdb")
Con.open
f = trim(FormatDateTime(date,2))
f = CDate(f)
rs.open "Select fechaap From agenda",con
Do While not rs.eof
fechaap = trim(rs("fechaap"))
if (fechaap = "ff") then
	response.Write("matriz[fila][x] = '<strong><font color=red>'+matriz[fila][x]+'</font></strong>'")
end if
rs.movenext
Loop
rs.close
con.close
%>
valor++
  ¿Es esto posible?