<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="Search" %>

<%@ Register Src="control/mainRight.ascx" TagName="mainRight" TagPrefix="uc4" %>
<%@ Register Src="control/mainTop.ascx" TagName="mainTop" TagPrefix="uc3" %>
<%@ Register Src="control/mainBottom.ascx" TagName="mainBottom" TagPrefix="uc2" %>
<%@ Register Src="control/mainLeft.ascx" TagName="mainLeft" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
 <title>郑州汇智计算机技术服务有限公司--专业网站建设、网站推广、域名注册、多媒体开发、软件开发，专业协同OA供应商</title>
<link href="css/body.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
    <style type="text/css">
<!--
.tab1 {
	border-bottom-width: 1px;
	border-bottom-style: dashed;
	border-bottom-color: #999999;
	font-family: "宋体";
	font-size: 12px;
	color: #670000;
}
-->
</style>
<script type="text/javascript" language="javascript">
//得到XMLHttpRequest对象
function getAjax()
{
	var XmlHttp;
	try
	{
		XmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
		try
		{
			XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		} 
		catch(oc)
		{
			XmlHttp = null;
		}
	}
	if(!XmlHttp && typeof XMLHttpRequest != "undefined") 
	{
		XmlHttp = new XMLHttpRequest();
	}
	return XmlHttp;
}
//根据域名及域名的类型显示域名注册信息
function reqGet(domain,dtype)
{   
    var dtypeUse=dtype.replace(/\./g,"");
    url='http://panda.www.net.cn/cgi-bin/Whois.cgi?domain='+domain+'&'+dtypeUse+'=yes&refer=';   
    req = getAjax();
    req.open( 'GET', url , true );      
	req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	req.send( null );
    req.onreadystatechange = function()
    {      
	   if(req.readyState == 4 && req.status == 200 )
	   {
	     //根据req.responseBody的值将该网页通过Stream下载
	   	 var result=bstr(req.responseBody);   	
	   	 //VBScript截取要用的字符串	
         var obj=document.getElementById("res");  
         //插入信息
           obj.innerHTML=GetUse(result,domain,dtype);
		}			
	 }	
}
//根据得到的参数调用regGet()自定义函数
function GetQueryString()
{
   var domain=Request("domain");
   var type=Request("type"); 
    reqGet(domain,type); 
}
//得到地址栏参数
function Request(strName)
{
var strHref = document.location.href;
var intPos = strHref.indexOf("?");
var strRight = strHref.substr(intPos + 1);

var arrTmp = strRight.split("&");
for(var i = 0; i < arrTmp.length; i++)
{
var arrTemp = arrTmp[i].split("=");

if(arrTemp[0].toUpperCase() == strName.toUpperCase()) return arrTemp[1];
}
return "";
}
     </script>
 <script language="vbscript" type="text/vbscript">
'VBScript将某个网页通过Stream下载
    Function bstr(vIn)
     Dim strReturn,i,ThisCharCode,innerCode,Hight8,Low8,NextCharCode
     strReturn = ""     
     For i = 1 To LenB(vIn)
      ThisCharCode = AscB(MidB(vIn,i,1))
      If ThisCharCode < &H80 Then
       strReturn = strReturn & Chr(ThisCharCode)
      Else
       NextCharCode = AscB(MidB(vIn,i+1,1))
       strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
       i = i + 1
      End If
     Next 
     bstr = strReturn  
    End Function 
'   VBScript截取要用的字符串	
    Function GetUse(result,domain,dtype)  
      startpoint=instr(result,"<!-- start -->")
      endpoint=instr(result,"<!-- end -->")
      result=mid(result,startpoint,endpoint-startpoint) 
      if InStr(result,"No entries") > 1 then 
      GetUse="查询出错了！"
      else
        if (InStr(result,"no match record") or InStr(result,"No match") or InStr(result,"Not Found") or InStr(result,"NOT FOUND") or InStr(result,"Not found")  or InStr(result,"no matching record") or InStr(result,"No match") or InStr(result,"Register system prompt") or InStr(result,"not been registered yet") or InStr(result,"没有找到这个条目") or InStr(result,"没有查到符合条件的记录") or InStr(result,"信息不存在") or InStr(result,"Not Exist") or  InStr(result,"你所查询的信息不存在"))> 1 then
        GetUse=domain+dtype+"  <a href=""regDomain.aspx"">可以注册！</a><br>"
        else
        GetUse=domain+dtype+"  已经被注册！<br>"
        'msgbox GetUse+domain+dtype+"  已经被注册！<br>"
        End If
      End IF
    End Function
   
 </script>
</head>
<body onload="GetQueryString();" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
            <!-- ImageReady Slices (Default.jpg) -->
            <table id="__01" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td valign="top">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="height: 932px">
                                    <uc1:mainLeft ID="MainLeft1" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td valign="top">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td colspan="2" style="height: 226px">
                                    <uc3:mainTop ID="MainTop1" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td valign="top" align="center">
                                    <table border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="width: 661px">
                                        <tr>
                                            <td width="100%" align="center" valign="top">
                                                <table width="577" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td width="577" height="28">
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="2">
                                                                <tr>
                                                                    <td width="13%" align="right" style="height: 18px">
                                                                        <strong>当前位置：</strong></td>
                                                                    <td width="87%" align="left" style="height: 18px">
                                                                        首页 -/- 域名服务</td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td bgcolor="#E4E4E6" style="height: 1px">
                                                        </td>
                                                    </tr>
                                                </table>
                                                <br>
                                                <table border="0" cellpadding="0" cellspacing="0" background="images/1_bg.jpg" style="width: 83%">
                                                    <tr>
                                                        <td align="left" style="width: 582px">
                                                            <img src="domain/images/1_left.jpg" width="111" height="22"></td>                                                        
                                                    </tr>
                                                </table>
                                                <br>
                                                <table width="550" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td width="342" valign="top" align="left">
                                                            <table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td style="height: 24px">
                                                                        <br>
                                                                        <div id="res">
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                        <td width="208" align="center" valign="top">
                                                            <table width="192" border="0" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                    <td style="width: 183px">
                                                                        <img src="domain/images/domain_1_1.jpg" width="192" height="18"></td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left" background="domain/images/domain_1_bg.jpg" style="width: 183px">
                                                                        <table width="182" border="0" cellspacing="0" cellpadding="3">
                                                                            <tr>
                                                                                <td>
                                                                                    <font color="#FF0000"><strong>敬请用户注意：</strong>.cn的域名不能以个人名义进行注册，否则将被删除，并不退款。</font><br>
                                                                                    域名实时注册开通，域名自主管理功能强大 送20个子域名，免费泛域名解析、主机<br>
                                                                                    A记录、邮件记录、IP指向修改．<br>
                                                                                    请您尽量避免使用不雅字符或已被他人使用的域名，可能会出现无法注册的现象。
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="height: 18px; width: 183px;">
                                                                        <img src="domain/images/domain_1_2.jpg" width="192" height="18"></td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <br>
                                                <table width="540" border="0" cellpadding="3" cellspacing="1" bgcolor="#D5D5D5">
                                                    <tr align="center" bgcolor="#EEEEEE">
                                                        <td rowspan="2" align="left">
                                                            <strong>产品信息</strong></td>
                                                        <td colspan="3" align="center">
                                                            <strong>各等级价格</strong></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center" bgcolor="#EEEEEE">
                                                            <strong>普通用户</strong></td>
                                                        <td align="center" bgcolor="#EEEEEE">
                                                            <strong>银牌代理</strong></td>
                                                        <td align="center" bgcolor="#EEEEEE">
                                                            <strong>金牌代理</strong></td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td align="left">
                                                            国际域名（.com .net .org ）</td>
                                                        <td align="center">
                                                            <span class="style1">50</span></td>
                                                        <td align="center">
                                                            <span class="style1">50</span></td>
                                                        <td align="center">
                                                            <span class="style1">50</span></td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td align="left">
                                                            国内域名（.Com.cn .Net.cn .Gov.cn）</td>
                                                        <td align="center">
                                                            <span class="style1">50</span></td>
                                                        <td align="center">
                                                            <span class="style1">50</span></td>
                                                        <td align="center">
                                                            <span class="style1">50</span></td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td align="left">
                                                            国内域名（.cn）</td>
                                                        <td align="center">
                                                            <span class="style1">50</span></td>
                                                        <td align="center">
                                                            <span class="style1">50</span></td>
                                                        <td align="center">
                                                            <span class="style1">50</span></td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td align="left">
                                                            中文.net 中文.com 中文国际域名</td>
                                                        <td align="center">
                                                            <span class="style1">250</span></td>
                                                        <td align="center">
                                                            <span class="style1">250</span></td>
                                                        <td align="center">
                                                            <span class="style1">250</span></td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td align="left">
                                                            中文中国国家顶级域名</td>
                                                        <td align="center">
                                                            <span class="style1">250</span></td>
                                                        <td align="center">
                                                            <span class="style1">250</span></td>
                                                        <td align="center">
                                                            <span class="style1">250</span></td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td align="left">
                                                            中文通用域名</td>
                                                        <td align="center">
                                                            500</td>
                                                        <td align="center">
                                                            ---</td>
                                                        <td align="center">
                                                            ---</td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td style="height: 20px" align="left">
                                                            3721网络实名</td>
                                                        <td align="center" style="height: 20px">
                                                            500</td>
                                                        <td align="center" style="height: 20px">
                                                            ---</td>
                                                        <td align="center" style="height: 20px">
                                                            ---</td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td align="left">
                                                            .TV域名</td>
                                                        <td align="center">
                                                            500</td>
                                                        <td colspan="2" align="center">
                                                            折扣率 -</td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td align="left">
                                                            .CC域名</td>
                                                        <td align="center">
                                                            380</td>
                                                        <td align="center">
                                                            ---</td>
                                                        <td align="center">
                                                            ---</td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td align="left">
                                                            .info域名</td>
                                                        <td align="center">
                                                            230</td>
                                                        <td align="center">
                                                            ---</td>
                                                        <td align="center">
                                                            ---</td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td align="left">
                                                            .us域名</td>
                                                        <td align="center">
                                                            240</td>
                                                        <td align="center">
                                                            ---</td>
                                                        <td align="center">
                                                            ---</td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td align="left">
                                                            .biz域名</td>
                                                        <td align="center">
                                                            230</td>
                                                        <td align="center">
                                                            ---</td>
                                                        <td align="center">
                                                            ---</td>
                                                    </tr>
                                                    <tr bgcolor="#FFFFFF">
                                                        <td align="left">
                                                            域名转移注册商</td>
                                                        <td colspan="3" align="center">
                                                            相应价格续费一年</td>
                                                    </tr>
                                                    <tr align="right" bgcolor="#F5F5F5">
                                                        <td colspan="4" align="left">
                                                            域名类（均含独立域名面板，即时生效）单位：元/年，了解更优惠价格，请<a href="/Support/VCP_Price.doc">点击这里</a>。</td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td>
                                    <uc4:mainRight ID="MainRight1" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td align="right">
                        &nbsp;</td>
                </tr>
            </table>
        </div>
        <uc2:mainBottom ID="MainBottom1" runat="server" />
    </form>
</body>
</html>
