function get_x_url(){ var x_url; x_url = document.referrer; return x_url; } function get_c_url(){ var c_url; c_url = window.location.href; return c_url } var pre_url; var cur_url; pre_url = get_x_url(); cur_url = get_c_url(); document.write('');