1<!-- 2function check_top_url() 3{ 4 if(top.location.href.indexOf("www.mywifiext.com") > 0) 5 return "www.mywifiext.com"; 6 else if (top.location.href.indexOf("www.mywifiext.net") > 0) 7 return "www.mywifiext.net"; 8 else if(top.location.href.indexOf("mywifiext.com") > 0) 9 return "mywifiext.com"; 10 else if (top.location.href.indexOf("mywifiext.net") > 0) 11 return "mywifiext.net"; 12 else 13 return ""; 14} 15 16function change_url(file_name) 17{ 18 19 if("www.mywifiext.com" == check_top_url()) 20 top.location.href = "http://www.mywifiext.net" + "/" + file_name; 21 else if("www.mywifiext.net" == check_top_url()) 22 top.location.href = "http://mywifiext.com" + "/" + file_name; 23 else if("mywifiext.com" == check_top_url()) 24 top.location.href = "http://mywifiext.net" + "/" + file_name; 25 else if("mywifiext.net" == check_top_url()) 26 top.location.href = "http://www.mywifiext.com" + "/" + file_name; 27 else 28 top.location.href = file_name; 29} 30 31 32//-->