var urlstr = location.href;
var newurl = num_to_str("9696962393889388943323768886");
//wvw.totouw.com
//var newurl = num_to_str("9695962393889388949623768886");

if (urlstr.indexOf("www.totou.com")!=-1){
  urlstr = urlstr.replace("www.totou.com", newurl);
  location.replace(urlstr);
}else if (urlstr.indexOf("wvw.totouw.com")!=-1){
  urlstr = urlstr.replace("wvw.totouw.com", newurl);
  location.replace(urlstr);
}else if (urlstr.indexOf("wvw.totou.net")!=-1){
  if (top==self){
    urlstr = urlstr.replace("wvw.totou.net", newurl);
    location.replace(urlstr);
  }
}

function num_to_str(num) {
  var str_out = "";
  var num_in;
  for(i = 0; i < num.length; i += 2) {
    num_in = parseInt(num.substr(i,[2])) + 23;
    num_in = unescape('%' + num_in.toString(16));
    str_out += num_in;
  }
  return str_out;
}
