﻿<!---// Mua xuan nam 1995 tai mot thanh pho mien nui Tay Bac Hoa ky. Nguoi vien khach, mot dem khong ngu...
   var msg = "Nguoi dao si quay mot noi ke vang trong hang nui: Giac Nam Kha kheo bat binh, bung con mat day thay minh tay khong! ";
   var separator = "    ****                                                                     ****    ";
   var pos = 0;

function QuayVong() {
   document.VanTho.BanVan.value =  msg.substring(pos, msg.length) + separator + msg.substring(0, pos);
   pos++;
   if (pos > msg.length) pos = 0;
   window.setTimeout("QuayVong()", 100);
}

function Mains() {
   document.write("<table><tr>");
   document.write("<TD ALIGN=CENTER>");
   document.write("<FORM name=VanTho>");
   document.write("<INPUT TYPE=text name=BanVan SIZE=50>");
   document.write("</FORM>");
   document.write("</TD>");
   document.write("</tr></table>");
   QuayVong();
}

   var RutSo = 1;  // Chon mot So Hen cho luc nay?
   var ngaytrangtron = "Trang se tron trong khoang ";
   var homenay  = new Date();
   var homnaymau = new Array ("navy",
"aqua",
"aquamarine",
"azure",
"beige",
"black",
"blanchedalmond",
"blue",
"blueviolet",
"brown",
"burlywood",
"chartreuse",
"chocolate",
"coral",
"crimson",
"cyan",
"darkblue",
"darkcyan",
"darkgoldenrod",
"darkgray",
"deepskyblue",
"sandybrown",
"seagreen",
"seashell",
"sienna",
"snow",
"tan",
"teal",
"thistle",
"turquoise",
"violet",
"wheat",
"whitesmoke",
"yellowgreen",
"palegreen",
"paleturquoise",
"palevioletred",
"pink",
"plum",
"powderblue",
"royalblue",
 
                              "steelblue", 
                              "bisque",
                              "green", 
                              "lightgreen", 
                              "red", 
                              "mediumspringgreen", 
                              "orange", 
                              "brown",
                              "slateblue", 
                              "tomato",
                              "papayawhip", 
                              "sandybrown", 
                              "slateblue", 
                              "springgreen",
                              "cornflowerblue",
                              "silver", 
                              "khaki", 
                              "lime", 
                              "cadetblue",
                              "maroon");
   ngaytrongtuan = homenay.getDay();
   homenay.setTime(homenay.getTime() + (homenay.getTimezoneOffset()*60000));
   var trangchuky  = 60000*(29*(12*120) + 764.05);
   var amlich = new Date(96, 1, 3, 16, 15, 0);
   var tuantrang = (homenay.getTime() - amlich.getTime()) % trangchuky;                        
   var tyle1 = (tuantrang / trangchuky);
   var tyle2 = Math.round(200*tyle1);
   var left  = (tyle1 >= 0.5) ? "Images/DEN.GIF" : "Images/TRANG.GIF" ;
   var right = (tyle1 >= 0.5) ? "Images/TRANG.GIF" : "Images/DEN.GIF" ;
   //var MuaRoi = new Array ("Images/FUN3.GIF","Images/HAWAII.GIF","Images/MEOLON.GIF","Images/NHAPNHO.GIF");

function OanTuTi() {

   RutSo = Math.round(Math.random()*(20-1)+1);
}


function BanNgay0() {
 
   // document.write(Math.round(Math.random()*(60-1)+1));

   document.bgColor = homnaymau[Math.round(Math.random()*(60-1)+1)];

   document.writeln("<center><p><br><img align=center src='Images/k18title2.gif'><br><h1>Welcome to Here<br>");
   document.writeln("Do Van Canh's Homepage</h1></p></center></body>");  
   document.writeln("<marquee>"+homenay.getDay()+"</marquee>");    
   // document.write("<center>");Mains();document.write("</center>");
}
function BanNgay()
{
document.write("<body bgcolor='#ffffff'><center>");
document.write("<TABLE WIDTH='100%' CELLPADDING=0 CELLSPACING=0 BORDER=0 BGCOLOR='#FFFFFF'> ");
document.write("<TR><TD VALIGN='TOP' ROWSPAN=2><BR><BR><BR><BR><BR> ");
document.write("<center><P>");
//document.write("<IMG SRC='Images/cobay.gif' ALT='' BORDER=0> ");
document.write("<br><br><br><br><br><br><br><br> ");
document.write("<center><IMG SRC='Images/vndiacau.gif' ALT='' BORDER=0>");
document.write("<IMG SRC='Images/k18title1.gif' ALT='' BORDER=0></center> ");
document.write("</TD><TD VALIGN='TOP'> ");
document.write("<IMG SRC='Images/k18title2.gif' ALT='' BORDER=0> ");   
document.write("</TD></TR></TABLE> ");
document.write("<BR><BR><P> ");
document.write("<TABLE WIDTH='840' CELLPADDING=8 CELLSPACING=0 BORDER=0 HEIGHT=20> ");
document.write("<TR><TD>");
TextOnly(1);
document.write("</TD></TR></TABLE> ");
document.write("<center><table cellpadding=0 cellspacing=0 border=0 width='100%'> ");
document.write("<tr><td align=center><font size=-1 face='Tahoma'> ");
myDate(1);
//document.write("<script language='JavaScript' SRC='dateclock.js'></script></font> ");
document.write("</td></tr></table></center><!hr size=8 color='#dedfde'>");    
DisplayLinks(1);
document.write("<center><P><font color='#993399'> ");
document.write("Send mail to <a href='mailto:hqvnx8@yahoo.com'><b>hqvnx8@yahoo.com</b></a> with questions or comments about this web site. <br> ");
document.write("Last modified: October 9, 2007 </font> ");
document.write("<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><P> ");
//document.write("<a href='' target='_top'><img border='0' src=''></a> ");
document.write("<font face='Tahoma' size='1'> ");
//document.write("<a href='' target='_top'></a></font><br> ");
document.write("</center>");
//</body> ");
}
function TrangLen() {

   var ngay;
   var gioihan = 25;
   document.write("<center>");
/*
   document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
   document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
   document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
   document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
   document.write("<img src='Images/saomai1nhaynhay.gif'>"); // document.write("<img src='Images/STAR.GIF'>");
*/
   if (tyle2 > 100)  tyle2 = tyle2 - 100;
   for (ngay = -(gioihan-1); ngay < gioihan; ++ngay) {
      var wid = 2*parseFloat(Math.sqrt((gioihan*gioihan)-(ngay*ngay)));
      if (tyle2 != 100)
         document.write ("<img src="+left +" height=1 width="+(wid*((100-tyle2)/100))+">");
      if (tyle2 != 0)
         document.write ("<img src="+right+" height=1 width="+(wid*((tyle2)/100))+">");
      document.write ("<br>");
   } 

   document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
   document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
   document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
   document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
   document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
   document.write("<img src='Images/saomai1nhaynhay.gif'>"); 
   //document.write("<img src='Images/STAR.GIF'>");

   document.write("</center>");
}

function bongo() {

   TrangLen();
   document.write("<img align=right src=Images/STAR.GIF>", "<br><br>");
   document.write("<img align=left src=Images/STAR.GIF>", "<br><br><br>");
   bannguyet = Math.round((trangchuky-tuantrang)/(24*3600*1000));
   ngaytrangtron = ngaytrangtron + bannguyet + " ngay toi.";
}

function PhaoBong() {
    document.write("<body background=\"Images/BAUTROI.GIF\">");
    document.write("<center><p><applet CODE=\"Firework.class\" WIDTH=\"600\" HEIGHT=\"200\">");
  //  document.write("<body background=\"bg1111.gif\">");
  //  document.write("<center><p><applet CODE=\"Firework.class\" WIDTH=\"600\" HEIGHT=\"200\">");
    document.write("<param NAME=\"AnimationSpeed\" VALUE=\"100\">");
    document.write("<param NAME=\"RocketSoundtrack\" VALUE=\"fire.au\">");
    document.write("<param NAME=\"RocketStyleVariability\" VALUE=\"10\">");
    document.write("<param NAME=\"MaxRocketNumber\" VALUE=\"7\">");
    document.write("<param NAME=\"MaxRocketExplosionEnergy\" VALUE=\"800\">");
    document.write("<param NAME=\"MaxRocketPatchNumber\" VALUE=\"90\">");
    document.write("<param NAME=\"MaxRocketPatchLength\" VALUE=\"50\">");
    document.write("<param NAME=\"Gravity\" VALUE=\"400\"></applet>");
    document.write("<br></p></center>");
    document.write("</body>");

}

function BanDem0() {

   document.write("<BODY background=Images/BAUTROI.GIF  bgproperties=fixed TEXT=#DB70DB LINK=#900000 ALINK=#FFFF00 VLINK=#000000>");
  // document.write("<BODY background=bg1111.gif  bgproperties=fixed TEXT=#DB70DB LINK=#900000 ALINK=#FFFF00 VLINK=#000000>");


   document.write("<frameset row=15%,*>");
   document.write("<frameset cols=35%,*,35%>");
   document.write("<frame name=one1 scrolling=no>");
   document.write("<frame name=two2 scrolling=no>");
   document.write("<frame name=three3 scrolling=no>");
   document.write("</frameset>");
   document.write("<frame name=four4 scrolling=auto>");
   document.write("</frameset>");
   document.write("<img target=one1 src=Images/SAOTROI.GIF>");
   bongo();
 // PhaoBong();
   document.write("<center>");
   //document.write("<img target=four4 src=Images/CANDLE.GIF>");
   document.write("</center>");
   document.write("<center>");
   //document.write("<p><h1>Welcome to<br>");
  // document.write("Do Van Canh's Home Page</h1></p><br>");
document.write("<table border=0 cellpadding=5 cellspacing=0 width=800> ");
document.write("<tr><td STYLE='filter:shadow(color=#446fff)'><center> ");
document.write("<font color=;#FFFFFF; size=6><b>Hải Quân Viet-Nam <BR> Khoá XVIII Sĩ Quan</b></font> ");
document.write("</center></td></tr></table><BR> ");
   document.write("<img  src=\"Images/EARTH.GIF\"><br><br><br>");
   document.write(ngaytrangtron);
   document.write("</center><br>");
   document.write("<center><img src=Images/STAR.GIF></center>");
   //document.write("<BR><center><img src=http://www.geocities.com/hqvn18/Images/k18title2.gif></center>");
  // document.write("<BR><center><img src=Images/k18title2.gif></center>");

   // document.write("<center>");Mains();document.write("</center>");
   document.write("</BODY>");
}
function BanDem()
{
    var Hanhtinh = new Array ("Images/saohoa.gif", "Images/nuatrang.jpg","Images/saohoa.gif",  "Images/Uranus.gif","Images/Diacau1.gif","Images/Venus.gif","Images/Mars.gif","Images/Orcus2.gif","Images/Diacau2.gif","Images/Eclipse.jpg","Images/Eclipse1.jpg","Images/Mars.gif","Images/nuatrang.jpg", "Images/planetearth.gif","Images/Dat2.jpg","Images/Dat3.jpg","Images/Umbriel.jpg", "Images/Rhea2.jpg","Images/rhea.jpg","Images/Saoloe1.gif","Images/Saos.gif");
    document.write("<BODY background=Images/BAUTROI.GIF  bgproperties=fixed TEXT=#DB70DB LINK=#900000 ALINK=#FFFF00 VLINK=#000000>");
    document.write("<img src=Images/Saoloe1.GIF>");
    bongo();
document.write("<TABLE WIDTH='100%' CELLPADDING=0 CELLSPACING=0 BORDER=0 background='Images/BAUTROI.GIF'> ");
document.write("<TR><TD VALIGN='TOP' ROWSPAN=2><BR><BR><BR><BR> ");
document.write("<!center><P>");
document.write("<center><img src=Images/SAOTROI.GIF><!/center>");
document.write("<!IMG SRC='Images/Saoloe1.gif' ALT='' BORDER=0></center>");
document.write("<br><br><br><br>");
document.write("<center><IMG SRC='Images/vndiacau.gif' ALT='' BORDER=0>");
//document.write("<IMG SRC='Images/EARTH.gif' ALT='' BORDER=0 align='top'>");
//document.write("<IMG SRC='Images/worldmap.gif' ALT='' BORDER=0>");
document.write("<IMG SRC='Images/k18title4.gif' ALT='' BORDER=0></center> ");
document.write("</TD><TD VALIGN='TOP'> "); 
var testshow = Math.round(Math.random()*18 );
//document.write(testshow);
document.write("<IMG SRC='"+Hanhtinh[testshow]+"' ALT='' BORDER=0> ");
//document.write("<IMG SRC='"+Hanhtinh[Math.round(Math.random()*11 )]+"' ALT='' BORDER=0> ");
document.write("</TD></TR></TABLE> ");
//document.write("<IMG SRC='Images/Saoloe1.gif' ALT='' BORDER=0>");
document.write("<BR><BR><BR><P> ");
document.write("<center><TABLE WIDTH='840' CELLPADDING=8 CELLSPACING=0 BORDER=0 HEIGHT=20> ");
document.write("<TR><TD>");
TextOnly(2);
document.write("</TD></TR></TABLE></center> ");
document.write("<table cellpadding=0 cellspacing=0 border=0 width='100%'> ");
document.write("<tr><td align=center><font size=-1 face='Tahoma'> ");
myDate(1);
document.write("</td></tr></table></center><!br><!hr size=5 color='#4c5c6c'> ");    
DisplayLinks(0); //<font color='#993399'>
document.write("<BR><BR><center><P><font color='#69efe9'> ");
document.write("Send mail to <a href='mailto:hqvnx8@yahoo.com'><b>hqvnx8@yahoo.com</b></a> with questions or comments about this web site. <br> ");
document.write("Last modified: October 9, 2007 </font> ");
document.write("<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><P> ");
document.write("<font face='Tahoma' size='1'> ");
}
function NgayDem()
{
    var today = new Date();
    var thisTime = today.getHours();
   
    if ( (thisTime > 6) && (thisTime < 18) )
    {
         BanNgay();
         //BanDem();
    }
    else 
    {
          BanDem();
          //BanNgay();
    }
}
//-->                                                                                              

