Hi,
I'm trying to create a javascript function that has some VB script... but it seems as once the page loads the VB script is executed without a call to the function. Is this not possible... how can I make it happen??

-------------------------------------------------------
function rotate(srcimage,direction){
n=n+direction;
if (n==allImages) n=0;
if (n==-1) n=allImages-1;

<%
if not rsProdSpecs.EOF then
rsProdSpecs.MoveNext
eProdImage = rsProdSpecs("img")
else
end if
%>


document.images[srcimage].src="images/productImages/<%=eProdImage%>";

}

-------------------------------------------------------

Thanks!