Below is a portion of the only JavaScript file I see with a reference to "sendFriend()"(I stopped after that particular portion). The only other JS files I see are "jsfunc" and "jsinstall", and I didn't see any reference in those.
//<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function openWin(URL) {
aWindow=window.open(URL,"New","toolbar=no,width=600,height=640,status=no,scrollbars=1,menubars=no");
}
function sendFriend(aid){
root = window.location.href.replace("http://", "").split("/");
root = !root[2]?"http://"+ root[0] +"":"http://"+ root[0] +"/"+ root[1] +"/"+ root[2] +"/"+ root[3] +"/"+ root[4] +"/";
window.open(root+'sendMail.php?aid='+aid,'Sendmail','toolbar=0,scrollbars=1,location=no,statusbar=0,menubar=0,resizable=1,height=420,width=565,top=10,left=10');
}
Is there supposed to be a particular address in ("http://",""), and if so would it be the page that is used for the item being displayed, in this case being listing.php? I'm trying this now, but if it isn't what's wrong what do you think is, or is this the right JS file I need to edit?