if (document.referrer&&document.referrer!="") {ref='&ref='+document.referrer;} else {ref=''}; var out=''; document.write(out);