var ref = document.referrer; document.write('');