using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text.RegularExpressions;

public partial class tool_server : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string input = WebClass.Get2("http://tool.alimama.com/alexa/" + base.Request["m"] + "/");
        string pattern = "<h3 class=\"sitettl01\">[\\s\\S]*?(?=<div class=\"sitemap\">)";
        input = Regex.Replace(Regex.Match(input, pattern, RegexOptions.IgnoreCase).Value, "<a href=\"../www.([\\s\\S]*?)/\" target=\"_blank\">", "<a href=\"javascript:;\" onclick=\"check2('www.$1');\">", RegexOptions.IgnoreCase).Replace("/images.php", "images.aspx");
        base.Response.Write(input);

    }
}
