function showPageFooter(curPath, curFile) {
   document.write('<p class="copyright">Copyright &#169; 2009 by Dr. Herong Yang. All rights reserved.</p>');

   document.write('<p><form method="get" action="http://www.google.com/custom" target="_top">');
   document.write('<input type="hidden" name="domains" value="www.herongyang.com"></input>');
   document.write('<input type="hidden" name="client" value="pub-8765173615603734"></input>');
   document.write('<input type="hidden" name="forid" value="1"></input>');
   document.write('<input type="hidden" name="ie" value="ISO-8859-1"></input>');
   document.write('<input type="hidden" name="oe" value="ISO-8859-1"></input>');
   document.write('<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"></input>');
   document.write('<input type="hidden" name="hl" value="en"></input>');
   document.write('<input type="text" name="q" size="36" maxlength="255" value=""></input>');
   document.write('<input type="submit" name="sa" value="Search"></input>');
   document.write('<input type="radio" name="sitesearch" value="www.herongyang.com" checked="checked"></input>');
   document.write('<font size="-1" color="#000000"><img src="http://www.herongyang.com/favicon.ico" alt="HerongYang.com" style="vertical-align: middle"/> site</font>');
   document.write('<input type="radio" name="sitesearch" value=""></input>');
   document.write('<font size="-1" color="#000000">Web</font>');
   document.write('<a href="http://www.google.com/">');
   document.write('<img src="http://www.google.com/logos/Logo_25wht.gif"');
   document.write('border="0" alt="Google.com" style="vertical-align: middle"/></a>');
   document.write('</form></p>');
}

function writeMenu(subject) {
   document.write('<b>');
   document.write('<a href="../index.html"><img src="http://www.herongyang.com/favicon.ico" border="0" align="absmiddle"/></a> [ <a href="../index.html">Home</a> | ');
   document.write('<a href="../news.html">News</a> | ');
   document.write('<a href="../search.html">Search</a> | ');
   document.write('<a href="../comments/?TopicID=2">Comments</a> | ');
   document.write('<a href="http://help.herongyang.com">Help</a> ]&nbsp; &nbsp; ');

   document.write('[ <a href="pdf.html">PDF</a> | ');
   document.write('<a href="atom.xml">RSS</a> | ');
   document.write('<a href="index.html">Index</a> ]');
   document.write('</b>');
}

function writePageLeft(subject) {
   document.write('<img src=_dot.gif width=160 height=1/>');
   document.write('<p>&nbsp;</p>');
   document.write('<p class="g_key"><a href="/hySite">Download: hySite</a></p>');
   document.write('<p class="g_des">Simple site directory in ASP</p>');
   document.write('<p class="g_key"><a href="/hyBook">Download: hyBook</a></p>');
   document.write('<p class="g_des">Simple guestbook in ASP</p>');

   document.write('<img src=_dot.gif width=160 height=1/>');
   document.write('<p>&nbsp;</p>');
   document.write('<p class="g_key"><a href="/2009">2009 Chinese Calendar</a></p>');
   document.write('<p class="g_key"><a href="/chinese/wedding/wedding_dates_2009.html">2009 Wedding Calendar</a></p>');
   document.write('<p class="g_key"><a href="/chinese/index.html">More...</a></p>');
}

function writeRight(subject) {
   document.write('<img src=_dot.gif width=220 height=1/>');
   document.write('<p class="g_key">Free Books by Herong</a></p>');

   document.write('<img src=_dot.gif width=200 height=1/>');

   document.write('<p class="g_key"><a href="/site_map.html">All books...</a></p>');

   document.write('<img src=_dot.gif width=200 height=1/>');

   document.write('<p class="g_key"><a href="/Windows-Security/">Windows Security Notes</a></p>');
   document.write('<p class="g_des">Virus, Trojan, Spyware, Adware...</p>');

   document.write('<p class="g_key"><a href="/JavaScript/">JavaScript Tutorial Examples</a></p>');
   document.write('<p class="g_des">Variable, Function, Object...</p>');

   document.write('<p class="g_key"><a href="/XML-Schema/">XML Schema (XSD) Notes</a></p>');
   document.write('<p class="g_des">XML, Schema, XSD, Validation...</p>');

   document.write('<p class="g_key"><a href="/CD-DVD/">CD/DVD Tutorial Notes</a></p>');
   document.write('<p class="g_des">Audio, Play, Copy, Rip, Burn, MP3...</p>');

   document.write('<p class="g_key"><a href="/PHP-Chinese/">Chinese Web Sites using PHP</a></p>');
   document.write('<p class="g_des">PHP, UTF-8, GBK, GB18030, Big5...</p>');

   document.write('<p class="g_key"><a href="/jdbc/">Java JDBC Tutorials</a></p>');
   document.write('<p class="g_des">Connection, ResultSet, SQL Server...</p>');

   document.write('<p class="g_key"><a href="/VBScript/">VBScript Tutorials</a></p>');
   document.write('<p class="g_des">Variant, Object, Class, IE, IIS...</p>');

   document.write('<p class="g_key"><a href="/Java-Tools">Java Tools Tutorials</a></p>');
   document.write('<p class="g_des">javac, java, jar, jdb, keytool...</p>');

   document.write('<p class="g_key"><a href="/Windows">Tutorial Book: Windows</a></p>');
   document.write('<p class="g_des">FTP, ZIP, RAR, Crossover cable...</p>');

   document.write('<p class="g_key"><a href="/asp">Tutorial Book: ASP</a></p>');
   document.write('<p class="g_des">Cookies, Sessions, Response...</p>');

   document.write('<p class="g_key"><a href="/crypto">Tutorial Book: Cryptography</a></p>');
   document.write('<p class="g_des">Blowfish, DES, SSL, OpenSSL...</p>');

   document.write('<p class="g_key"><a href="/java">Tutorial Book: Java</a></p>');
   document.write('<p class="g_des">Threads, Synchronize, Deadlock...</p>');

   document.write('<p class="g_key"><a href="/jdk">Tutorial Book: JDK</a></p>');
   document.write('<p class="g_des">XML, DOM, keytool & keystore...</p>');

   document.write('<p class="g_key"><a href="/jsp">Tutorial Book: JSP</a></p>');
   document.write('<p class="g_des">Cookie, JavaBean, JSTL, Tags...</p>');

   document.write('<p class="g_key"><a href="/jvm">Tutorial Book: JVM</a></p>');
   document.write('<p class="g_des">HotSpot, JRockit, GC, Memory...</p>');

   document.write('<p class="g_key"><a href="/perl">Tutorial Book: Perl - Part A</a></p>');
   document.write('<p class="g_des">References, Class, Binary, DBM...</p>');

   document.write('<p class="g_key"><a href="/perl_b">Tutorial Book: Perl - Part B</a></p>');
   document.write('<p class="g_des">Socket, XML, SOAP, RPC, CGI...</p>');

   document.write('<p class="g_key"><a href="/php">Tutorial Book: PHP</a></p>');
   document.write('<p class="g_des">Session, Cookie, MySQL, SOAP...</p>');

   document.write('<p class="g_key"><a href="/sort">Book: Sorting Algorithms</a></p>');
   document.write('<p class="g_des">Quicksort, Merge, Heap, Shell...</p>');

   document.write('<p class="g_key"><a href="/MySQL">Tutorial Book: MySQL</a></p>');
   document.write('<p class="g_des">MySQL, Locks, Stored procedure...</p>');

   document.write('<p class="g_key"><a href="/swing">Tutorial Book: Swing</a></p>');
   document.write('<p class="g_des">JFrame, Layouts, Localization...</p>');

   document.write('<p class="g_key"><a href="/unicode">Tutorial Book: Unicode</a></p>');
   document.write('<p class="g_des">Character set, UTF8, Conversion...</p>');

   document.write('<p class="g_key"><a href="/ws">Book: SOAP & Web Service</a></p>');
   document.write('<p class="g_des">SOAP 1.1, Protocol Binding, WSDL...</p>');

   document.write('<p class="g_key"><a href="/gb2312">Book: GB2312 Character Set</a></p>');
   document.write('<p class="g_des">Unicode, UTF8, Mapping table...</p>');

   document.write('<p class="g_key"><a href="/xhtml">Tutorial Book: XSLT & XHTML</a></p>');
   document.write('<p class="g_des">XSL-FO, FOP, Generating PDF...</p>');

   document.write('<p class="g_key"><a href="/xml">Tutorial Book: XML Technologies</a></p>');
   document.write('<p class="g_des">DOM, SAX, XSD, XSL, XPath, DTD...</p>');

   document.write('<p class="g_key"><a href="/encoding">Tutorial Book: Data Encoding</a></p>');
   document.write('<p class="g_des">Base64, UUEncode, Java code...</p>');

   document.write('<p class="g_key"><a href="/year">200 Years of Chinese Calendar</a></p>');
   document.write('<p class="g_des">Algorithm, Printable calendars...</p>');

   document.write('<p class="g_key"><a href="/site_map.html">All books...</a></p>');
   document.write('<p class="g_des">C#, and more...</p>');

   document.write('<img src=_dot.gif width=200 height=1/>');
   document.write('<p class="g_key"><a href="/gb2312_gb">In Chinese: GB2312 Character Set</a></p>');
   document.write('<p class="g_des">Unicode, UTF8, Mapping table...</p>');

   document.write('<p class="g_key"><a href="/xhtml_gb">In Chinese: XSLT & XHTML</a></p>');
   document.write('<p class="g_des">XSL-FO, FOP, Generating PDF...</p>');

   document.write('<p class="g_key"><a href="/year_gb">Chinese GB: 200 Years Calendar</a></p>');
   document.write('<p class="g_des">Algorithm, Printable calendars...</p>');

   document.write('<p class="g_key"><a href="/year_big5">Chinese Big5: 200 Years Calendar</a></p>');
   document.write('<p class="g_des">Algorithm, Printable calendars...</p>');
   
   document.write('<img src=_dot.gif width=200 height=1/>');
   document.write('<p class="g_key">Copyright &#169; 2009 Dr. Herong Yang</p>');
   document.write('<p class="g_des">All rights reserved.</p>');
   document.write('<img src=_dot.gif width=200 height=1/>');
   document.write('<p class="g_des">WebCounter <img src="http://counter.digits.com/wc/-d/4/herong" alt="Hits" align="center" width="80" height="20" border="0"/></p>');
}

function writeBottom(subject) {
}

function writeSection(subject) {
}

function writeTop(subject) {
}

function writeLeft(subject) {
}

function bannerLeft(subject) {
google_ad_client = "pub-8765173615603734";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text";
google_ad_channel ="8066905451";
google_color_border = "fbfbfb";
google_color_bg = "fbfbfb";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
}

function bannerTop(subject) {
google_ad_client = "pub-8765173615603734";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel ="8066905451";
google_color_border = "fbfbfb";
google_color_bg = "fbfbfb";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
}

function bannerBottom(subject) {
google_ad_client = "pub-8765173615603734";
google_ad_width = 200;
google_ad_height = 90;
google_ad_format = "200x90_0ads_al";
google_ad_channel ="8066905451";
google_color_border = "fbfbfb";
google_color_bg = "fbfbfb";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
}
