 
//setting variables for send to a friend
var here = (document.location.href);
var hereArray = here;
var hereArray = here.split("?src=");
hereArray.reverse();
var sendme = hereArray[0];

function send2friend(){
var here = (document.location.href);
var url ="/common/send2friend/dinoimagesend.php?referer=" + here;
window.open(url,"send2friend","resizable=1,width=420,height=550,scrollbars=1");
}

