I am trying to add the following code into a functions page and I keep getting the following error.

Code:
Microsoft VBScript compilation 

 error '800a0401'
Expected end of statement
/includes/functions.asp, line 498wr "<a href='#' class='showImg active' onmouseup='" & return Swap(this,imgHolder); & "'><img class='HomeFeaturedImages3' src='/products/" & arr(0,i) & "/" & filename & ".jpg' width='75' alt='" & Server.HtmlEncode(arr(13+j,i)) & "' /></a>" & vbcrlf
-------------------------------------------------------------^

Here is my code:

Code:
function Swap(obj,id){
 var main=document.getElementById(id).getElementsByTagName('IMG')[0],msrc=main.src,obj=obj.getElementsByTagName('IMG')[0],tsrc=obj.src;
 main.src=tsrc;
 obj.src=msrc;
 return false;
}

wr "<a href='#' class='showImg active' onmouseup='" & return Swap(this,imgHolder); & "'><img class='HomeFeaturedImages3' src='/products/" & arr(0,i) & "/" & filename & ".jpg' width='75' alt='" & Server.HtmlEncode(arr(13+j,i)) & "' /></a>" & vbcrlf