#!/usr/bin/perl

 ##################################################################################
 #                                                                                #
 #                COPYRIGHT(C) NEWSBOOK LTD                                       #
 #                EMAIL: info@newsbook.net                                        #
 #                HOMEPAGE: http://www.newsbook.net                               #
 #                                                                                #
 #                THIS FILE WRITTEN ON 25/02/1999 AT 13:00 BY AH PING             #
 #                                                                                #
 ##################################################################################
require "cgi-lib.cgi";
&ReadParse(*input);

@months = ('1','2','3','4','5','6','7','8','9','10','11','12');
@days   = ('日','一','二','三','四','五','六');
($sec,$min,$hour,$mday,$mon,$year,$wday) = (localtime(time))[0,1,2,3,4,5,6];
$time = sprintf("%02d:%02d:%02d",$hour,$min,$sec);
$year += 1900;
$date = "星期$days[$wday]，$year年$months[$mon]月$mday月 ($time)";

print "Content-type: text/html\n\n";

if ($input{'domain'} eq "Check")
{
&check;
}

print <<"DOMAIN";
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Newsbook Limited</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style type="text/css">
<!--
a:link {  text-decoration: none}
a:active {  text-decoration: none}
a:hover {  text-decoration: none; color:#ff0000; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-style: normal}
a:visited {  text-decoration: none}
-->
</style>
<title>N e w s b o o k L i m i t e d</title>
<script language="JavaScript" src="navcond.js"></script>
<script>

var myNavBar1 = new NavBar(0);
var dhtmlMenu;

dhtmlMenu = new NavBarMenu(60, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Profile", "index.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(115, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Web Hosting", "hosting.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Hong Kong Hosting Services", "hosting.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("China Hosting Services", "china_domain_name.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("100MB E-mail Storage", "services_mail.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("NT Platform", "nt_plat_form.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(140, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Server Management", "server_management.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("(Hong Kong)Our Data Centre", "our_datacenter.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Our High-speed Internet connectivity", "our_high-speed.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Our Facilities", "our_facilities.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Server Co-location", "server-colocation.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Server Rental With Co-location", "server-rental-with-colocation.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("(China)Server Rental With Co-location", "chi_server-rental-with-colocation.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(130, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Technical Support", "http://www.newsbook.net/tech"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(130, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Corporation News", "news.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(93, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Order Form", "order.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(93, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Others", ""));
dhtmlMenu.addItem(new NavBarMenuItem("FAQ", "faq.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Partner", "partner.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Domain Search", "domain.pl"));
dhtmlMenu.addItem(new NavBarMenuItem("Contact Us", "contact.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Other Services", "other.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Our Customers", "customers.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Transfer to Newsbook", "transfer_to_newsbook.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Newsbook Fax to Email", "pricing.htm"));
myNavBar1.addMenu(dhtmlMenu);
myNavBar1.setColors("#ff9900", "#ffffff", "#8ec756", "#ff0d23", "#ffcc66", "#000000", "#FFFFEA", "#ff0d23", "#ffe4ca")
myNavBar1.setAlign("left")
myNavBar1.moveBy(0, 67)

var fullWidth;

function init() {

  fullWidth = getWindowWidth() 
    - (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);

  myNavBar1.resize(fullWidth);
  myNavBar1.create();
  myNavBar1.setzIndex(2);
}
</script>
</head>

<body onload="init()" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" link="#000080" vlink="#000080">

<form method="GET" action="domain.pl">
  <input type="hidden" name="domain" value="Check"><table border="0" width="100%" marginwidth="0" marginheight="0" cellspacing="0" cellpadding="0" bgcolor="#D00000">
  <tr>
    <td width="33%"><img border="0" src="images/logo.gif" width="228" height="67"></td>
    <td width="34%"><img border="0" src="images/Movie2.gif" width="450" height="67"></td>
    <td width="33%">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
       <tr>
        <td width="100%" align="center"><a href="chi/domain.pl"><img border="0" src="images/logo4.gif" width="70" height="15"></td>
       </tr>
       <tr>
        <td width="100%" align="center"><a href="http://www.newsbook.net/gb"><img border="0" src="images/logo5.gif" width="70" height="16"></a></td>
       </tr>
       <tr>
        <td width="100%" align="center"><img border="0" src="images/logo6.gif" width="70" height="15"></td>
       </tr>
       <tr>
        <td width="100%" align="center"><a href="http://www.newsbook.de/"><img border="0" src="images/logo7.gif" width="70" height="14"></a></td>
       </tr>
      </table>
    </td>
  </tr>
</table>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
<div align="right">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="246">
  <tr>
    <td width="23%" valign="top" height="246">
      <table border="0" width="144" cellspacing="0" cellpadding="0" height="192">
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23"><font face="Verdana" size="2"><a href="index.htm"><font color="#000000">Profile</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23"><font face="Verdana" size="2"><a href="hosting.htm"><font color="#000000">Web
                  Hosting</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23"><font face="Verdana" size="2"><a href="server_management.htm"><font color="#000000">Server
                  Management</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="other.htm"><font color="#000000">Other
                  Services</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="domain.pl"><font color="#000000">Domain
                  Search</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="news.htm"><font color="#000000">Corporation
                  News</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="customers.htm"><font color="#000000">Our
                  Customers</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="http://www.newsbook.net/tech"><font color="#000000">Technical
                  Support</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="contact.htm"><font color="#000000">Contact
                  Us</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="order.htm"><font color="#000000">Order
                  Form</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="http://www.newsbook.net/flash.htm"><font color="#000000">Flash
                  Version</font></a></font></td>
        </tr>
      </table>
    </td>
    <td width="73%" valign="top" height="246">
      <table border="0" width="575" cellspacing="0" cellpadding="0">
        <tr>
          <td width="573">
            <div align="center">
                <center>
                <table border="0" width="99%" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="28%"></td>
                    <td width="72%"></td>
                  </tr>
                  <tr>
                    <td width="28%"></td>
                    <td width="72%"></td>
                  </tr>
                </center>

            <tr>
              <td width="157"><font face="Verdana" size="4">Domain name:</font></td>
              <td width="443"><input name="intended_domain_name" size="15"><select name="type" size="1">
                <option value="com" selected>.com</option>
                <option value="net">.net</option>
                <option value="com.hk">.com.hk</option>
                <option value="net.hk">.net.hk</option>
                <option value="org.hk">.org.hk</option>
                <option value="edu.hk">.edu.hk</option>
              </select></td>
            </tr>
            <tr>
              <td width="157"></td>
              <td width="443"><input type="submit" value="Check"></td>
            </tr>
            <tr>
              <td width="600" colspan="2"><div align="center"><center><table border="0" cellpadding="0"
              cellspacing="0" width="533">
                <tr>
                  <td width="533" bgcolor="#FFF7F7">......<p></p><br><br><br><br>
                  <p></td>
                </tr>
              </table>
              </center></div></td>
            </tr>
          </table>
          </center></div></td>
        </tr>
        <tr align="center">
          <td width="898" height="1" valign="top"></td>
        </tr>
        <tr align="center">
          <td width="898" height="1" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0" height="13">
<TBODY>
            <tr>
              <td height="8" width="503"><table border="0" cellPadding="0" cellSpacing="0" width="503">
<TBODY>
                <tr>
                  <td colSpan="3" height="8" width="503"><p align="center"><font face="Verdana" size="1">C 1998 NEWSBOOK LIMITED</font></td>
                </tr>
                <tr>
                  <td colSpan="3" height="11" width="503"><p align="center"><font face="Verdana" size="1">Room 1, 1/F, Hung Tai Bldg, 37-39, Hung To Road, Kwun Tong, Hong Kong (Property of Newsbook Group)
</font></td>
                </tr>
                <tr>
                  <td width="30%"><font face="Verdana" size="1">Tel</font><font face="Verdana" size="1">:(852)27820197</font></td>
                  <td width="30%"><font face="Verdana" size="1">Fax</font><font face="Verdana" size="1">:(852)23799326</font></td>
                  <td width="30%"><font face="Verdana" size="1">E-mail</font><font face="Verdana" size="1">: <a
                  href="mailto:info\@newsbook.net">info\@newsbook.net</a></font></td>
                </tr>
</TBODY>
              </table>
              </td>
            </tr>
</TBODY>
          </table>
          </td>
        </tr>
      </table>
      </center></div></td>
    </tr>
    <tr align="center">
      <td width="100%"></td>
    </tr>
  </table>
</form>
</body>
</html>
DOMAIN
exit;


sub check
{
$whois = "/usr/bin/jwhois";
$input{'intended_domain_name'} =~ s/\"/\&quot\;/g;
$input{'intended_domain_name'} =~ tr/A-Z/a-z/;
$input{'intended_domain_name'} =~ s/^www\.//;
$input{'intended_domain_name'} =~ s/,$//g;
$input{'intended_domain_name'} =~ s/\;//g;
$input{'intended_domain_name'} =~ s/,,+/,/g;
$input{'intended_domain_name'} =~ s/^,//g;
$input{'intended_domain_name'} =~ s/\.(net|org|com|com\.hk|org\.hk|net\.hk|edu\.hk)$//g;
$search = "$input{'intended_domain_name'}\.$input{'type'}";

$ishkdnr=0;

if ($input{'type'} eq "com")
{
$who = "$whois $search";
}
if ($input{'type'} eq "net")
{
$who = "$whois $search";
}
if ($input{'type'} eq "org")
{
$who = "$whois $search\@whois.hkdnr.net.hk";
}
if ($input{'type'} eq "com\.hk")
{
$ishkdnr=1;
$who = "$whois $search\@whois.hkdnr.net.hk";
}
if ($input{'type'} eq "org\.hk")
{
$ishkdnr=1;
$who = "$whois $search\@whois.hkdnr.net.hk";
}
if ($input{'type'} eq "net\.hk")
{
$ishkdnr=1;
$who = "$whois $search\@whois.hkdnr.net.hk";
}
if ($input{'type'} eq "edu\.hk")
{
$ishkdnr=1;
$who = "$whois $search\@whois.hkdnr.net.hk";
}

if ($ENV{'REMOTE_USER'} != 0) { 
$newREMOTE_USER = $ENV{'REMOTE_USER'};
} else { 
$newREMOTE_USER = "Turned Off"; 
}
if ($search =~ /@/i) {
	$searched = "mailto:$search";
} else {
	$searched = "http://www.$search";
}
if (defined($input{'domain'})) {
    if ($search =~ /^([-\@\w.]+)$/) {
        $search = $1;
        $result = `$who`;

}
}
if ($input{'intended_domain_name'} eq "")
{
$error = "You must type a domain (eg. newsbook) to search.";
&back;
}

sub back
{
if ($input{'type'} eq "com") { $select01=" selected"; }
if ($input{'type'} eq "com\.hk") { $select02=" selected"; }
if ($input{'type'} eq "net") { $select03=" selected"; }
if ($input{'type'} eq "net\.hk") { $select04=" selected"; }
if ($input{'type'} eq "org") { $select05=" selected"; }
if ($input{'type'} eq "org\.hk") { $select06=" selected"; }
if ($input{'type'} eq "edu\.hk") { $selectedu=" selected"; }
print <<"DD";
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Newsbook Limited</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style type="text/css">
<!--
a:link {  text-decoration: none}
a:active {  text-decoration: none}
a:hover {  text-decoration: none; color:#ff0000; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-style: normal}
a:visited {  text-decoration: none}
-->
</style>
<title>N e w s b o o k L i m i t e d</title>
<script language="JavaScript" src="navcond.js"></script>
<script>

var myNavBar1 = new NavBar(0);
var dhtmlMenu;

dhtmlMenu = new NavBarMenu(60, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Profile", "index.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(115, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Web Hosting", "hosting.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Hong Kong Hosting Services", "hosting.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("China Hosting Services", "china_domain_name.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("100MB E-mail Storage", "services_mail.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("NT Platform", "nt_plat_form.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(140, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Server Management", "server_management.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("(Hong Kong)Our Data Centre", "our_datacenter.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Our High-speed Internet connectivity", "our_high-speed.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Our Facilities", "our_facilities.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Server Co-location", "server-colocation.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Server Rental With Co-location", "server-rental-with-colocation.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("(China)Server Rental With Co-location", "chi_server-rental-with-colocation.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(130, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Technical Support", "http://www.newsbook.net/tech"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(130, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Corporation News", "news.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(93, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Order Form", "order.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(93, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Others", ""));
dhtmlMenu.addItem(new NavBarMenuItem("FAQ", "faq.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Partner", "partner.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Domain Search", "domain.pl"));
dhtmlMenu.addItem(new NavBarMenuItem("Contact Us", "contact.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Other Services", "other.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Our Customers", "customers.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Transfer to Newsbook", "transfer_to_newsbook.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Newsbook Fax to Email", "pricing.htm"));
myNavBar1.addMenu(dhtmlMenu);
myNavBar1.setColors("#ff9900", "#ffffff", "#8ec756", "#ff0d23", "#ffcc66", "#000000", "#FFFFEA", "#ff0d23", "#ffe4ca")
myNavBar1.setAlign("left")
myNavBar1.moveBy(0, 67)

var fullWidth;

function init() {

  fullWidth = getWindowWidth() 
    - (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);

  myNavBar1.resize(fullWidth);
  myNavBar1.create();
  myNavBar1.setzIndex(2);
}
</script>
</head>

<body onload="init()" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" link="#000080" vlink="#000080">

<form method="GET" action="domain.pl">
  <input type="hidden" name="domain" value="Check"><table border="0" cellpadding="0"
  cellspacing="0" width="778" height="70">
    <tr>
      <td width="100%" bgcolor="#C60000"><div align="center"><center><table border="0"
      cellpadding="0" cellspacing="0" width="100%" height="47">
        <tr>
    <td width="33%"><img border="0" src="images/logo.gif" width="228" height="67"></td>
    <td width="34%"><img border="0" src="images/Movie2.gif" width="450" height="67"></td>
    <td width="33%">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
       <tr>
        <td width="100%" align="center"><a href="chi/domain.pl"><img border="0" src="images/logo4.gif" width="70" height="15"></td>
       </tr>
       <tr>
        <td width="100%" align="center"><a href="http://www.newsbook.net/gb"><img border="0" src="images/logo5.gif" width="70" height="16"></a></td>
       </tr>
       <tr>
        <td width="100%" align="center"><img border="0" src="images/logo6.gif" width="70" height="15"></td>
       </tr>
       <tr>
        <td width="100%" align="center"><a href="http://www.newsbook.de/"><img border="0" src="images/logo7.gif" width="70" height="14"></a></td>
       </tr>
      </table>
    </td>
  </tr>
          </center></div></td>
        </tr>
      </table>
</table>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
<div align="right">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="246">
  <tr>
    <td width="23%" valign="top" height="246">
      <table border="0" width="144" cellspacing="0" cellpadding="0" height="192">
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23"><font face="Verdana" size="2"><a href="index.htm"><font color="#000000">Profile</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23"><font face="Verdana" size="2"><a href="hosting.htm"><font color="#000000">Web
                  Hosting</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23"><font face="Verdana" size="2"><a href="server_management.htm"><font color="#000000">Server
                  Management</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="other.htm"><font color="#000000">Other
                  Services</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="domain.pl"><font color="#000000">Domain
                  Search</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="news.htm"><font color="#000000">Corporation
                  News</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="customers.htm"><font color="#000000">Our
                  Customers</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="http://www.newsbook.net/tech"><font color="#000000">Technical
                  Support</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="contact.htm"><font color="#000000">Contact
                  Us</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="order.htm"><font color="#000000">Order
                  Form</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="http://www.newsbook.net/flash.htm"><font color="#000000">Flash
                  Version</font></a></font></td>
        </tr>
      </table>
    </td>
    <td width="73%" valign="top" height="246">
      <table border="0" width="575" cellspacing="0" cellpadding="0">
        <tr>
          <td width="573">
            <div align="center">
                <center>
                <table border="0" width="99%" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="28%"></td>
                    <td width="72%"></td>
                  </tr>
                  <tr>
                    <td width="28%"></td>
                    <td width="72%"></td>
                  </tr>
                </center>
            <tr>
              <td width="157"><font face="Verdana" size="4">Domain name:</font></td>
              <td width="443"><input name="intended_domain_name" size="15" value="$input{'intended_domain_name'}"><select name="type" size="1">
                <option value="com" $select01>.com</option>
                <option value="net" $select03>.net</option>
                <option value="org" $select05>.org</option>
                <option value="com.hk" $select02>.com.hk</option>
                <option value="net.hk" $select04>.net.hk</option>
                <option value="org.hk" $select06>.org.hk</option>
                <option value="edu.hk" $selectedu>.edu.hk</option>
              </select></td>
            </tr>
            <tr>
              <td width="157"></td>
              <td width="443"><input type="submit" value="Check"></td>
            </tr>
            <tr>
              <td width="600" colspan="2"><div align="center"><center><table border="0" cellpadding="0"
              cellspacing="0" width="533">
                <tr>
                  <td width="533" bgcolor="#FFF7F7">......$error<p></p><br><br><br><br>
                  <p></td>
                </tr>
              </table>
              </center></div></td>
            </tr>
          </table>
          </center></div></td>
        </tr>
<tr align="center">
          <td width="898" height="1" valign="top"></td>
        </tr>
        <tr align="center">
          <td width="898" height="1" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0" height="13">
<TBODY>
            <tr>
              <td height="8" width="503"><table border="0" cellPadding="0" cellSpacing="0" width="503">
<TBODY>
                <tr>
                  <td colSpan="3" height="8" width="503"><p align="center"><font face="Verdana" size="1">C 1998 NEWSBOOK LIMITED</font></td>
                </tr>
                <tr>
                  <td colSpan="3" height="11" width="503"><p align="center"><font face="Verdana" size="1">Room 1, 1/F, Hung Tai Bldg, 37-39, Hung To Road, Kwun Tong, Hong Kong (Property of Newsbook Group)
</font></td>
                </tr>
                <tr>
                  <td width="30%"><font face="Verdana" size="1">Tel</font><font face="Verdana" size="1">:(852)27820197</font></td>
                  <td width="30%"><font face="Verdana" size="1">Fax</font><font face="Verdana" size="1">:(852)23799326</font></td>
                  <td width="30%"><font face="Verdana" size="1">E-mail</font><font face="Verdana" size="1">: <a
                  href="mailto:info\@newsbook.net"><font color=#000000>info\@newsbook.net</font></a></font></td>
                </tr>
</TBODY>
              </table>
              </td>
            </tr>
</TBODY>
          </table>
          </td>
        </tr>
      </table>
      </center></div></td>
    </tr>
    <tr align="center">
      <td width="100%"></td>
    </tr>
  </table>
</form>
</body>
</html>


DD
exit;
}

if($ishkdnr==0)
{
$av = "<b>$input{'intended_domain_name'}\.$input{'type'}</b> is already owned.";
$result =~ s/\[[^>]+\]{1}//g;
foreach ($result)
{
if ($_ =~ /No match for/i)
{
$av = "<b>$input{'intended_domain_name'}\.$input{'type'}</b> is still available.";
}
if ($_ =~ /\% Your search returns no relevent records/i)
{
$av = "<b>$input{'intended_domain_name'}\.$input{'type'}</b> is still available.";
}
}
}

if($ishkdnr==1)
{
$result =~ s/\[[^>]+\]{1}//g;
$hkdnrflag1=0;
$hkdnrflag2=0;
@result=split("\n",$result);
foreach $hkdnrresult (@result)
{
	if ($hkdnrresult=~m/-/)
		{
		$hkdnrflag1++;
		}

	if ($hkdnrflag1==1&&$hkdnrflag2==1)
		{
		$av =$av.$hkdnrresult."<br>\n";
		}

	if ($hkdnrresult=~m/-/)
		{
		$hkdnrflag2++;
		}
}
if ( !($av=~m/\S/)|| !($av=~m//) )
	{
	$av="Invalid Input. Or<br>\n";
	$av=$av."Registrar's server is busy! Please try again later!\n";
	}

$av="<font size=2>".$av."</font>\n";
}

if ($input{'type'} eq "com") { $select01=" selected"; }
if ($input{'type'} eq "com\.hk") { $select02=" selected"; }
if ($input{'type'} eq "net") { $select03=" selected"; }
if ($input{'type'} eq "net\.hk") { $select04=" selected"; }
if ($input{'type'} eq "org") { $select05=" selected"; }
if ($input{'type'} eq "org\.hk") { $select06=" selected"; }
if ($input{'type'} eq "edu\.hk") { $selectedu=" selected"; }

print <<"DDD";
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Newsbook Limited</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style type="text/css">
<!--
a:link {  text-decoration: none}
a:active {  text-decoration: none}
a:hover {  text-decoration: none; color:#ff0000; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-style: normal}
a:visited {  text-decoration: none}
-->
</style>
<title>N e w s b o o k L i m i t e d</title>
<script language="JavaScript" src="navcond.js"></script>
<script>

var myNavBar1 = new NavBar(0);
var dhtmlMenu;

dhtmlMenu = new NavBarMenu(60, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Profile", "index.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(115, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Web Hosting", "hosting.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Hong Kong Hosting Services", "hosting.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("China Hosting Services", "china_domain_name.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("100MB E-mail Storage", "services_mail.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("NT Platform", "nt_plat_form.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(140, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Server Management", "server_management.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("(Hong Kong)Our Data Centre", "our_datacenter.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Our High-speed Internet connectivity", "our_high-speed.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Our Facilities", "our_facilities.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Server Co-location", "server-colocation.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Server Rental With Co-location", "server-rental-with-colocation.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("(China)Server Rental With Co-location", "chi_server-rental-with-colocation.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(130, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Technical Support", "http://www.newsbook.net/tech"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(130, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Corporation News", "news.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(93, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Order Form", "order.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(93, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Others", ""));
dhtmlMenu.addItem(new NavBarMenuItem("FAQ", "faq.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Partner", "partner.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Domain Search", "domain.pl"));
dhtmlMenu.addItem(new NavBarMenuItem("Contact Us", "contact.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Other Services", "other.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Our Customers", "customers.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Transfer to Newsbook", "transfer_to_newsbook.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Newsbook Fax to Email", "pricing.htm"));
myNavBar1.addMenu(dhtmlMenu);
myNavBar1.setColors("#ff9900", "#ffffff", "#8ec756", "#ff0d23", "#ffcc66", "#000000", "#FFFFEA", "#ff0d23", "#ffe4ca")
myNavBar1.setAlign("left")
myNavBar1.moveBy(0, 67)

var fullWidth;

function init() {

  fullWidth = getWindowWidth() 
    - (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);

  myNavBar1.resize(fullWidth);
  myNavBar1.create();
  myNavBar1.setzIndex(2);
}
</script>
</head>

<body onload="init()" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" link="#000080" vlink="#000080">

<form method="GET" action="domain.pl">
  <input type="hidden" name="domain" value="Check"><table border="0" cellpadding="0"
  cellspacing="0" width="778" height="70">
    <tr>
      <td width="100%" bgcolor="#C60000"><div align="center"><center><table border="0"
      cellpadding="0" cellspacing="0" width="100%" height="47">
        <tr>
    <td width="33%"><img border="0" src="images/logo.gif" width="228" height="67"></td>
    <td width="34%"><img border="0" src="images/Movie2.gif" width="450" height="67"></td>
    <td width="33%">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
       <tr>
        <td width="100%" align="center"><a href="chi/domain.pl"><img border="0" src="images/logo4.gif" width="70" height="15"></td>
       </tr>
       <tr>
        <td width="100%" align="center"><a href="http://www.newsbook.net/gb"><img border="0" src="images/logo5.gif" width="70" height="16"></a></td>
       </tr>
       <tr>
        <td width="100%" align="center"><img border="0" src="images/logo6.gif" width="70" height="15"></td>
       </tr>
       <tr>
        <td width="100%" align="center"><a href="http://www.newsbook.de/"><img border="0" src="images/logo7.gif" width="70" height="14"></a></td>
       </tr>
      </table>
    </td>
  </tr>
          </center></div></td>
        </tr>
      </table>
</table>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
<div align="right">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="246">
  <tr>
    <td width="23%" valign="top" height="246">
      <table border="0" width="144" cellspacing="0" cellpadding="0" height="192">
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23"><font face="Verdana" size="2"><a href="index.htm"><font color="#000000">Profile</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23"><font face="Verdana" size="2"><a href="hosting.htm"><font color="#000000">Web
                  Hosting</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23"><font face="Verdana" size="2"><a href="server_management.htm"><font color="#000000">Server
                  Management</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="other.htm"><font color="#000000">Other
                  Services</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="domain.pl"><font color="#000000">Domain
                  Search</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="news.htm"><font color="#000000">Corporation
                  News</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="customers.htm"><font color="#000000">Our
                  Customers</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="http://www.newsbook.net/tech"><font color="#000000">Technical
                  Support</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="contact.htm"><font color="#000000">Contact
                  Us</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="order.htm"><font color="#000000">Order
                  Form</font></a></font></td>
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24"><font face="Verdana" size="2"><a href="http://www.newsbook.net/flash.htm"><font color="#000000">Flash
                  Version</font></a></font></td>
        </tr>
      </table>
    </td>
    <td width="73%" valign="top" height="246">
      <table border="0" width="575" cellspacing="0" cellpadding="0">
        <tr>
          <td width="573">
            <div align="center">
                <center>
                <table border="0" width="99%" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="28%"></td>
                    <td width="72%"></td>
                  </tr>
                  <tr>
                    <td width="28%"></td>
                    <td width="72%"></td>
                  </tr>
                </center>
            <tr>
              <td width="157"><font face="Arial" size="4">Domain name:</font></td>
              <td width="443"><input name="intended_domain_name" size="15"><select name="type" size="1">
                <option value="com" $select01>.com</option>
                <option value="net" $select03>.net</option>
                <option value="org" $select05>.org</option>
                <option value="com.hk" $select02>.com.hk</option>
                <option value="net.hk" $select04>.net.hk</option>
                <option value="org.hk" $select06>.org.hk</option>
                <option value="edu.hk" $selectedu>.edu.hk</option>
              </select></td>
            </tr>
            <tr>
              <td width="157"></td>
              <td width="443"><input type="submit" value="Check"></td>
            </tr>
            <tr>
              <td width="600" colspan="2"><blockquote>
                <p><font face="Arial" color="#FF0080"><big><big>$av</big></big></font></p>
              </blockquote>
              </td>
            </tr>
            <tr>
              <td width="600" colspan="2"><div align="center"><center>
               
              </center></div></td>
            </tr>
          </table>
          </center></div></td>
        </tr>
        <tr align="center">
          <td width="898" height="1" valign="top"></td>
        </tr>
        <tr align="center">
          <td width="898" height="1" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0" height="13">
<TBODY>
            <tr>
              <td height="8" width="503"><table border="0" cellPadding="0" cellSpacing="0" width="503">
<TBODY>
                <tr>
                  <td colSpan="3" height="8" width="898"><p align="center"><font face="Verdana" size="1">C 1998 NEWSBOOK LIMITED</font></td>
                </tr>
                <tr>
                  <td colSpan="3" height="11" width="898"><p align="center"><font face="Verdana" size="1">Room 1, 1/F, Hung Tai Bldg, 37-39, Hung To Road, Kwun Tong, Hong Kong (Property of Newsbook Group)
</font></td>
                </tr>
                <tr>
                  <td width="30%"><font face="Verdana" size="1">Tel</font><font face="Verdana" size="1">:(852)27820197</font></td>
                  <td width="30%"><font face="Verdana" size="1">Fax</font><font face="Verdana" size="1">:(852)23799326</font></td>
                  <td width="30%"><font face="Verdana" size="1">E-mail</font><font face="Verdana" size="1">: <a
                  href="mailto:info\@newsbook.net"><font color=#000000>info\@newsbook.net</font></a></font></td>
                </tr>
</TBODY>
              </table>
              </td>
            </tr>
</TBODY>
          </table>
          </td>
        </tr>
      </table>
      </center></div></td>
    </tr>
    <tr align="center">
      <td width="100%"></td>
    </tr>
  </table>
</form>
</body>
</html>
DDD
exit;
}
