From: <Saved by Microsoft Internet Explorer 5>
Subject: JAVA SCRIPTS javascripts ASP asp.NET scripts Windows 2000 2003 NT ASP asp.NET Web Hosting FRONTPAGE Host CGI ACCESS PERL PHP MS Mysql WAP cheap XP Microsoft FTP domain dot net reseller Shoppingcart secure ssl database email site website
Date: Mon, 26 Jan 2009 10:45:45 -0500
MIME-Version: 1.0
Content-Type: multipart/related;
	type="text/html";
	boundary="----=_NextPart_000_003F_01C97FA3.3DD8B960"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180

This is a multi-part message in MIME format.

------=_NextPart_000_003F_01C97FA3.3DD8B960
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.generalhosting.com/scripts/javascripts.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!---=20

--------------------------------------------------------------

----------------
Include Top Navigation
--------------------------------------------------------------

----------------- ---><HTML><HEAD><TITLE>JAVA SCRIPTS javascripts ASP =
asp.NET scripts Windows 2000 2003 NT ASP asp.NET Web Hosting FRONTPAGE =
Host CGI ACCESS PERL PHP MS Mysql WAP cheap XP Microsoft FTP domain dot =
net reseller Shoppingcart secure ssl database email site website</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252"><!--$7.95 Windows NT 2000 2003 ASP .NET Web =
Hosting FRONTPAGE extensions Host asp.NET PERL CGI MS ACCESS Mysql WAP =
wireless cheap PHP XP Microsoft FTP domain dot net reseller Shoppingcart =
secure ssl database email site website Ebay Ecommerce SHOPPING CART UPS =
payments LinkPoint AuthorizeNet credit card submit free URL miva verio =
hostpro xo blackthorn --><!--$7.95 Microsoft Windows NT 2000 2003 ASP =
.NET Web Hosting FRONTPAGE extensions Host asp.NET PERL CGI MS ACCESS =
Mysql WAP cheap PHP XP Microsoft EMAIL FTP domain dot net reseller =
Shoppingcart secure ssl database email site website, FrontPage 2000 2002 =
XP, Stats, Email, wml, wireless, Ebay, Ecommerce, shopping cart, =
SHOPPING, CART, UPS, secure payments, LinkPoint, AuthorizeNet, credit =
card, merchant account, merchant, submit, verio, wireless, search =
engines, free URL, free, miva, hostpro, xo, interland, blackthorne, =
microsoft, windows, windows2000, windows 2000, windows 2003, windowsnt, =
windows nt -->
<META=20
content=3D"JAVA SCRIPTS javascripts ASP asp.NET scripts Windows 2000 =
2003 ASP asp.NET Web Hosting FRONTPAGE extensions Host asp.NET PERL CGI =
MS ACCESS Mysql WAP wireless cheap PHP XP Microsoft FTP domain dot net =
reseller Shoppingcart secure ssl database email site website Ebay =
Ecommerce SHOPPING CART UPS payments LinkPoint AuthorizeNet credit card =
submit free URL miva verio hostpro xo blackthorn"=20
name=3Ddescription>
<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR>
<META=20
content=3D"JAVA SCRIPTS javascripts ASP asp.NET scripts Windows 2000 =
2003 NT ASP asp.NET Web Hosting FRONTPAGE extensions Host asp.NET PERL =
CGI MS ACCESS Mysql WAP cheap PHP XP Microsoft EMAIL FTP domain dot net =
reseller Shoppingcart secure ssl database email site website, FrontPage =
2000 2002 XP, Stats, Email, wml, wireless, Ebay, Ecommerce, shopping =
cart, SHOPPING, CART, UPS, secure payments, LinkPoint, AuthorizeNet, =
credit card, merchant account, merchant, submit, verio, wireless, search =
engines, free URL, free, miva, hostpro, xo, interland, blackthorne, =
microsoft, windows, windows2000, windows 2000, windows 2003, windowsnt, =
windows nt"=20
name=3Dkeywords>
<META content=3DFrontPage.Editor.Document name=3DProgId>
<META content=3Dall name=3Drobots><LINK=20
href=3D"http://www.generalhosting.com/htm/fc_03_style.css" =
type=3Dtext/css=20
rel=3DSTYLESHEET></HEAD>
<BODY style=3D"BACKGROUND-COLOR: #ffffff" leftMargin=3D0 topMargin=3D0=20
marginheight=3D"0" marginwidth=3D"0">
<DIV align=3Dcenter>
<CENTER>
<TABLE style=3D"BORDER-COLLAPSE: collapse" cellSpacing=3D0 =
cellPadding=3D0=20
width=3D"100%" bgColor=3Dwhite border=3D0>
  <TBODY>
  <TR bgColor=3Dwhite>
    <TD vAlign=3Dtop height=3D55 rowSpan=3D3>
      <TABLE style=3D"BORDER-COLLAPSE: collapse" cellSpacing=3D0 =
cellPadding=3D0=20
      width=3D"100%" border=3D0>
        <TBODY>
        <TR>
          <TD width=3D"1%"><A=20
            href=3D"http://www.generalhosting.com/index.htm"><IMG =
height=3D49=20
            alt=3D"GENERAL HOSTING - Reliable Microsoft WINDOWS hosting, =
MULTIPLE DOMAIN names; $7.95/month; FRONTPAGE2000, 24hrs-FTP, Stats, =
ASP, PERL CGI, MS-ACCESS, Email, Subwebs, WAP, SECURE PAYMENTS, SSL, =
SHOPPING CART, Ecommerce CREDIT CARDS merchant accounts, RESELLER plans, =
authorize, linkpoint, cybercash, gateway; java, php, ssi, ipp, =
realaudio, realvideo, database, midi, Python, domain name registration, =
registrars, network solutions, chat, 2000, NT, Windows, General Hosting =
amazon, ebay, yahoo, aol, midi, sql, mysql mac "=20
            src=3D"http://www.generalhosting.com/pictgif/log.gif" =
width=3D49=20
            border=3D0></A></TD>
          <TD width=3D"1%"><STRONG><FONT face=3DArial color=3D#ffffff=20
            size=3D1>.</FONT></STRONG></TD>
          <TD width=3D"50%"><A=20
            href=3D"http://www.generalhosting.com/index.htm"><IMG =
height=3D21=20
            alt=3D"ASP asp.NET Web Hosting FRONTPAGE Host Windows 2003 =
CGI ACCESS PERL PHP MS Mysql WAP cheap XP Microsoft 2000 2002 nt FTP =
domain dot net reseller Shoppingcart secure ssl database email site =
website"=20
            src=3D"http://www.generalhosting.com/pictgif/genera.gif" =
width=3D250=20
            border=3D0></A> <I><FONT face=3DArial color=3D#d60021=20
            size=3D1><B>WinWeb</B></FONT><B><FONT =
size=3D2><BR></FONT></B></I><FONT=20
            face=3DArial color=3D#ffcc39 size=3D1><STRONG>Microsoft =
Windows Hosting,=20
            ASP, ASP.NET, Multiple Domain Name=20
        Plans</STRONG></FONT></TD></TR></TBODY></TABLE></TD>
    <TD height=3D3><IMG height=3D1=20
      src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D1 =
border=3D0></TD></TR>
  <TR>
    <TD vAlign=3Dtop align=3Dright><A class=3Dcaps=20
      =
href=3D"http://www.generalhosting.com/index.htm">home</A>&nbsp;&nbsp;&nbs=
p;|&nbsp;&nbsp;&nbsp;<A=20
      class=3Dcaps =
href=3D"http://www.generalhosting.com/htm/aboutus.htm">about=20
      us</A>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<A class=3Dcaps=20
      href=3D"http://www.generalhosting.com/htm/contact.htm">contact=20
      us</A>&nbsp;&nbsp;&nbsp;</TD></TR>
  <TR bgColor=3Dwhite>
    <TD class=3Dtiny vAlign=3Dtop align=3Dright>Hosting web sites since=20
      1997&nbsp;&nbsp;&nbsp;</TD></TR>
  <TR bgColor=3Dwhite>
    <TD bgColor=3Dwhite colSpan=3D2>
      <TABLE cellSpacing=3D2 cellPadding=3D0 width=3D"100%" =
bgColor=3Dwhite border=3D0>
        <TBODY>
        <TR bgColor=3Dwhite height=3D20 width=3D"800">
          <TD class=3Ddark_brown style=3D"BACKGROUND-COLOR: #d60021"=20
          width=3D45>&nbsp;</TD><!--- Begin Header If Conditons =
---><!---=20

--------------------------------------------------------------

----------------
Web Hosting On
--------------------------------------------------------------

----------------- --->
          <TD class=3Dnavon style=3D"BACKGROUND-COLOR: #000000" noWrap=20
            align=3Dmiddle><A =
href=3D"http://www.generalhosting.com/htm/common.htm">
            <H1>WEB HOSTING</H1></A></TD>
          <TD class=3Dnav noWrap align=3Dmiddle><A=20
            href=3D"http://www.generalhosting.com/htm/ecommerce.htm">
            <H1>ECOMMERCE</H1></A></TD>
          <TD class=3Dnav noWrap align=3Dmiddle><A=20
            href=3D"http://www.generalhosting.com/htm/freedomain.htm">
            <H1>DOMAIN NAMES</H1></A></TD>
          <TD class=3Dnav style=3D"BACKGROUND-COLOR: #fa6626" noWrap=20
            align=3Dmiddle><A=20
href=3D"http://www.generalhosting.com/htm/support.htm">
            <H1>SUPPORT</H1></A></TD>
          <TD class=3Dnav noWrap align=3Dmiddle><A=20
            =
href=3D"http://www.generalhosting.com/htm/referralpartner.htm">
            <H1>REFERRAL PARTNERS</H1></A></TD>
          <TD class=3Dnav noWrap align=3Dmiddle><A=20
            href=3D"http://www.generalhosting.com/htm/order.htm">
            <H1>ORDER</H1></A></TD>
          <TD class=3Dnav noWrap align=3Dmiddle><A=20
            href=3D"http://www.generalhosting.com/htm/support.htm">
            <H1>LOGIN</H1></A></TD><!---=20

--------------------------------------------------------------

----------------
Web Design On
--------------------------------------------------------------

----------------- ---><!--- End Header If Conditons --->
          <TD class=3Ddark_brown style=3D"BACKGROUND-COLOR: #d60021"=20
          width=3D45>&nbsp;</TD></TR>
        <TR bgColor=3Dwhite height=3D15 width=3D"800">
          <TD class=3Dlight_brown style=3D"BACKGROUND-COLOR: =
#ff9900"><IMG=20
            height=3D1 =
src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D1=20
            border=3D0></TD>
          <TD class=3Ddark_cream align=3Dright colSpan=3D7>
            <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" =
border=3D0>
              <TBODY>
              <TR>
                <TD class=3Dnav vAlign=3Dbottom align=3Dmiddle =
width=3D15><A=20
                  href=3D"http://www.generalhosting.com/index.htm"><IMG =
height=3D15=20
                  alt=3Dhome=20
                  =
src=3D"http://www.generalhosting.com/htm/icon_house.gif"=20
                  width=3D15 border=3D0></A></TD>
                <TD bgColor=3Dwhite><IMG height=3D1=20
                  src=3D"http://www.generalhosting.com/htm/spacer.gif" =
width=3D2=20
                  border=3D0></TD>
                <TD class=3Dnav noWrap align=3Dmiddle width=3D15><A=20
                  =
href=3D"http://www.generalhosting.com/htm/contact.htm"><IMG=20
                  height=3D15 alt=3D"call us"=20
                  =
src=3D"http://www.generalhosting.com/htm/icon_phone.gif"=20
                  width=3D15 border=3D0></A></TD>
                <TD bgColor=3Dwhite><IMG height=3D1=20
                  src=3D"http://www.generalhosting.com/htm/spacer.gif" =
width=3D2=20
                  border=3D0></TD>
                <TD class=3Dnav noWrap align=3Dmiddle width=3D15><A=20
                  =
href=3D"http://www.generalhosting.com/htm/contact.htm"><IMG=20
                  height=3D15 alt=3D"email us"=20
                  =
src=3D"http://www.generalhosting.com/htm/icon_email.gif"=20
                  width=3D15 border=3D0></A></TD>
                <TD bgColor=3Dwhite><IMG height=3D1=20
                  src=3D"http://www.generalhosting.com/htm/spacer.gif" =
width=3D2=20
                  border=3D0></TD>
                <TD class=3Dnav noWrap align=3Dmiddle width=3D15><A=20
                  =
href=3D"http://www.generalhosting.com/htm/support.htm"><IMG=20
                  height=3D15 alt=3D"customer support"=20
                  =
src=3D"http://www.generalhosting.com/htm/icon_question.gif"=20
                  width=3D15 border=3D0></A></TD>
                <TD bgColor=3Dwhite><IMG height=3D1=20
                  src=3D"http://www.generalhosting.com/htm/spacer.gif" =
width=3D2=20
                  border=3D0></TD>
                <TD class=3Ddark_cream style=3D"BACKGROUND-COLOR: =
#fffdd4"=20
                align=3Dright width=3D"100%"><SPAN class=3Dtiny>For =
Phone Support=20
                  Call: <STRONG=20
                  style=3D"COLOR: =
#993300">1.212.753.1520</STRONG>&nbsp;&nbsp;</SPAN></TD></TR></TBODY></TA=
BLE></TD>
          <TD class=3Dlight_brown style=3D"BACKGROUND-COLOR: =
#ff9900"><IMG=20
            height=3D1 =
src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D1=20
            border=3D0></TD></TR></TBODY></TABLE></TD></TR><!---End Top =
Nav ---><!---End Top Nav --->
  <TR>
    <TD colSpan=3D2><IMG height=3D4 alt=3D""=20
      src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D1 =
border=3D0></TD></TR>
  <TR>
    <TD background=3Dhttp://www.generalhosting.com/htm/dotline.gif=20
      colSpan=3D2><IMG height=3D1 alt=3D""=20
      src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D1 =
border=3D0></TD></TR>
  <TR>
    <TD colSpan=3D2><IMG height=3D4 alt=3D""=20
      src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D1 =
border=3D0></TD></TR>
  <TR bgColor=3Dwhite>
    <TD vAlign=3Dtop bgColor=3D#ffffff colSpan=3D2>
      <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" =
bgColor=3Dwhite border=3D0>
        <TBODY>
        <TR>
          <TD class=3Dtan style=3D"BACKGROUND-COLOR: #ffcc39" =
width=3D10><IMG=20
            height=3D1 alt=3D"" =
src=3D"http://www.generalhosting.com/htm/spacer.gif"=20
            width=3D3 border=3D0></TD>
          <TD width=3D5><IMG height=3D1 alt=3D""=20
            src=3D"http://www.generalhosting.com/htm/spacer.gif" =
width=3D3=20
          border=3D0></TD>
          <TD width=3D2=20
            =
background=3Dhttp://www.generalhosting.com/htm/dotline.gif><IMG=20
            height=3D1 alt=3D"" =
src=3D"http://www.generalhosting.com/htm/spacer.gif"=20
            width=3D2 border=3D0></TD>
          <TD width=3D5><IMG height=3D1 alt=3D""=20
            src=3D"http://www.generalhosting.com/htm/spacer.gif" =
width=3D5=20
          border=3D0></TD>
          <TD class=3Dlight_cream style=3D"BACKGROUND-COLOR: #fffdd4" =
vAlign=3Dtop=20
          width=3D180><!--- =
-------------------------------------------------------------------------=
-----
Start of Left Nav Portion
-------------------------------------------------------------------------=
------ ---><!--- Begin  sales center box---><!--- Begin  Hosting subnav =
bar ---><!--- End  Hosting subnav bar ---><!--- =
-------------------------------------------------------------------------=
-----
End of Left Nav Portion
-------------------------------------------------------------------------=
------ --->
            <TABLE style=3D"BORDER-COLLAPSE: collapse" =
borderColor=3D#111111=20
            cellSpacing=3D3 cellPadding=3D0 width=3D"100%" =
bgColor=3Dwhite border=3D0>
              <TBODY>
              <TR>
                <TD class=3Dheader style=3D"BACKGROUND-COLOR: #fa6626" =
width=3D180=20
                height=3D18>TOOLS</TD></TR>
              <TR>
                <TD class=3Dgallerynav style=3D"BACKGROUND-COLOR: =
#fffdd4"=20
                  height=3D18><A=20
                  =
href=3D"http://www.generalhosting.com/scripts/asp.htm">ASP=20
                  Scripts</A></TD></TR>
              <TR>
                <TD class=3Dgallerynav style=3D"BACKGROUND-COLOR: =
#fffdd4" noWrap=20
                height=3D18><A=20
                  =
href=3D"http://www.generalhosting.com/scripts/aspnet.htm">asp.NET=20
                  Scripts</A></TD></TR>
              <TR>
                <TD class=3Dgallerynav style=3D"BACKGROUND-COLOR: =
#fffdd4"=20
                  height=3D18><A=20
                  =
href=3D"http://www.generalhosting.com/scripts/html.htm">HTML=20
                  Scripts</A></TD></TR>
              <TR>
                <TD class=3Dgallerynav style=3D"BACKGROUND-COLOR: =
#fffdd4"=20
                  height=3D18><A=20
                  =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm">JAVA=20
                  Scripts</A></TD></TR>
              <TR>
                <TD class=3Dgallerynav style=3D"BACKGROUND-COLOR: =
#fffdd4"=20
                  height=3D18><A=20
                  =
href=3D"http://www.generalhosting.com/scripts/perl-scripts.htm">PERL=20
                  Scripts</A></TD></TR>
              <TR>
                <TD class=3Dgallerynav style=3D"BACKGROUND-COLOR: =
#fffdd4"=20
                  height=3D18><A=20
                  =
href=3D"http://www.generalhosting.com/scripts/php-scripts.htm">PHP=20
                  Scripts</A></TD></TR>
              <TR>
                <TD class=3Dgallerynav style=3D"BACKGROUND-COLOR: =
#fffdd4"=20
                  height=3D18><A=20
                  =
href=3D"http://www.generalhosting.com/scripts/wap-wml-scripts.htm">WML=20
                  Scripts</A></TD></TR></TBODY></TABLE>
            <P>&nbsp;<!--- End  Hosting subnav bar ---><!--- Begin  =
Hosting subnav bar ---></P></TD>
          <TD width=3D5><IMG height=3D1 alt=3D""=20
            src=3D"http://www.generalhosting.com/htm/spacer.gif" =
width=3D5=20
          border=3D0></TD>
          <TD width=3D2=20
            =
background=3Dhttp://www.generalhosting.com/htm/dotline.gif><IMG=20
            height=3D1 alt=3D"" =
src=3D"http://www.generalhosting.com/htm/spacer.gif"=20
            width=3D2 border=3D0></TD>
          <TD width=3D5><IMG height=3D1 alt=3D""=20
            src=3D"http://www.generalhosting.com/htm/spacer.gif" =
width=3D3=20
          border=3D0></TD>
          <TD vAlign=3Dtop><!--- =
-------------------------------------------------------------------------=
-----
Start of MainBody Section
-------------------------------------------------------------------------=
------ ---><!--- =
-------------------------------------------------------------------------=
-----
End of MainBody Section
-------------------------------------------------------------------------=
------ --->
            <TABLE style=3D"BORDER-COLLAPSE: collapse" =
borderColor=3D#111111=20
            cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0>
              <TBODY>
              <TR>
                <TD vAlign=3Dtop width=3D"77%"><FONT face=3D"Myriad =
Condensed Web"=20
                  color=3D#fa6626 size=3D5><A name=3DTOP></A>Support =
Tools=20
                  </FONT><FONT face=3D"Myriad Condensed Web" =
color=3D#000000=20
                  size=3D5>JAVA Scripts</FONT></TD>
                <TD align=3Dright width=3D"23%">&nbsp;</TD></TR>
              <TR>
                <TD vAlign=3Dtop width=3D"77%"><FONT face=3D"Myriad =
Condensed Web"=20
                  color=3D#ffffff size=3D1>.</FONT></TD>
                <TD align=3Dright =
width=3D"23%">&nbsp;</TD></TR></TBODY></TABLE>
            <TABLE cellSpacing=3D3 cellPadding=3D0 width=3D"100%" =
align=3Dcenter=20
            border=3D0>
              <TBODY>
              <TR>
                <TD class=3Dtan style=3D"BACKGROUND-COLOR: #ffcc39" =
align=3Dmiddle=20
                width=3D"50%" height=3D30>
                  <DIV align=3Dcenter>
                  <CENTER>
                  <TABLE style=3D"BORDER-COLLAPSE: collapse" =
borderColor=3D#111111=20
                  cellSpacing=3D0 cellPadding=3D0 width=3D"98%" =
border=3D0>
                    <TBODY>
                    <TR>
                      <TD width=3D"100%"><SPAN=20
                        style=3D"FONT-SIZE: 9pt"><BR></SPAN><FONT=20
                        style=3D"FONT-SIZE: 9pt"><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#BannerRotat=
ion"><FONT=20
                        color=3D#993300>Banner Rotation</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Bgcolorchan=
ge"><FONT=20
                        color=3D#993300>Bgcolor change</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Bgimagechan=
ge"><FONT=20
                        color=3D#993300>Bgimage change</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Blockkeys">=
<FONT=20
                        color=3D#993300>Block keys</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Breakframes=
"><FONT=20
                        color=3D#993300>Break frames</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Browserdete=
ct"><FONT=20
                        color=3D#993300>Browser detect</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Browsehardd=
isk"><FONT=20
                        color=3D#993300>Browse hard disk</FONT></A><FONT =

                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Capitalizel=
etter"><FONT=20
                        color=3D#993300>Capitalize =
letter</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Celfar"><FO=
NT=20
                        color=3D#993300>Celfar</FONT></A><FONT =
color=3D#993300> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Centerpopup=
"><FONT=20
                        color=3D#993300>Center popup</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Changeimage=
"><FONT=20
                        color=3D#993300>Change image</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Chardetect"=
><FONT=20
                        color=3D#993300>Char detect</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Closedelay"=
><FONT=20
                        color=3D#993300>Close delay</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Closeonclic=
k"><FONT=20
                        color=3D#993300>Close on click</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Closewindow=
"><FONT=20
                        color=3D#993300>Close window</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Confirm"><F=
ONT=20
                        color=3D#993300>Confirm</FONT></A><FONT =
color=3D#993300> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Crazywindow=
"><FONT=20
                        color=3D#993300>Crazy window</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Datecount">=
<FONT=20
                        color=3D#993300>Date count</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Dateformat"=
><FONT=20
                        color=3D#993300>Date format</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Dateparts">=
<FONT=20
                        color=3D#993300>Date parts</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Datestatusb=
ar"><FONT=20
                        color=3D#993300>Date status bar</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Daysleft"><=
FONT=20
                        color=3D#993300>Days left</FONT></A><FONT =
color=3D#993300> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Dayquote"><=
FONT=20
                        color=3D#993300>Day quote</FONT></A><FONT =
color=3D#993300> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Dayredirect=
"><FONT=20
                        color=3D#993300>Day redirect</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Decimalhexa=
"><FONT=20
                        color=3D#993300>Decimalhexa</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Disablefiel=
d"><FONT=20
                        color=3D#993300>Disable field</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Disabletext=
box"><FONT=20
                        color=3D#993300>Disable textbox</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#DisplayLink=
tooltip"><FONT=20
                        color=3D#993300>Display Link tool =
tip</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Dynamiclist=
box"><FONT=20
                        color=3D#993300>Dynamic listbox</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Effectbgfad=
e"><FONT=20
                        color=3D#993300>Effectbgfade</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Emaillinkhr=
ef"><FONT=20
                        color=3D#993300>Email link href</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Encodehexa"=
><FONT=20
                        color=3D#993300>Encode hexa</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Exitwindow"=
><FONT=20
                        color=3D#993300>Exit window</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Expirenew">=
<FONT=20
                        color=3D#993300>Expire new</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Externaljav=
ascript"><FONT=20
                        color=3D#993300>External =
Javascript</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Externaljs"=
><FONT=20
                        color=3D#993300>External js</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#FormatCurre=
ncy"><FONT=20
                        color=3D#993300>Format Currency</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Formcheckag=
e"><FONT=20
                        color=3D#993300>Form check age</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Formdropdow=
n"><FONT=20
                        color=3D#993300>Form dropdown</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Formvalidat=
ion"><FONT=20
                        color=3D#993300>Form validation</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#FormValidat=
or"><FONT=20
                        color=3D#993300>Form Validator</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Framesonly"=
><FONT=20
                        color=3D#993300>Frames only</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Fullscreen"=
><FONT=20
                        color=3D#993300>Full screen</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Gonowhere">=
<FONT=20
                        color=3D#993300>Go nowhere</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Historysnif=
fer"><FONT=20
                        color=3D#993300>History sniffer</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#HowtoBookma=
rkpage"><FONT=20
                        color=3D#993300>How to Bookmark =
page</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Howtoredire=
ct"><FONT=20
                        color=3D#993300>How to redirect</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Imagechange=
"><FONT=20
                        color=3D#993300>Image change</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Imagemap"><=
FONT=20
                        color=3D#993300>Imagemap</FONT></A><FONT =
color=3D#993300> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Imagemouseo=
ver"><FONT=20
                        color=3D#993300>Image mouse over</FONT></A><FONT =

                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Imagepreloa=
d"><FONT=20
                        color=3D#993300>Image preload</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Isdate"><FO=
NT=20
                        color=3D#993300>Is date</FONT></A><FONT =
color=3D#993300> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Javascripth=
istory"><FONT=20
                        color=3D#993300>Javascript =
history</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Jjuliandate=
"><FONT=20
                        color=3D#993300>Jjulian date</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Jsanimation=
"><FONT=20
                        color=3D#993300>Js animation</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Lastmodifie=
d"><FONT=20
                        color=3D#993300>Last modified</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Limittextar=
ea"><FONT=20
                        color=3D#993300>Limit text area</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Linkjavascr=
ipt"><FONT=20
                        color=3D#993300>Link javascript</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Lowercase">=
<FONT=20
                        color=3D#993300>Lower case</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Monthdayred=
irect"><FONT=20
                        color=3D#993300>Monthday =
redirect</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Mouseoverim=
age"><FONT=20
                        color=3D#993300>Mouse over image</FONT></A><FONT =

                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Mouseover">=
<FONT=20
                        color=3D#993300>Mouse over</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Moveitemsbe=
tweenselectbox"><FONT=20
                        color=3D#993300>Move items between select=20
                        box</FONT></A><FONT color=3D#993300> / </FONT><A =

                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Moveselectl=
ist"><FONT=20
                        color=3D#993300>Move select list</FONT></A><FONT =

                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#MoveWindow"=
><FONT=20
                        color=3D#993300>Move Window</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Multilineme=
ssage"><FONT=20
                        color=3D#993300>Multiline =
message</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Openclosech=
ild"><FONT=20
                        color=3D#993300>Open close child</FONT></A><FONT =

                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Openwindow"=
><FONT=20
                        color=3D#993300>Open window</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Pagefooter"=
><FONT=20
                        color=3D#993300>Page footer</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Pagetimeout=
"><FONT=20
                        color=3D#993300>Page timeout</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Passwordche=
ck"><FONT=20
                        color=3D#993300>Password check</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Poponload">=
<FONT=20
                        color=3D#993300>Pop on load</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#PressKeylau=
ncher"><FONT=20
                        color=3D#993300>Press Key =
launcher</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Printpage">=
<FONT=20
                        color=3D#993300>Print page</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Promptonloa=
d"><FONT=20
                        color=3D#993300>Prompt on load</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Protectimag=
e"><FONT=20
                        color=3D#993300>Protect image</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Radiobutton=
"><FONT=20
                        color=3D#993300>Radio button</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Randomnumbe=
r"><FONT=20
                        color=3D#993300>Random number</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Randomquote=
"><FONT=20
                        color=3D#993300>Random quote</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Redirectbro=
wsertype"><FONT=20
                        color=3D#993300>Redirect browser =
type</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Refreshbuto=
n"><FONT=20
                        color=3D#993300>Refresh button</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Refreshpage=
"><FONT=20
                        color=3D#993300>Refresh page</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Rgbhex"><FO=
NT=20
                        color=3D#993300>Rgbhex</FONT></A><FONT =
color=3D#993300> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Rotatetimeo=
ut"><FONT=20
                        color=3D#993300>Rotate timeout</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Slideshow">=
<FONT=20
                        color=3D#993300>Slideshow</FONT></A><FONT =
color=3D#993300> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Specialchar=
s"><FONT=20
                        color=3D#993300>Special chars</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#SpellCheck"=
><FONT=20
                        color=3D#993300>Spell Check</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Statusbarcl=
ick"><FONT=20
                        color=3D#993300>Status bar click</FONT></A><FONT =

                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Statusbarfo=
cus"><FONT=20
                        color=3D#993300>Status bar focus</FONT></A><FONT =

                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Statusbarmo=
useover"><FONT=20
                        color=3D#993300>Status bar mouse =
over</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Statusbarsc=
roll"><FONT=20
                        color=3D#993300>Status bar =
scroll</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Stringascii=
char"><FONT=20
                        color=3D#993300>String ascii =
char</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#StringInStr=
"><FONT=20
                        color=3D#993300>String InStr</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Stringinteg=
er"><FONT=20
                        color=3D#993300>String integer</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Stringrever=
se"><FONT=20
                        color=3D#993300>String reverse</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Stripspaces=
"><FONT=20
                        color=3D#993300>Strip spaces</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Stripzeros"=
><FONT=20
                        color=3D#993300>Strip zeros</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Textboxonch=
ange"><FONT=20
                        color=3D#993300>Textbox on =
change</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Timebasedme=
ssage"><FONT=20
                        color=3D#993300>Time based =
message</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Timeralert"=
><FONT=20
                        color=3D#993300>Timer alert</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Timebased">=
<FONT=20
                        color=3D#993300>Time based</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Timecount">=
<FONT=20
                        color=3D#993300>Time count</FONT></A><FONT =
color=3D#993300>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Timestatusb=
ar"><FONT=20
                        color=3D#993300>Time status bar</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Uppercase">=
<FONT=20
                        color=3D#993300>Uppercase</FONT></A><FONT =
color=3D#993300> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Userhistory=
"><FONT=20
                        color=3D#993300>User history</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Userlanguag=
e"><FONT=20
                        color=3D#993300>User language</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Useros"><FO=
NT=20
                        color=3D#993300>User os</FONT></A><FONT =
color=3D#993300> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Userpropert=
ies"><FONT=20
                        color=3D#993300>User properties</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#ValidateIPa=
ddress"><FONT=20
                        color=3D#993300>Validate IP =
address</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Validatelen=
gth"><FONT=20
                        color=3D#993300>Validate length</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Validateonl=
ynumbers"><FONT=20
                        color=3D#993300>Validate only =
numbers</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Validaterem=
oveleftspaces"><FONT=20
                        color=3D#993300>Validate remove left=20
                        spaces</FONT></A><FONT color=3D#993300> / =
</FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Validaterem=
overightspaces"><FONT=20
                        color=3D#993300>Validate remove right=20
                        spaces</FONT></A><FONT color=3D#993300> / =
</FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Weekdayimag=
e"><FONT=20
                        color=3D#993300>Weekday image</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Weekdayredi=
rect"><FONT=20
                        color=3D#993300>Weekday redirect</FONT></A><FONT =

                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#WindowsAler=
tConfirmPrompt"><FONT=20
                        color=3D#993300>Windows Alert Confirm=20
                        Prompt</FONT></A><FONT color=3D#993300> / =
</FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#WindowsBann=
er"><FONT=20
                        color=3D#993300>Windows Banner</FONT></A><FONT=20
                        color=3D#993300> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#Windowpop">=
<FONT=20
                        color=3D#993300>Window =
pop</FONT></A></FONT><SPAN=20
                        style=3D"FONT-SIZE: =
9pt"><BR>&nbsp;</SPAN></TD></TR></TBODY></TABLE></CENTER></DIV></TD></TR>=

              <TR align=3Dmiddle>
                <TD class=3Dlight_cream style=3D"BACKGROUND-COLOR: =
#fffdd4"=20
                vAlign=3Dtop width=3D"50%">
                  <TABLE style=3D"BORDER-COLLAPSE: collapse" =
borderColor=3D#111111=20
                  cellSpacing=3D0 cellPadding=3D0 width=3D"97%" =
border=3D0>
                    <TBODY>
                    <TR>
                      <TD width=3D"100%"><FONT style=3D"FONT-SIZE: 9pt"=20
                        color=3D#fffdd4>.</FONT></TD></TR>
                    <TR>
                      <TD width=3D"100%">
                        <DIV align=3Dcenter>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"> <BR></SPAN><SPAN =

                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DBannerRotation>BannerRotation</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DBannerRotation rows=3D4 cols=3D46>Banner rotation



=3DSOURCE+

&lt;IMG src=3D"1.gif" WIDTH=3D400 HEIGHT=3D75 NAME=3D"adBanner" =
BORDER=3D0&gt;

&lt;SCRIPT LANGUAGE=3DJAVASCRIPT &gt;
	var a=3Dnew Image();
	var b=3Dnew Image();
	var c=3Dnew Image();
	a.src =3D "1.gif" ;
	b.src =3D "2.gif" ;
	c.src =3D "3.gif" ;
	adImages =3D new Array (a, b, c);
	i=3D0;

	function rotate(){
		i++;
		if (i =3D=3D 3) {
			i =3D 0 ;
		}
	document.images.adBanner.src=3DadImages[i].src;
	setTimeout ("rotate()", 3000) ;
	}

	setTimeout ("rotate()", 3000) ;

&lt;/SCRIPT&gt;




&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;Image Array&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY &gt;
&lt;CENTER&gt;
&lt;IMG src=3D"1.gif" WIDTH=3D400 HEIGHT=3D75 NAME=3D"adBanner" =
BORDER=3D0&gt;
&lt;/CENTER&gt;
&lt;SCRIPT LANGUAGE=3DJAVASCRIPT &gt;
var a=3Dnew Image();
var b=3Dnew Image();
var c=3Dnew Image();
a.src =3D "1.gif" ;
b.src =3D "2.gif" ;
c.src =3D "3.gif" ;
adImages =3D new Array (a, b, c);
i=3D0;
function rotate(){
i++;
if (i =3D=3D 3) {
i =3D 0 ;
}
document.images.adBanner.src=3DadImages[i].src;
setTimeout ("rotate()", 3000) ;
}
setTimeout ("rotate()", 3000) ;
&lt;/SCRIPT&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DBgcolorchange>Bgcolorchange</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DBgcolorchange rows=3D4 cols=3D46>=20
How to change the background color of a Page

Paste the following code in the header section of your HTML page


&lt;HTML&gt;
&lt;HEAD&gt;
&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;

function change_bgcolor(icolor) {
		document.bgColor=3D icolor;
}
&lt;/SCRIPT&gt;
&lt;/HEAD&gt;



Write the following anywhere in your HTML page.
Change the color Codes to suit your needs


&lt;A =
HREF=3D"javascript:change_bgcolor('white')"&gt;White&lt;/A&gt;&lt;BR&gt;
&lt;A =
HREF=3D"javascript:change_bgcolor('red')"&gt;Red&lt;/A&gt;&lt;BR&gt;
&lt;A =
HREF=3D"javascript:change_bgcolor('green')"&gt;Green&lt;/A&gt;&lt;BR&gt;
&lt;A =
HREF=3D"javascript:change_bgcolor('yellow')"&gt;Yellow&lt;/A&gt;&lt;BR&gt=
;
&lt;A =
HREF=3D"javascript:change_bgcolor('black')"&gt;Black&lt;/A&gt;&lt;BR&gt;
&lt;A =
HREF=3D"javascript:change_bgcolor('brown')"&gt;Brown&lt;/A&gt;&lt;BR&gt;


You could also use a form element to get the same.


&lt;form name=3D"myform"&gt;
&lt;input type=3Dradio name=3Dbgchoice checked =
onClick=3D"document.bgColor=3D'white'"&gt;White&lt;br&gt;
&lt;input type=3Dradio name=3Dbgchoice =
onClick=3D"document.bgColor=3D'red'"&gt;Red&lt;br&gt;
&lt;input type=3Dradio name=3Dbgchoice =
onClick=3D"document.bgColor=3D'blue'"&gt;Blue&lt;br&gt;&lt;br&gt;
&lt;/form&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DBgimagechange>Bgimagechange</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DBgimagechange rows=3D4 cols=3D46>=20
How to change the background Image



&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
function change_bgimage() {
	if (document.body.background =3D=3D "some.gif") {
		document.body.background=3D"other.gif";
	} else {
		document.body.background=3D"some.gif";
	}
}
&lt;/SCRIPT&gt;



HTML code



&lt;BODY BACKGROUND=3D"some.gif"&gt;
&lt;A HREF=3D"javascript:change_bgimage()"&gt;Swap the Background =
Image&lt;/A&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DBlockkeys>Blockkeys</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DBlockkeys rows=3D4 cols=3D46>=20
Block some specific keys from entry
=20

This basically make use of the onKeypress event and compare it with =
their ASCII decimal codes
Works only in Internet Explorer


&lt;form onSubmit=3D"return false;"&gt;
This field will not accept special characters: (like #   @ ! # * $ % ^ =
&amp;   ....   etc)
&lt;TEXTAREA rows=3D"2" cols=3D"20" name=3D"msg" onKeypress=3D"if =
((event.keyCode &gt; 32 &amp;&amp; event.keyCode &lt; 48) || =
(event.keyCode &gt; 57 &amp;&amp; event.keyCode &lt; 65) || =
(event.keyCode &gt; 90 &amp;&amp; event.keyCode &lt; 97)) =
event.returnValue =3D false;"&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DBreakframes>Breakframes</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DBreakframes rows=3D4 cols=3D46>=20
Break out of Frames

First detect if the frame exists
Load the deisired page on the 'window.top'



&lt;script language=3D"JavaScript"&gt;
function breakFrames()
{
if(parent.frames.length!=3D0)
window.top.location.href=3D"content.htm";
else
alert("\nThere are currently no frames in this document.");
}
&lt;/script&gt;

&lt;FORM&gt;
&lt;INPUT TYPE=3D'button' VALUE=3D'Break Out Of Frames' =
onClick=3D'breakFrames()'&gt;
&lt;/FORM&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DBrowserdetect>Browserdetect</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DBrowserdetect rows=3D4 cols=3D46>How to determine the browser =
version

The following code will determine your browser type and version and =
print it on the HTML page.
There are many more things that you could possibly do once you know the =
browser type, like you could forward the user to a particular page =
depending on the browser type.



&lt;HTML&gt;
&lt;HEAD&gt;
&lt;SCRIPT Language=3D"JavaScript"&gt;
var uagent =3D navigator.userAgent;
var appver =3D navigator.appVersion.substring(0,1);

if (uagent.indexOf("MSIE") !=3D -1) {
document.write("Your Browser is Microsoft Internet Explorer&lt;BR&gt;");
} else {
if (uagent.indexOf("Mozilla") !=3D -1) {
document.write("Your Browser is Netscape Navigator&lt;BR&gt;");
} else {
document.write("Your Browser is of   Unknown Type&lt;BR&gt;");
}
}

document.write("Your Browser Version is " + appver + "&lt;BR&gt;");
&lt;/SCRIPT&gt;
&lt;/HEAD&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DBrowseharddisk>Browseharddisk</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DBrowseharddisk rows=3D4 cols=3D46>=20
Browse the local hard drives.
=20
Place the following script in your html page


&lt;CENTER&gt;
&lt;FORM action=3D"file:///c|/"&gt;&lt;input type=3D"submit" =
value=3D"Browse c:\ drive"&gt;&lt;/FORM&gt;
&lt;BR&gt;
&lt;FORM action=3D"file:///a|/"&gt;&lt;input type=3D"submit" =
value=3D"Browse a:\ drive"&gt;&lt;/FORM&gt;
&lt;BR&gt;
&lt;FORM action=3D"file:///b|/"&gt;&lt;input type=3D"submit" =
value=3D"Browse b:\ drive"&gt;&lt;/FORM&gt;
&lt;BR&gt;
&lt;FORM action=3D"file:///d|/"&gt;&lt;input type=3D"submit" =
value=3D"Browse d:\ drive"&gt;&lt;/FORM&gt;
&lt;/CENTER&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DCapitalizeletter>Capitalizeletter</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DCapitalizeletter rows=3D4 cols=3D46>=20
How to capitalize the first letter of the word
=20

First define a small function to detect the first letter of the word and =
convert the same to Upper case
Then call that function from an Form Element


&lt;script language=3D"JavaScript1.2"&gt;&lt;!--
function toUpper() {
var pattern =3D /(\w)(\w*)/; // a letter, and then one, none or more =
letters

var a =3D document.form1.text1.value.split(/\s+/g); // split the =
sentence into an array of words

for (i =3D 0 ; i &lt; a.length ; i ++ ) {
var parts =3D a[i].match(pattern); // just a temp variable to store the =
fragments in.

var firstLetter =3D parts[1].toUpperCase();
var restOfWord =3D parts[2].toLowerCase();

a[i] =3D firstLetter + restOfWord; // re-assign it back to the array and =
move on
}

document.form1.text1.value =3D a.join(' '); // join it back together
}
//--&gt;&lt;/script&gt;
&lt;/head&gt;



HTML Code for form elements


&lt;body&gt;
&lt;form name=3D"form1"&gt;
&lt;input type=3D"text" name=3D"text1"&gt;
&lt;input type=3D"button" onClick=3D"toUpper()" value=3D"To Upper =
Case"&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DCelfar>Celfar</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DCelfar rows=3D4 cols=3D46>=20
Convert Celcius to Fahrenheit
=20

This is a bit more that cool as this uses the onkeyup function
It makes the conversion more dynamic than you could think !!



&lt;FORM&gt;
&lt;INPUT TYPE=3D"text" NAME=3D"F" VALUE=3D"" SIZE=3D"6" MAXLENGTH=3D"6" =
onkeyup=3D"eval('C.value =3D ' + this.form.C_expr.value)"&gt; =B0 F
=3D
&lt;INPUT TYPE=3D"hidden" NAME=3D"F_expr" =
VALUE=3D"(Math.round(((212-32)/100 * C.value + 32)*100))/100 "&gt;
&lt;INPUT TYPE=3D"text" NAME=3D"C" VALUE=3D"" SIZE=3D"6" MAXLENGTH=3D"6" =
onkeyup=3D"eval('F.value =3D ' + this.form.F_expr.value)"&gt; =B0 C
&lt;INPUT TYPE=3D"hidden" NAME=3D"C_expr" =
VALUE=3D"(Math.round((100/(212-32) * (F.value - 32))*100))/100 "&gt;
&lt;/FORM&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DCenterpopup>Centerpopup</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DCenterpopup rows=3D4 cols=3D46>=20
Open a new window aligned at the center
=20
First write a small script to open a new window with a desired =
preference


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
// A small function to open a page called test.htm
function popwin()
{
window.open('test.htm', 'popupnav', =
'width=3D200,height=3D170,resizable=3D1,scrollbars=3Dauto');
}

// A small function to call the popwin function after some delay
function centerPop() {
delay =3D 2;
timer =3D setTimeout(" popwin()", delay*1000);
}
//   End --&gt;
&lt;/script&gt;



Now in the BODY tag add call the centerPop Function

&lt;BODY OnLoad=3D"centerPop();"&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DChangeimage>Changeimage</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DChangeimage rows=3D4 cols=3D46>=20
Change Image on Select

Get the value of image in dorp down box and call the image.src property


&lt;SCRIPT LANGUAGE=3D"JavaScript1.1"&gt;

function change_image(form) {
	var imgName =3D =
form.imgranges.options[form.imgranges.selectedIndex].value
	document.myimage.src =3D imgName

}
&lt;/SCRIPT&gt;



HTML Code to display the image and the dorp down box to select image


&lt;IMG SRC=3D"img1.gif" NAME=3D"myimage" HEIGHT=3D90 WIDTH=3D120&gt;

&lt;FORM NAME=3D"myform"&gt;
&lt;SELECT NAME=3D"imgranges" onChange=3D"change_image(this.form)"&gt;
&lt;OPTION VALUE=3D"img1.gif"&gt;Image 1
&lt;OPTION VALUE=3D"img2.gif"&gt;Image 2
&lt;OPTION VALUE=3D"img3.gif"&gt;Image 3
&lt;OPTION VALUE=3D"img4.gif"&gt;Image 4
&lt;/SELECT&gt;
&lt;/FORM&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DChardetect>Chardetect</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DChardetect rows=3D4 cols=3D46>=20
Detect for the presence of a character

Write a common function to detect a char
Place the following script in the header portion of the webpage



&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
function validate(){
var invalid =3D " "; // Checks for   space in this case
if (document.submitform.firstname.value.indexOf(invalid) &gt; -1) {
alert("Sorry, space is NOT allowed.");
return false;
}
else {
return true;
}
}
//   End --&gt;
&lt;/script&gt;



Write a script to make a form with a text box and call the above =
function
This script here alerts you if it finds a 'space' in the entry


&lt;form name=3Dsubmitform onSubmit=3D"return validate()"&gt;
First Name : &lt;input type=3Dtext name=3Dfirstname&gt;
&lt;BR&gt;&lt;BR&gt;
&lt;input type=3Dsubmit value=3D"Check for Space"&gt;
&lt;/form&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DClosedelay>Closedelay</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DClosedelay rows=3D4 cols=3D46>=20
Close a window after few seconds delay

First write a small script to open a new window


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
// A small function to open a page called test.htm
function popwin()
{
closetime =3D 2; // '0'   for not closing the window
preview =3D window.open('test.htm', 'popupnav', =
'width=3D200,height=3D170,resizable=3D1,scrollbars=3Dauto');

// This checks to close the window after 2 seconds as specified
if (closetime) setTimeout("preview.close();", closetime*1000);
}

//   End --&gt;
&lt;/script&gt;



Now in the BODY tag add call the centerPop Function

&lt;BODY OnLoad=3D"popwin();"&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DCloseonclick>Closeonclick</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DCloseonclick rows=3D4 cols=3D46>=20
Close Window on Clicking anywhere on the Document

Paste the following script in the HEAD portion of the document



&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--

function closeWin() {
window.close();
}

if (window.Event) document.captureEvents(Event.ONCLICK);
document.onclick =3D closeWin;

// --&gt;
&lt;/SCRIPT&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DClosewindow>Closewindow</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DClosewindow rows=3D4 cols=3D46>=20
Close a Window
=20

This is a relatively simple task
Define a HTML button and call the window.close function


&lt;FORM&gt;
&lt;INPUT TYPE=3D'button' VALUE=3D'Close' " =
onClick=3D'window.close()'"&gt;&lt;/FORM&gt;
&lt;/CENTER&gt;
&lt;/FORM&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DConfirm>Confirm</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DConfirm rows=3D4 cols=3D46>=20
Confirm from the user before proceding

&lt;script language=3D"JavaScript"&gt;

function confirmUser()
{
if (!confirm("\nAre you sure you wish to proceed ?"))
return false;
else
location.href=3D"http://www.yahoo.com"

return true;
}

&lt;/script&gt;




HTML Code to generate the Button to call confirm script.


&lt;form action=3D"alert_confirm.htm" method=3D"post" onClick=3D"return =
confirmUser()"&gt;
&lt;input type=3D"button" name=3D"submit" value=3D"Click here to Visit =
Yahoo"&gt;
&lt;/form&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DCrazywindow>Crazywindow</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DCrazywindow rows=3D4 cols=3D46>=20
Wow, a real crazy window=20
Write the following in the header portion of the HTML file


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
if(document.layers || document.all) {
a =3D 1;
setInterval("Jump()", 10);
}
function Jump() {
a =3D a + 1;
self.moveBy((Math.random() * a * 2 - a), (Math.random() * a * 2) - a);
}
//   End --&gt;
&lt;/script&gt;

Now to open a window provide a button script as follows.
On clicking that button invoke the above script
You might have to use ' CTRL-ALT-DEL' to close the window


&lt;form&gt;&lt;input type=3Dbutton value=3D"Open The Crazy Window" =
onClick=3D"demo=3Dwindow.open('test_crazy.htm');"&gt;&lt;/form&gt;

=20
=3DEND

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDatecount>Datecount</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDatecount rows=3D4 cols=3D46>=20
Date from a given date and number of days

This makes use of the 'toUpperCase()' Function


&lt;script language=3D"JavaScript"&gt;
&lt;!--
function addDays(myDate,days) {
return new Date(myDate.getTime() + days*24*60*60*1000);
}

// User Any date that you need
thisdate =3D new Date;
// Currently calculating for 10 days
daysfromnow =3D 10;
document.write("&lt;B&gt;" + daysfromnow + " days from now, the date =
will be &lt;/B&gt;" + addDays(thisdate,daysfromnow))
//--&gt;
&lt;/script&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDateformat>Dateformat</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDateformat rows=3D4 cols=3D46>Date formats in JavaScript
Define a small function to show date
Then call that function.



&lt;script language=3D"JavaScript"&gt;
var todayDate=3Dnew Date()
var year=3DtodayDate.getYear()

if (year&lt;2000)
year=3D"19"+year

var day=3DtodayDate.getDay()
var month=3DtodayDate.getMonth()
var daym=3DtodayDate.getDate()

if (daym&lt;10)
daym=3D"0"+daym

var dayarray=3Dnew =
Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturd=
ay")

var montharray=3Dnew =
Array("January","February","March","April","May","June","July","August","=
September","October","November","December")


document.write("&lt;b&gt;Today is : "+dayarray[day]+", =
"+montharray[month]+" "+daym+", "+year+"&lt;/b&gt;&lt;BR&gt;")
document.write("&lt;b&gt;"+month+"/"+daym+"/"+year+"&lt;/b&gt;&lt;BR&gt;"=
)
&lt;/script&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDateparts>Dateparts</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDateparts rows=3D4 cols=3D46>Date and Time Parts in JavaScript
=20
First Get the Date today
Then use Javascript function to split the date parts



&lt;script language=3D"JavaScript"&gt;

today =3D new Date();
document.write("&lt;b&gt;Date : &lt;/b&gt;"+today+"&lt;BR&gt;");

gtoday =3D today.toGMTString();
document.write("&lt;b&gt;GMT Date Time : =
&lt;/b&gt;"+gtoday+"&lt;BR&gt;");

mydate =3D today.getDate();
document.write("&lt;b&gt;The Date : &lt;/b&gt;"+mydate+"&lt;BR&gt;");

myday =3D today.getDay();
document.write("&lt;b&gt;The Day : &lt;/b&gt;"+myday+"&lt;BR&gt;");

myhour =3D today.getHours();
document.write("&lt;b&gt;The Hour : &lt;/b&gt;"+myhour+"&lt;BR&gt;");

myminutes =3D today.getMinutes();
document.write("&lt;b&gt;The Minutes : =
&lt;/b&gt;"+myminutes+"&lt;BR&gt;");

myseconds =3D today.getSeconds();
document.write("&lt;b&gt;The Seconds : =
&lt;/b&gt;"+myseconds+"&lt;BR&gt;");

mytime =3D today.getTime();
document.write("&lt;b&gt;The Time in Secs : =
&lt;/b&gt;"+mytime+"&lt;BR&gt;");


mymonth =3D today.getMonth();
document.write("&lt;b&gt;The Month : &lt;/b&gt;"+mymonth+"&lt;BR&gt;");

myyear =3D today.getFullYear();
document.write("&lt;b&gt;The Year : &lt;/b&gt;"+myyear+"&lt;BR&gt;");

&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDatestatusbar>Datestatusbar</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDatestatusbar rows=3D4 cols=3D46>=20
Show date and time in Statusbar
=20
Define a small function to show date
Then call that function.



&lt;script language=3D"JavaScript"&gt;
function doClock() {
window.setTimeout( "doClock()", 1000 );
today =3D new Date();
self.status =3D today.toString();
}

// Call the function
doClock()
&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDaysleft>Daysleft</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDaysleft rows=3D4 cols=3D46>=20
Calculate the number of days remaining till a given date
=20

Say lets calculate Days left till 31/12/2000



&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function y2k(number) { return (number &lt; 1000) ? number + 1900 : =
number; }

function timeTillDate(whenDay,whenMonth,whenYear) {
var now =3D new Date();
var then =3D new Date(y2k(whenYear),whenMonth-1,whenDay);

var difference =3D =
Date.UTC(y2k(then.getYear()),then.getMonth(),then.getDate(),0,0,0) -
Date.UTC(y2k(now.getYear()),now.getMonth(),now.getDate(),0,0,0);

return difference/(1000*60*60*24);
}

document.write("&lt;B&gt; Days left till 31 Dec 2000 is :&lt;/B&gt;" +   =
timeTillDate(31,12,2000) + " Days ");
//--&gt;&lt;/SCRIPT&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDayquote>Dayquote</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDayquote rows=3D4 cols=3D46>=20
Quote for each day of the month on the top of page
Write the following in the header portion of the HTML file


&lt;script language=3D"Javascript"&gt;
&lt;!-- Begin
theDate=3D new Date();
var day =3D theDate.getDate();
var year =3D theDate.getYear();
year =3D (year &lt; 2000) ? year + 1900 : year;
var textdate =3D (theDate.getMonth() + 1) + '/' + theDate.getDate() + =
'/' + year;

var numquotes =3D 31;
quotes =3D new Array(numquotes+1);
quotes[1] =3D "I am quote 1";
quotes[2] =3D "I am quote 2";
quotes[3] =3D "I am quote 3";
quotes[4] =3D "I am quote 4";
quotes[5] =3D "I am quote 5";
quotes[6] =3D "I am quote 6";
quotes[7] =3D "I am quote 7";
quotes[8] =3D "I am quote 8";
quotes[9] =3D "I am quote 9";
quotes[10] =3D "I am quote 10";
quotes[11] =3D "I am quote 11";
quotes[12] =3D "I am quote 12";
quotes[13] =3D "I am quote 13";
quotes[14] =3D "I am quote 14";
quotes[15] =3D "I am quote 15";
quotes[16] =3D "I am quote 16";
quotes[17] =3D "I am quote 17";
quotes[18] =3D "I am quote 18";
quotes[19] =3D "I am quote 19";
quotes[20] =3D "I am quote 20";
quotes[21] =3D "I am quote 21";
quotes[22] =3D "I am quote 22";
quotes[23] =3D "I am quote 23";
quotes[24] =3D "I am quote 24";
quotes[25] =3D "I am quote 25";
quotes[26] =3D "I am quote 26";
quotes[27] =3D "I am quote 27";
quotes[28] =3D "I am quote 28";
quotes[29] =3D "I am quote 29";
quotes[30] =3D "I am quote 30";
quotes[31] =3D "I am quote 31";

document.write('&lt;b&gt;Quote of the day for ' + textdate + =
'&lt;/b&gt;&lt;br&gt;');
document.write('&lt;i&gt;' + quotes[day] + '&lt;/i&gt;&lt;br&gt;');
//   End --&gt;
&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDayredirect>Dayredirect</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDayredirect rows=3D4 cols=3D46>Place the following script in your =
html page
Lest assume that we have an /html file for each day of the week.
e.g., Sunday.html, Mondoy.html, Tuesday.html....and so on.
And that we need to redirect the user to the page depending on the day =
of the week
Copy the following code in the header portion of the HTML page


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
function initArray() {
this.length =3D initArray.arguments.length;
for (var i =3D 0; i &lt; this.length; i++)
this[i+1] =3D initArray.arguments[i];
}
var WeekDayArray =3D new
initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Sa=
turday");
var today =3D new Date();
var day =3D WeekDayArray[today.getDay()+1];
window.location =3D day + ".html";
// End --&gt;
&lt;/SCRIPT&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDecimalhexa>Decimalhexa</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDecimalhexa rows=3D4 cols=3D46>=20
Convert Decimal to Hexadecimal
=20


write a small function to convert decimal into hexadecimal


&lt;script language=3D"JavaScript"&gt;
&lt;!--
var hexChars =3D "0123456789ABCDEF";
function Dec2Hex () {
var d =3D document.myform.decbox.value;
var a =3D d % 16;
var b =3D (d - a)/16;
hex =3D "" + hexChars.charAt(b) + hexChars.charAt(a);
document.myform.hexbox.value =3D hex;
return false;
}


//--&gt;
&lt;/script&gt;



HTML Code to generate the form elements and call the convert script


&lt;FORM name=3D"myform"&gt;
Decimal &lt;input type=3D"text" name=3D"decbox" value=3D"" =
maxlength=3D3&gt; &lt;BR&gt;
Hexadecimal &lt;input type=3D"text" name=3D"hexbox" value=3D""&gt;   =
&lt;BR&gt; &lt;BR&gt;
&lt;input type=3D"submit" name=3D"Convert" value=3D"Convert" =
onClick=3D"return Dec2Hex();"&gt;
&lt;/FORM&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDisablefield>Disablefield</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDisablefield rows=3D4 cols=3D46>&lt;form name=3D"myForm"&gt;
&lt;input name=3D"myField" type=3D"text" disabled onFocus=3D"if =
(this.disabled) this.blur()"&gt;
&lt;/form&gt;


or

&lt;script language=3D"JavaScript"&gt;&lt;!--
document.myForm.myField.disabled=3Dtrue;
//--&gt;&lt;/script&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDisabletextbox>Disabletextbox</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDisabletextbox rows=3D4 cols=3D46>How to disable a text box
Just use the 'Disabled' function


&lt;form&gt;
&lt;input type=3D"text" name=3D"username" disabled=3D"true" =
value=3D"try-me"&gt;
&lt;/form&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDisplayLinktooltip>DisplayLinktooltip</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDisplayLinktooltip rows=3D4 cols=3D46>=20
Display a ToolTip on a Link
Not possible in Netscape Navigator.
In Microsoft Internet Explorer its a peice of cake.
Add a TITLE attribute to the &lt;A&gt; tag and IE will automatically =
display this text as a tooltip when users hover their mouse over the =
link.


&lt;HTML&gt;
&lt;BODY&gt;
&lt;A HREF=3D"http://www.generalhosting.com.net" TITLE=3D"Hi ! General =
Hosting !!" &gt;Click here&lt;/A&gt;.
&lt;/BODY&gt;
&lt;/HTML&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDynamiclistbox>Dynamiclistbox</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDynamiclistbox rows=3D4 cols=3D46>Dynamic List Box

&lt;script language=3D"javascript"&gt;
&lt;!--
function setOption(form, index) {
for (var i =3D 0; i &lt; form.List2.length; i++) {
form.List2.options[i].text =3D "";
form.List2.options[i].value =3D "";
}

if (index =3D=3D 0) {
form.List2.options[0].text =3D "India";
form.List2.options[0].value =3D "india";
form.List2.options[1].text =3D "Japan";
form.List2.options[1].value =3D "japan";
form.List2.options[2].text =3D "USA";
form.List2.options[2].value =3D "usa";
form.List2.options[3].text =3D "Germany";
form.List2.options[3].value =3D "germany";
}
else if (index =3D=3D 1) {
form.List2.options[0].text =3D "Blue";
form.List2.options[0].value =3D "#0000FF";
form.List2.options[1].text =3D "Red";
form.List2.options[1].value =3D "#FF0000";
form.List2.options[2].text =3D "Yellow";
form.List2.options[2].value =3D "#FFFF00";
form.List2.options[3].text =3D "Green";
form.List2.options[3].value =3D "#00FF00";
}
else if (index =3D=3D 2) {
form.List2.options[0].text =3D "One";
form.List2.options[0].value =3D "1";
form.List2.options[1].text =3D "Two";
form.List2.options[1].value =3D "2";
form.List2.options[2].text =3D "Three";
form.List2.options[2].value =3D "3";
form.List2.options[3].text =3D "Four";
form.List2.options[3].value =3D "4";
}
form.List2.selectedIndex =3D 0;
}
//--&gt;
&lt;/script&gt;






The HTML form elements can be generated by the follwoing scripts




&lt;form name=3D"myform"&gt;
&lt;select name=3D"List1" OnChange=3D"setOption(this.form, =
this.selectedIndex)"&gt;
&lt;option&gt;Country
&lt;option&gt;Colours
&lt;option&gt;Numbers
&lt;/select&gt;

&lt;select name=3D"List2" =
OnChange=3D"this.form.ValueIn2.value=3Dthis.options[this.selectedIndex].v=
alue"&gt;
&lt;option&gt;India
&lt;option&gt;Japan
&lt;option&gt;USA
&lt;option&gt;Germany
&lt;/select&gt;
&lt;/form&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DEffectbgfade>Effectbgfade</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DEffectbgfade rows=3D4 cols=3D46>Fade the background color
=20
Place the following script in the header portion of the webpage




&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
   var red,dir=3D5,redstr;
   function fadeloop(){
	red=3Dred+dir;
	if (red&lt;0){
		red=3D0;dir=3D-dir;
	}else if (red&gt;255){
		red=3D255;dir=3D-dir;
	}
	redstr=3Dred.toString(16);
	if (red&lt;16) redstr=3D"0"+redstr;
	document.bgColor=3D"#"+redstr+"0000";
		setTimeout("fadeloop()",5);
   }=09
// End --&gt;
&lt;/SCRIPT&gt;




&lt;body bgcolor=3D"#000000" onLoad=3D"red=3D0;fadeloop()"&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DEmaillinkhref>Emaillinkhref</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DEmaillinkhref rows=3D4 cols=3D46>Send e mail on a click

A  code embedded in an HTML tag is as follows

&lt;A HREF=3D"mailto:info@yourdomain.net"&gt;Send Mail &lt;/A&gt;



To write the subject as well as the body of the mail use the following =
code

&lt;A HREF=3D"mailto:info@your-domain.net?subject=3DTest Mail from =
&amp;body=3DHi Ravi"&gt;Send Test Mail to with a subject and =
message&lt;/A&gt;



Or a little more enhanced script would be as follows
Send a mail and cc and bcc to other also

&lt;A =
HREF=3D"mailto:info@your-domain.net?cc=3Dinfo@your-domain.net&amp;bcc=3Di=
nfo@your-domain.net&amp;subject=3DTest Mail"&gt;Send a test mail to info =
and cc to info&lt;/A&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DEncodehexa>Encodehexa</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DEncodehexa rows=3D4 cols=3D46>How can I encode a character string =
into its hexadecimal ASCII representation?
Write a small function to convert each char into hexadecimal



&lt;script language=3D"JavaScript"&gt;
&lt;!--
function hexMe() {
var text1 =3D document.myform.hexval.value;
var text2=3D'';

for (i=3D0;i&lt;text1.length;i++)
text2 +=3D text1.charCodeAt(i).toString(16);

document.myform.hexval.value =3D text2;
return false;
}

//--&gt;
&lt;/script&gt;



HTML code to generate the form elements to call the hex converter =
function


&lt;FORM name=3D"myform" onClick=3D"return hexMe()"&gt;
&lt;input type=3D"text" name=3D"hexval" value=3D""&gt;
&lt;input type=3D"submit" name=3D"submit" value=3D"Convert to =
Hexadecimal"&gt;
&lt;/FORM&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DExitwindow>Exitwindow</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DExitwindow rows=3D4 cols=3D46>Open a new window when the user =
leaves the page
First write a small script to open a new window with a desired =
preference


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
function leavepage() {
window.open('feedback.htm','','toolbar=3Dno,menubar=3Dno,location=3Dno,he=
ight=3D500,width=3D500');
}
// End --&gt;
&lt;/SCRIPT&gt;


Now the trick is to call the function in the BODY tag as follows

&lt;BODY onUnload=3D"leavepage()"&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DExpirenew>Expirenew</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DExpirenew rows=3D4 cols=3D46>Expiring the New Icon

First Add the following javascript in the header portion of the HTML =
file=20

&lt;script language=3D"Javascript"&gt;
&lt;!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var image =3D "new.gif"

function expnew(when) {

when =3D new Date(when)
date =3D new Date()

if (when.getTime() &gt; date.getTime()) {
document.write("&lt;img src=3D"+image+"&gt;")
}
}
//--&gt;
&lt;/script&gt;

 Now to show the 'new' icon till date 6/2/2002 use the following HTML =
code.

&lt;script language=3D"Javascript"&gt;
&lt;!--
expnew("6/2/2002")
//--&gt;
&lt;/script&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DExternaljavascript>Externaljavascript</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DExternaljavascript rows=3D4 cols=3D46>Calling external Javascript =
File

This is a very good approach
Keeping a set of javascripts that would be used in many pages helps a =
great deal if you decide in future to change something in it.
You would not have to make the change in all pages


Place the following script in the header portion of the webpage

&lt;script language=3D"JavaScript" =
src=3D"/jscript/basic.js"&gt;&lt;/script&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DExternaljs>Externaljs</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DExternaljs rows=3D4 cols=3D46>A js file is the javascript you =
would embed in your page.
You just link to it instead of embedding it.
Place the following script in the header portion of the webpage


&lt;SCRIPT LANGUAGE=3D"JavaScript" =
SRC=3D"js/dim_pop.js"&gt;&lt;/SCRIPT&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DFormatCurrency>FormatCurrency</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFormatCurrency rows=3D4 cols=3D46>function formatCurrency(num) {
  num =3D num.toString().replace(/\$|\,/g,'');
  if(isNaN(num))
    num =3D "0";
    sign =3D (num =3D=3D (num =3D Math.abs(num)));
    num =3D Math.floor(num*100+0.50000000001);
    cents =3D num%100;
    num =3D Math.floor(num/100).toString();
  if(cents&lt;10)
    cents =3D "0" + cents;
  for (var i =3D 0; i &lt; Math.floor((num.length-(1+i))/3); i++)
    num =3D num.substring(0,num.length-(4*i+3))+','+
    num.substring(num.length-(4*i+3));
  return (((sign)?'':'-') + '$' + num + '.' + cents);
}
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DFormcheckage>Formcheckage</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFormcheckage rows=3D4 cols=3D46>Place the following script in the =
header portion of the webpage


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
function validate(form){
var adultAge=3D 18;
if (form.age.value&gt;=3DadultAge)
    alert(form.age + "Welcome you are above the age " + adultAge);
else
    alert(form.age + "Sorry you are below " + adultAge + ".");

return false
}
// End --&gt;
&lt;/SCRIPT&gt;




&lt;FORM name=3D"testform" onSubmit=3D"return validate(this.form)"&gt;
Age:&lt;input type=3D"text" size=3D"3" name=3D"age"&gt;
&lt;input type=3D"submit" value=3D"Submit"&gt;
&lt;/FORM&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DFormdropdown>Formdropdown</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFormdropdown rows=3D4 cols=3D46>Go to the selected item in drop =
Down box
Write a function in JavaScript to go to a predefined set of pages



&lt;script language=3D"JavaScript"&gt;
&lt;!--

function buildArray() {
var a =3D buildArray.arguments;
for (i=3D0; i&lt;a.length; i++) {
this[i] =3D a[i];
}
this.length =3D a.length;
}

var urls1 =3D new buildArray("",
"http://www.yahoo.com",
"http://www.altavista.com",
"http://www.hotbot.com",
"http://www.infoseek.com");

function go(which, num, win) {
n =3D which.selectedIndex;
if (n !=3D 0) {
var url =3D eval("urls" + num + "[n]")
if (win) {
openWindow(url);
} else {
location.href =3D url;
}
}
}
// --&gt;
&lt;/script&gt;




The HTML code to call the baove function from a drop down box.



&lt;form name=3D"myform"&gt;
&lt;FONT SIZE=3D"2" FACE=3D"Arial"&gt;
Select an Item and it would automatically take you there.
&lt;select name=3D"menu1" onChange=3D"go(this, 1, false)"&gt;
&lt;option&gt;Select an item
&lt;option&gt; - Yahoo
&lt;option&gt; - Altavista
&lt;option&gt; - Hotbot
&lt;option&gt; - Infoseek
&lt;/select&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DFormvalidation>Formvalidation</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFormvalidation rows=3D4 cols=3D46>Form Validation Script

The three most useful functions that you would end up using for user =
friendliness would be=20

// When the script encounters a text field that contains invalid data, =
you can direct the cursor to that field and automatically select the =
interior text.
// Use the combination of following three
document.forms[0].elements[0].focus();
document.forms[0].elements[0].blur();
document.forms[0].elements[0].select();


&lt;B&gt;Place the following script in the header portion of the =
webpage&lt;/B&gt;&lt;BR&gt;
&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function checkName(field) {
// Check for blank Spaces
if (field.value =3D=3D "") {
alert("Value is required");
	field.focus();
	field.blur();
	field.select();
}
}

// --&gt;
&lt;/SCRIPT&gt;



Now write the following code in the HTML page for validating a empty =
entry

&lt;FORM&gt;
Full Name: &lt;INPUT TYPE=3D"text" NAME=3D"userName" VALUE=3D"" =
SIZE=3D"15" onChange=3D"checkName(this)"&gt;
Email address: &lt;INPUT TYPE=3D"text" NAME=3D"email" VALUE=3D"" =
SIZE=3D"15" onChange=3D"checkEmail(this)"&gt;
&lt;/FORM&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DFormValidator>FormValidator</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFormValidator rows=3D4 cols=3D46>function Form1_Validator(Form)
{

  if (Form.Name.value =3D=3D "")
  {
    alert("Please enter a value for the \"Name\" field.");
    Form.Name.focus();
    return (false);
  }

  if (Form.Name.value.length &lt; 2)
  {
    alert("Please enter at least 2 characters in the \"Name\" field.");
    Form.Name.focus();
    return (false);
  }

  if (Form.Address.value =3D=3D "")
  {
    alert("Please enter a value for the \"Address\" field.");
    Form.Address.focus();
    return (false);
  }

  if (Form.Address.value.length &lt; 2)
  {
    alert("Please enter at least 2 characters in the \"Address\" =
field.");
    Form.Address.focus();
    return (false);
  }

  if (Form.City_ST_ZIP.value =3D=3D "")
  {
    alert("Please enter a value for the \"City_ST_ZIP\" field.");
    Form.City_ST_ZIP.focus();
    return (false);
  }

  if (Form.City_ST_ZIP.value.length &lt; 2)
  {
    alert("Please enter at least 2 characters in the \"City_ST_ZIP\" =
field.");
    Form.City_ST_ZIP.focus();
    return (false);
  }

  if (Form.Phone.value =3D=3D "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    Form.Phone.focus();
    return (false);
  }

  if (Form.Phone.value.length &lt; 10)
  {
    alert("Please enter at least 10 characters in the \"Phone\" =
field.");
    Form.Phone.focus();
    return (false);
  }

=20
  if (Form.Email.value =3D=3D "")
  {
    alert("Please enter a value for the \"Email\" field.");
    Form.Email.focus();
    return (false);
  }

  if (Form.Email.value.length &lt; 5)
  {
    alert("Please enter at least 5 characters in the \"Email\" field.");
    Form.Email.focus();
    return (false);
  }


 if (Form.EMAIL.value.indexOf('@', 0) =3D=3D -1 || =
Form.EMAIL.value.indexOf('.', 0) =3D=3D -1)
  {
     alert("Please enter a valid EMAIL address.");=20
     Form.EMAIL.focus();
     return (false);}



  return (true);
}

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DFramesonly>Framesonly</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFramesonly rows=3D4 cols=3D46>Allow frame pages to be loaded only =
together.

If a page is requested directly , it will redirect to the home URL.


 &lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;

  // this page should never be load alone
  if (window.location =3D=3D "http://generalhosting.com/right_page.htm")
    {
    window.location =3D "http://generalhosting.com/";
    }

  &lt;/SCRIPT&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DFullscreen>Fullscreen</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFullscreen rows=3D4 cols=3D46>=3DINFO+
=20
Open a full screen window
=20
=3DEND
=3DSOURCE+
=20

First write a small script to open a new window=20

&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=3Dyes, scrollbars=3Dauto');
}
//   End --&gt;
&lt;/script&gt;


Now Paste this code in the HTML page

&lt;a href=3D"javascript:void(0);" =
onClick=3D"fullScreen('fullscreen.htm');"&gt;Open a full screen =
Window&lt;/a&gt;


 If you are making the user to see a full screen window then please do =
give them am option to close the window
You could use the following code for the same

&lt;a href=3D"javascript:window.close();"&gt;Close This Window&lt;/a&gt;




=3DEND
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DGonowhere>Gonowhere</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DGonowhere rows=3D4 cols=3D46>=20
Go no where on URL Link


This is nothing but not stating a value for the anchor


&lt;a href=3D"#"&gt;Click here and U'll go no where &lt;/a&gt;&lt;BR&gt;
&lt;a href=3D"javascript:"&gt;Click here and U'll go no =
where&lt;/a&gt;&lt;BR&gt;
&lt;a href=3D"javascript:void(null)"&gt;Click here and U'll go no =
where&lt;/a&gt;&lt;BR&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DHistorysniffer>Historysniffer</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DHistorysniffer rows=3D4 cols=3D46>=20
History Sniffer
This is a more of a jazz script.
Find where the user is coming from and then redirect the user =
accordingly
A History Sniffer=20

&lt;script language=3D"JavaScript"&gt;&lt;!--
if (document.referrer.indexOf('page2.htm') &gt; -1)
location.href =3D 'page2.htm';
else if (document.referrer.indexOf('page3.htm') &gt; -1)
location.href =3D 'page2.htm';
else
location.href =3D 'default.htm';
//--&gt;&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DHowtoBookmarkpage>HowtoBookmarkpage</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DHowtoBookmarkpage rows=3D4 cols=3D46>=20
Bookmark this page

A simple button that call a function to BookMark This page


&lt;script Language=3D"JavaScript"&gt;
&lt;!--
function bookmarkMe() {
window.external.addFavorite('http://www.generalhosting.com','generalhosti=
ng.com : Feed your Tech ');
}
// --&gt;
&lt;/script&gt;

&lt;FORM&gt;
&lt;input type=3D"button" onClick=3D"bookmarkMe()" name=3D"2" =
value=3D"BookMark Me"&gt;
&lt;/FORM&gt;





The same effect on Right Click on the document


&lt;script Language=3D"JavaScript"&gt;
&lt;!--
function bookMe() {
window.external.addFavorite('http://www.generalhosting.com','generalhosti=
ng.com : Feed your Tech');
}
document.onmousedown=3DbookMe
// --&gt;
&lt;/script&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DHowtoredirect>Howtoredirect</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DHowtoredirect rows=3D4 cols=3D46>Redirect to generalhosting.com
=20
Use the following in the header portion of the HTML page.


&lt;META HTTP-EQUIV=3D"REFRESH" =
CONTENT=3D"30;URL=3Dhttp://www.generalhosting.com"&gt;



The complete sample HTML page code for the above effect.


&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=3D"REFRESH" =
CONTENT=3D"30;URL=3Dhttp://www.generalhosting.net"&gt;
&lt;TITLE&gt;generalhosting.net&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
After 30 seconds this page will automatically redirect to
&lt;A HREF=3D"http://www.generalhosting.net"&gt;Will go to =
generalhosting.net in 30 seconds&lt;/A&gt;.
&lt;/BODY&gt;
&lt;/HTML&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DImagechange>Imagechange</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DImagechange rows=3D4 cols=3D46>How to change the image on Mouse =
Over
=20
This can be done by using the onMouseOver and onMouseOut events for the =
image.
But remember that images do not support the  onMouseOver and onMouseOut =
properties. But theres a work around.
Wrap the image in a hyperlink. Hyperlink supports the onMouseOver and =
onMouseOut properties.



&lt;a href=3D"somepage.htm"
onMouseOver=3D"document . images ['cat'] . src =3D 'test2.gif';"
onMouseOut =3D"document . images ['cat'] . src =3D 'test1.gif';"&gt;
&lt;img name=3D"cat" src=3D"comp1.jpg" border=3D0&gt;&lt;/a&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DImagemap>Imagemap</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DImagemap rows=3D4 cols=3D46>Image Map
=20
First define the mapping coordinates as follows=20

&lt;MAP NAME=3D"mymap"&gt;
&lt;AREA SHAPE=3DRECT COORDS=3D"14,15,151,87" HREF=3D"home.htm" =
onMouseOver=3D"window.status=3D'Home'; return true;"&gt;
&lt;AREA SHAPE=3DRECT COORDS=3D"162,16,283,85" HREF=3D"feedback.htm" =
onMouseOver=3D"window.status=3D'Feedback'; return true;"&gt;
&lt;AREA SHAPE=3DRECT COORDS=3D"294,15,388,87" HREF=3D"info.htm" =
onMouseOver=3D"window.status=3D'Information'; return true;"&gt;
&lt;AREA SHAPE=3DRECT COORDS=3D"13,98,79,178" =
HREF=3D"mailto:info@your-domain.net" =
onMouseOver=3D"window.status=3D'Email Us'; return true;"&gt;
&lt;/MAP&gt;



Now in the image tag call the map as follows

&lt;IMG SRC=3D"imagemap.gif" USEMAP=3D"#mymap"&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DImagemouseover>Imagemouseover</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DImagemouseover rows=3D4 cols=3D46>=20
Alert on Mouse over Image
=20

&lt;img src=3D"someimage.gif" onmouseover=3D"alert('Hello from =
WonderSky')"&gt;


The above code works fine with IE but not with all versions of Netscape =
Navigator.
Netscape doesn't seem to support the onMouseOver event for images.


The trick is to use the &lt;A&gt; mouse over on this is supported.
So, wrap the image in a set of &lt;A&gt; tags that include your =
onMouseOver handler, like following.




&lt;HTML&gt;
&lt;BODY&gt;
&lt;a href=3D"" onMouseOver=3D"alert('Hi from WonderSky');"&gt;&lt;img =
src=3D"someimage.gif"   border=3D"0"&gt;&lt;/a&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DImagepreload>Imagepreload</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DImagepreload rows=3D4 cols=3D46>=20
How to pre-load an Image
=20
The Image object which makes it possible for JavaScript programs to load =
images without displaying them in the browser window.
First you create an Image Object
The set the image object's src property to the image's URL.

Set the following code in the Header portion of the page.


&lt;script&gt;
myimage          =3D new Image ();
myimage . src =3D "someimage.gif";
&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DIsdate>Isdate</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DIsdate rows=3D4 cols=3D46>Calculate for the validity of a date
Say, lets calculate the validity of date 31 Feb, 2000



&lt;script language=3D"JavaScript"&gt;
&lt;!--
function y2k(number) {
return (number &lt; 1000) ? number + 1900 : number;
}

function isDate (day,month,year) {
// checks if date passed is valid
// will accept dates in following format:
// isDate(dd,mm,ccyy), or
// isDate(dd,mm) - which defaults to the current year, or
// isDate(dd) - which defaults to the current month and year.
// Note, if passed the month must be between 1 and 12, and the
// year in ccyy format.

var today =3D new Date();
year =3D ((!year) ? y2k(today.getYear()):year);
month =3D ((!month) ? today.getMonth():month-1);
if (!day) return false
var test =3D new Date(year,month,day);
if ( (y2k(test.getYear()) =3D=3D year) &amp;&amp;
(month =3D=3D test.getMonth()) &amp;&amp;
(day =3D=3D test.getDate()) )
return true;
else
return false
}

if (isDate(31,2,2000))
document.write("&lt;B&gt;Is Valid&lt;/B&gt;");
else
document.write("&lt;B&gt;Is Invalid&lt;/B&gt;");
//--&gt;
&lt;/script&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DJavascripthistory>Javascripthistory</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DJavascripthistory rows=3D4 cols=3D46>The JavaScript History =
Property
Forward Button


&lt;script language=3D"JavaScript"&gt;
&lt;!--
javascript:window.history.forward(1);
//--&gt;
&lt;/script&gt;



Back Button


&lt;script language=3D"JavaScript"&gt;
&lt;!--
javascript:window.history.forward(-1);
//--&gt;
&lt;/script&gt;




Back button from Link


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function back()
{      history.go(-1);
}
//--&gt;
&lt;/SCRIPT&gt;

&lt;A HREF=3D"javascript:back()"&gt;Back&lt;/A&gt;





This is a more of a jazz script.
Find where the user is coming from and then redirect the user =
accordingly
A History Sniffer


Sniff the history and then redirect
&lt;script language=3D"JavaScript"&gt;&lt;!--
if (document.referrer.indexOf('page2.htm') &gt; -1)
location.href =3D 'page2.htm';
else if (document.referrer.indexOf('page3.htm') &gt; -1)
location.href =3D 'page2.htm';
else
location.href =3D 'default.htm';
//--&gt;&lt;/script&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DJjuliandate>Jjuliandate</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DJjuliandate rows=3D4 cols=3D46>=20
Calculate the Julian Date=20

Say lets calculate the julian Date for Today


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function makeArray()      {
this[0] =3D makeArray.arguments.length;
for (i =3D 0; i&lt;makeArray.arguments.length; i++)
this[i+1] =3D makeArray.arguments[i];
}

var accumulate      =3D new makeArray(   0, 31, 59, =
90,120,151,181,212,243,273,304,334);
var accumulateLY   =3D new makeArray(   0, 31, 60, =
91,121,152,182,213,244,274,305,335);

function LeapYear(year) {
if ((year/4)    !=3D Math.floor(year/4))    return false;
if ((year/100) !=3D Math.floor(year/100)) return true;
if ((year/400) !=3D Math.floor(year/400)) return false;
return true;
}

function getJulian(day,month,year) {
if (LeapYear(year))
return (day + accumulateLY[month]);
else
return (day + accumulate[month]);
}

var today =3D new Date();

document.write('&lt;B&gt;Julian day =3D &lt;/B&gt;' + =
getJulian(today.getDate(),today.getMonth()+1,today.getYear));
//--&gt;
&lt;/SCRIPT&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DJsanimation>Jsanimation</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DJsanimation rows=3D4 cols=3D46>Animation using JavaScript
=20
Define a small animator function
This swaps the image based on the current image
Note: you must have two images, for swapping


&lt;script language=3D"JavaScript"&gt;
var i=3D1;
function animator()
{
anipic =3D document.images[0].src;
ref =3D anipic.substring(0,anipic.length-5)+i+".gif";
document.images[0].src =3D ref;
i++;
if (i=3D=3D2) {
	i=3D0;
}
}



// Now call the animator function after a time interval to get the =
affect of animation


function jsanim()
{
animator();
setTimeout("jsanim()", 500);
}

&lt;/script&gt;



HTML Code . The function must be called in the body tag


&lt;body onLoad=3D"jsanim()"&gt;
&lt;IMG HEIGHT=3D16 WIDTH=3D28 SRC =3D "eye0.gif"&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DLastmodified>Lastmodified</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DLastmodified rows=3D4 cols=3D46>Determine the last time this page =
was modified
=20
Simple script that reads the HTML page and prints the page.

&lt;script language=3D"Javascript"&gt;
&lt;!--
document.write("The page was last updated on: =
"+document.lastModified+"")
//--&gt;
&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DLimittextarea>Limittextarea</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DLimittextarea rows=3D4 cols=3D46>Restrict entry in a text area
=20

Place the following script in the header portion of the webpage

&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
function checkLength(field, countfield, maxlimit) {
if (field.value.length &gt; maxlimit) // if too long...trim it!
field.value =3D field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
countfield.value =3D maxlimit - field.value.length;
}
// End --&gt;
&lt;/script&gt;



Copy the following code in the HTML page.
There are two textboxes. One for entering the value and the other for =
counting the entries


&lt;form name=3Dmyform action=3D"code_limit_textarea.htm"&gt;
&lt;font size=3D"1" face=3D"arial, helvetica, sans-serif"&gt; ( You may =
enter up to 50 characters. )&lt;BR&gt;
&lt;textarea name=3Dusermsg wrap=3Dphysical cols=3D28 rows=3D4 =
onKeyDown=3D"checkLength(this.form.usermsg,this.form.countLen,50);" =
onKeyUp=3D"checkLength(this.form.usermsg,this.form.countLen,50);"&gt;</TE=
XTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DLinkjavascript>Linkjavascript</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DLinkjavascript rows=3D4 cols=3D46>=20
Call JavaScript Function from a link.
=20
Write a small Javascript function to be called from the click of a link.



&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
function myFunc() {
alert ("Hey , you clicked me now !!. Well, I sort of liked it")
}
&lt;/SCRIPT&gt;




Now write the following in the HTML page to call the javascript function =
from the browser.


&lt;A HREF=3D"javascript:myFunc()"&gt;Click Here&lt;/A&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DLowercase>Lowercase</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DLowercase rows=3D4 cols=3D46>=20
Forcing lower CASE

This makes use of the 'toLowerCase()' Function



&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;&lt;!--
function convert() {
document.myForm.myText1.value =3D =
document.myForm.myText1.value.toLowerCase();
return false;
}
//--&gt;&lt;/SCRIPT&gt;



HTML code for form elements


&lt;FORM NAME=3D"myForm" onSubmit=3D"return convert(this)"&gt;
&lt;INPUT TYPE=3D"TEXT" NAME=3D"myText1" VALUE=3D""&gt;
&lt;INPUT TYPE=3D"SUBMIT" VALUE=3D"Convert to LowerCase"&gt;
&lt;/FORM&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DMonthdayredirect>Monthdayredirect</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DMonthdayredirect rows=3D4 cols=3D46>=20
Redirect the user to a page depending on the day of the month
=20
Place the following script in your html page
Lest assume that we have an .html file for each day of the month
e.g., 1.html, 2.html, 3.html....and so on.
And that we need to redirect the user to the page depending on the day =
of the month
Copy the following code in the header portion of the HTML page


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
var today =3D new Date();
var day =3D today.getDate();
window.location =3D day + ".html";
// End --&gt;
&lt;/SCRIPT&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DMouseoverimage>Mouseoverimage</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DMouseoverimage rows=3D4 cols=3D46>=20
Change image on MouseOver
=20
&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
IMG01 =3D "on.gif" //image when mouse is over the link
IMG02 =3D "off.gif" //image when mouse is not over the link

function imgover(imgname){
imgname.src =3D IMG01
}

function imgout(imgname){
imgname.src =3D IMG02
}

//--&gt;
&lt;/SCRIPT&gt;




Script to show the links and the images next to it.
This Javascript displays a small arrow before the link which you have =
your mouse over.


&lt;IMG NAME=3D"IMG01" SRC=3D"off.gif" WIDTH=3D10 HEIGHT=3D10 =
BORDER=3D0&gt;
&lt;A HREF=3D"http://www.yahoo.com" onMouseOver=3D"imgover(IMG01)" =
onMouseOut=3D"imgout(IMG01)"&gt;Yahoo

&lt;IMG NAME=3D"IMG02" SRC=3D"off.gif" WIDTH=3D10 HEIGHT=3D10 =
BORDER=3D0&gt;
&lt;A HREF=3D"http://www.altavista.com" onMouseOver=3D"imgover(IMG02)" =
onMouseOut=3D"imgout(IMG02)"&gt;Alta Vista



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DMouseover>Mouseover</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DMouseover rows=3D4 cols=3D46>A Basic Mouse Over Function
=20
To Show the message in Status bar


&lt;a href=3D"www.yahoo.com" onMouseOver=3D"self.status=3D'I know u =
gonna go Yahoo';return true" &gt;Yahoo&lt;/a&gt;



To pop up an alert message


&lt;a href=3D"www.yahoo.com" onMouseOver=3D"alert('I am sure, U clicked =
me !')" &gt;Yahoo&lt;/a&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DMoveitemsbetweenselectbox>Moveitemsbetweenselectbox</A></FONT></SP=
AN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DMoveitemsbetweenselectbox rows=3D4 cols=3D46>Move items between =
selected form fields
                       =20
Place the following script in the header portion of the page


                   &lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
                   &lt;!--
                   function getSelectedString(selectItem) {
                   var i;
                   var j =3D 0;
                   var outlist =3D "";

                   for (i =3D 0; i &lt; selectItem.options.length; i++) =
{
                   if (j &gt; 0) {
                   outlist =3D outlist + ", ";
                   }
                   outlist =3D outlist + selectItem.options[i].value;
                   j++;
                   }
                   return outlist;
                   }



                   function addItems(fromItem, toCtrl) {
                   var i;
                   var j;
                   var itemexists;
                   var nextitem;

                   // step through all items in fromItem
                   for (i =3D 0; i &lt; fromItem.options.length; i++) {
                   if (fromItem.options[i].selected) {
                   // search toCtrl to see if duplicate
                   j =3D 0;
                   itemexists =3D false;
                   while ((j &lt; toCtrl.options.length) &amp;&amp; =
(!(itemexists))) {
                   if (toCtrl.options[j].value =3D=3D =
fromItem.options[i].value) {
                   itemexists =3D true;
                   alert(fromItem.options[i].value + " found!");
                   }
                   j++;
                   }
                   if (!(itemexists)) {
                   // add the item
                   nextitem =3D toCtrl.options.length;
                   toCtrl.options[nextitem] =3D new =
Option(fromItem.options[i].text);
                   toCtrl.options[nextitem].value =3D =
fromItem.options[i].value;
                   }
                   }
                   }
                   }


                   function removeItems(fromItem) {
                   var i =3D 0;
                   var j;
                   var k =3D 0;

                   while (i &lt; (fromItem.options.length - k)) {
                   if (fromItem.options[i].selected) {
                   // remove the item
                   for (j =3D i; j &lt; (fromItem.options.length - 1); =
j++) {
                   fromItem.options[j].text =3D =
fromItem.options[j+1].text;
                   fromItem.options[j].value =3D =
fromItem.options[j+1].value;
                   fromItem.options[j].selected =3D =
fromItem.options[j+1].selected;
                   }
                   k++;
                   } else {
                   i++;
                   }
                   }
                   for (i =3D 0; i &lt; k; i++) {
                   fromItem.options[fromItem.options.length - 1] =3D =
null;
                   }
                   }
                   //--&gt;
                   &lt;/SCRIPT&gt;


                   Now add the following as part of the HTML Page


                   &lt;FORM NAME=3D"main" =
ACTION=3D"code_move_selectlist.htm"
                   METHOD=3D"GET"&gt;
                   &lt;INPUT TYPE=3D"HIDDEN" NAME=3D"Avail"&gt;
                   &lt;INPUT TYPE=3D"HIDDEN" NAME=3D"Sel"&gt;

                   &lt;TABLE BORDER=3D0 CELLPADDING=3D0 =
CELLSPACING=3D0&gt;
                   &lt;TR&gt;
                   &lt;TD VALIGN=3D"TOP"&gt;
                   List 1&lt;BR&gt;
                   &lt;SELECT MULTIPLE NAME=3D"AvailItems" =
SIZE=3D"5"&gt;
                   &lt;OPTION VALUE=3D"1"&gt;Item 1&lt;/OPTION&gt;
                   &lt;OPTION VALUE=3D"2"&gt;Item 2&lt;/OPTION&gt;
                   &lt;/SELECT&gt;
                   &lt;/TD&gt;
                   &lt;TD ALIGN=3D"CENTER"&gt;
                   &lt;INPUT TYPE=3D"BUTTON" NAME=3D"AddBtn" VALUE=3D" =
&gt;&gt; "
                   OnClick=3D"addItems(this.form.AvailItems, =
this.form.SelItems);
                   removeItems(this.form.AvailItems);"&gt; &lt;BR&gt;
                   &lt;BR&gt;
                   &lt;INPUT TYPE=3D"BUTTON" NAME=3D"RemoveBtn" =
VALUE=3D" &lt;&lt; "
                   OnClick=3D"addItems(this.form.SelItems, =
this.form.AvailItems);
                   removeItems(this.form.SelItems);"&gt; &lt;BR&gt;
                   &lt;/TD&gt;
                   &lt;TD VALIGN=3D"TOP"&gt;
                   List 2&lt;BR&gt;
                   &lt;SELECT MULTIPLE NAME=3D"SelItems" SIZE=3D"5"&gt;
                   &lt;OPTION VALUE=3D"3"&gt;Item 3&lt;/OPTION&gt;
                   &lt;OPTION VALUE=3D"4"&gt;Item 4&lt;/OPTION&gt;
                   &lt;/SELECT&gt;
                   &lt;/TD&gt;
                   &lt;/TR&gt;
                   &lt;/TABLE&gt;

                   &lt;BR&gt;
                   &lt;BR&gt;
                   &lt;INPUT TYPE=3D"BUTTON" VALUE=3D"Submit"
                   OnClick=3D"this.form.Avail.value =3D
                   getSelectedString(this.form.AvailItems); =
this.form.Sel.value =3D
                   getSelectedString(this.form.SelItems); =
this.form.submit();"&gt;
                   &lt;/FORM&gt;

                   &lt;/BODY&gt;
                   &lt;/HTML&gt;=20

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A =
name=3DMoveselectlist>Move=20
                              select list</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DMoveselectlist rows=3D4 cols=3D46>=20
Move items between select box
=20

Place the following script in the header portion of the page


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function getSelectedString(selectItem) {
	var i;
	var j =3D 0;
	var outlist =3D "";

	for (i =3D 0; i &lt; selectItem.options.length; i++) {
		if (j &gt; 0) {
			outlist =3D outlist + ", ";
		}
		outlist =3D outlist + selectItem.options[i].value;
		j++;
	}
	return outlist;
}



function addItems(fromItem, toCtrl) {
	var i;
	var j;
	var itemexists;
	var nextitem;

	// step through all items in fromItem
	for (i =3D 0; i &lt; fromItem.options.length; i++) {
		if (fromItem.options[i].selected) {
			// search toCtrl to see if duplicate
			j =3D 0;
			itemexists =3D false;
			while ((j &lt; toCtrl.options.length) &amp;&amp; (!(itemexists))) {
				if (toCtrl.options[j].value =3D=3D fromItem.options[i].value) {
					itemexists =3D true;
					alert(fromItem.options[i].value + " found!");
				}
				j++;
			}
			if (!(itemexists)) {
				// add the item
				nextitem =3D toCtrl.options.length;
				toCtrl.options[nextitem] =3D new Option(fromItem.options[i].text);
				toCtrl.options[nextitem].value =3D fromItem.options[i].value;
			}
		}
	}
}


function removeItems(fromItem) {
	var i =3D 0;
	var j;
	var k =3D 0;

	while (i &lt; (fromItem.options.length - k)) {
		if (fromItem.options[i].selected) {
			// remove the item
			for (j =3D i; j &lt; (fromItem.options.length - 1); j++) {
				fromItem.options[j].text =3D fromItem.options[j+1].text;
				fromItem.options[j].value =3D fromItem.options[j+1].value;
				fromItem.options[j].selected =3D fromItem.options[j+1].selected;
			}
			k++;
		} else {
			i++;
		}
	}
	for (i =3D 0; i &lt; k; i++) {
		fromItem.options[fromItem.options.length - 1] =3D null;
	}
}
//--&gt;
&lt;/SCRIPT&gt;


Now add the following as part of the HTML Page


&lt;FORM NAME=3D"main" ACTION=3D"code_move_selectlist.htm" =
METHOD=3D"GET"&gt;
&lt;INPUT TYPE=3D"HIDDEN" NAME=3D"Avail"&gt;
&lt;INPUT TYPE=3D"HIDDEN" NAME=3D"Sel"&gt;

&lt;TABLE BORDER=3D0 CELLPADDING=3D0 CELLSPACING=3D0&gt;
&lt;TR&gt;
&lt;TD VALIGN=3D"TOP"&gt;
	List 1&lt;BR&gt;
	&lt;SELECT MULTIPLE NAME=3D"AvailItems" SIZE=3D"5"&gt;
		&lt;OPTION VALUE=3D"1"&gt;Item 1&lt;/OPTION&gt;
		&lt;OPTION VALUE=3D"2"&gt;Item 2&lt;/OPTION&gt;
	&lt;/SELECT&gt;
&lt;/TD&gt;
&lt;TD ALIGN=3D"CENTER"&gt;
&lt;INPUT TYPE=3D"BUTTON" NAME=3D"AddBtn" VALUE=3D"      &gt;&gt;      " =
OnClick=3D"addItems(this.form.AvailItems, this.form.SelItems); =
removeItems(this.form.AvailItems);"&gt; &lt;BR&gt;
&lt;BR&gt;
&lt;INPUT TYPE=3D"BUTTON" NAME=3D"RemoveBtn" VALUE=3D"      &lt;&lt;     =
 " OnClick=3D"addItems(this.form.SelItems, this.form.AvailItems); =
removeItems(this.form.SelItems);"&gt; &lt;BR&gt;
&lt;/TD&gt;
&lt;TD VALIGN=3D"TOP"&gt;
	List 2&lt;BR&gt;
	&lt;SELECT MULTIPLE NAME=3D"SelItems" SIZE=3D"5"&gt;
		&lt;OPTION VALUE=3D"3"&gt;Item 3&lt;/OPTION&gt;
		&lt;OPTION VALUE=3D"4"&gt;Item 4&lt;/OPTION&gt;
	&lt;/SELECT&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;

&lt;BR&gt;
&lt;BR&gt;
&lt;INPUT TYPE=3D"BUTTON" VALUE=3D"Submit" =
OnClick=3D"this.form.Avail.value =3D =
getSelectedString(this.form.AvailItems); this.form.Sel.value =3D =
getSelectedString(this.form.SelItems); this.form.submit();"&gt;
&lt;/FORM&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DMoveWindow>MoveWindow</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DMoveWindow rows=3D4 cols=3D46>Moving the Window

&lt;SCRIPT language=3DJavaScript1.2&gt;
&lt;!-- Begin

function rattle() {

x=3D4;
y=3D12;


if (self.moveBy) {
for (i =3D x; i &gt; 0; i--)
{
for (j =3D y; j &gt; 0; j--)
{
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
         }
      }
   }
}
// End --&gt;
&lt;/SCRIPT&gt;

------------- HTML version -------------------

&lt;HTML&gt;&lt;HEAD&gt;
&lt;TITLE&gt;Shake iit&lt;/TITLE&gt;
&lt;SCRIPT language=3DJavaScript1.2&gt;
&lt;!-- Begin

function rattle() {

x=3D4;
y=3D12;


if (self.moveBy) {
for (i =3D x; i &gt; 0; i--)
{
for (j =3D y; j &gt; 0; j--)
{
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
         }
      }
   }
}
// End --&gt;
&lt;/SCRIPT&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;P&gt;
&lt;FORM&gt;&lt;P&gt;&lt;INPUT onclick=3Drattle(this.form) type=3Dbutton =
value=3D"Shake it"&gt;=20
&lt;/FORM&gt;
&lt;body&gt;&lt;/HTML&gt;




</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DMultilinemessage>Multilinemessage</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DMultilinemessage rows=3D4 cols=3D46>=20
How to show line breaks in Message Boxes
=20
say you need to add line breaks to dialog boxes displayed using the =
alert(), prompt(), or confirm() methods.
Just add the ' \n ' Special Character



&lt;HTML&gt;
&lt;HEAD&gt;
&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function showPrompt() {
	var myString =3D "I span across lines. \n This is message one. \n This =
is message two.";
	alert(myString);
}
// --&gt;
&lt;/SCRIPT&gt;
&lt;/HEAD&gt;

In the body tag place the following code

&lt;BODY&gt;
&lt;A HREF=3D"javascript:showPrompt()"&gt;Click Here&lt;/A&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DOpenclosechild>Openclosechild</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DOpenclosechild rows=3D4 cols=3D46>=20
Open and Close Child Window
Call the onLoad and onUnload events in the BODY tag


&lt;BODY onLoad=3D"openChild()" onUnload=3D"closeChild()"&gt;



The openChild function that gets called when the document loads
This opens the child window


function openChild() {
win =3D window.open("mychild.html", "cld", "height=3D200,width=3D400");
}



The closeChild function that closes the Child window if still open


function closeChild() {
if (win &amp;&amp; win.open &amp;&amp; !win.closed) win.close();
}



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DOpenwindow>Openwindow</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DOpenwindow rows=3D4 cols=3D46>=20
Open a Window
=20
Define a Small funtion to pop up a window
Then call the function froma Link or Button Click



&lt;script language=3D"JavaScript"&gt;

&lt;!--
var popup =3D null;
var over =3D "Launch Pop-up Navigator";
function popwin()
{
window.open('test.htm', 'popupnav', =
'width=3D200,height=3D170,resizable=3D1,scrollbars=3Dauto');
}
// --&gt;
&lt;/script&gt;





Click on the link below to open a New Window


&lt;a href=3D"javascript:popwin()"&gt;Open Window&lt;/a&gt;



Click on the button below to open a New Window


&lt;FORM&gt;
&lt;INPUT TYPE=3D'button' VALUE=3D'Open Window' " =
onClick=3D'popwin();'"&gt;&lt;/FORM&gt;
&lt;/CENTER&gt;
&lt;/FORM&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DPagefooter>Pagefooter</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DPagefooter rows=3D4 cols=3D46>=20
How to write a common footer for the HTML Page

Copy and paste the following code in a file and name it as footer.js


&lt;!-- Begin
document.write('&lt;center&gt;');
document.write('| &lt;a href=3D"index.html"&gt;Home&lt;/a&gt; ');
document.write('| &lt;a href=3D"feedback.htm"&gt;Feedback&lt;/a&gt; ');
document.write('| &lt;a href=3D"contact.htm"&gt;Contact&lt;/a&gt; ');
document.write('|&lt;/center&gt;');
// End --&gt;

Now copy the following code at the bottom of the HTML page where you =
want the footer

&lt;SCRIPT LANGUAGE=3D"JavaScript" src=3D"footer.js"&gt;&lt;/script&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DPagetimeout>Pagetimeout</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DPagetimeout rows=3D4 cols=3D46>=20
Use Timeout to go to another page or close a window
=20
Timeout  feature to automatically go to a differnet HTML page within a =
set time


&lt;body =
onLoad=3D"setTimeout('window.location.href=3D\"http://www.irt.org/\"',100=
00)"&gt;



Timeout feature to delay when submitting a form before closing the =
window
THis closes a window after a specified time


&lt;form onSubmit=3D"setTimeout('window.close',5000)"&gt;
&lt;input type=3D"submit" value=3D"Close Window"&gt;
&lt;/form&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DPasswordcheck>Passwordcheck</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DPasswordcheck rows=3D4 cols=3D46>&lt;script =
Language=3D"JavaScript"&gt;
&lt;!--
function Validator(theForm)
{

  if (theForm.password.value =3D=3D "")
  {
    alert("Please enter a value for the \"Password\" field.");
    theForm.password.focus();
    return (false);
  }

  var checkOK =3D =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=83=8A=8C=8E=9A=9C=9E=
=9F=C0=C1=C2=C3=C4=C5=C6=C7=C8=C9=CA=CB=CC=CD=CE=CF=D0=D1=D2=D3=D4=D5=D6=D8=
=D9=DA=DB=DC=DD=DE=DF=E0=E1=E2=E3=E4=E5=E6=E7=E8=E9=EA=EB=EC=ED=EE=EF=F0=F1=
=F2=F3=F4=F5=F6=F8=F9=FA=FB=FC=FD=FE=FF0123456789-";
  var checkStr =3D theForm.password.value;
  var allValid =3D true;
  for (i =3D 0;  i &lt; checkStr.length;  i++)
  {
    ch =3D checkStr.charAt(i);
    for (j =3D 0;  j &lt; checkOK.length;  j++)
      if (ch =3D=3D checkOK.charAt(j))
        break;
    if (j =3D=3D checkOK.length)
    {
      allValid =3D false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter and digit characters in the =
\"Password\" field.");
    theForm.password.focus();
    return (false);
  }

  if (theForm.chkpwd.value =3D=3D "")
  {
    alert("Please enter a value for the \"Re-entry\" field.");
    theForm.chkpwd.focus();
    return (false);
  }

  if (theForm.chkpwd.value.length &lt; 3)
  {
    alert("Please enter at least 3 characters in the \"Re-entry\" =
field.");
    theForm.chkpwd.focus();
    return (false);
  }

  var checkOK =3D =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=83=8A=8C=8E=9A=9C=9E=
=9F=C0=C1=C2=C3=C4=C5=C6=C7=C8=C9=CA=CB=CC=CD=CE=CF=D0=D1=D2=D3=D4=D5=D6=D8=
=D9=DA=DB=DC=DD=DE=DF=E0=E1=E2=E3=E4=E5=E6=E7=E8=E9=EA=EB=EC=ED=EE=EF=F0=F1=
=F2=F3=F4=F5=F6=F8=F9=FA=FB=FC=FD=FE=FF0123456789-";
  var checkStr =3D theForm.chkpwd.value;
  var allValid =3D true;
  for (i =3D 0;  i &lt; checkStr.length;  i++)
  {
    ch =3D checkStr.charAt(i);
    for (j =3D 0;  j &lt; checkOK.length;  j++)
      if (ch =3D=3D checkOK.charAt(j))
        break;
    if (j =3D=3D checkOK.length)
    {
      allValid =3D false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter and digit characters in the =
\"Re-entry\" field.");
    theForm.chkpwd.focus();
    return (false);
  }

  if ( theForm.chkpwd.value !=3D theForm.password.value)
  {
    alert("Passwords do not match.");
    theForm.chkpwd.focus();
    return (false);
  }


  return (true);
}
--&gt;
&lt;/script&gt;


&lt;form METHOD=3D"POST" NAME=3D"register" ACTION=3D"register.asp"  =
onsubmit=3D"return Validator(this)" &gt;

Choose Password: &lt;INPUT TYPE=3D"password" NAME=3D"password" =
SIZE=3D"30" MAXLENGTH=3D"40"  value=3D"" &gt;

Confirm Password: &lt;INPUT TYPE=3D"password" NAME=3D"chkpwd" =
SIZE=3D"30" MAXLENGTH=3D"40"  value=3D"" &gt;


&lt;INPUT TYPE=3D"submit" NAME=3D"Register" VALUE=3D"Register" &gt;

&lt;/form&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DPoponload>Poponload</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DPoponload rows=3D4 cols=3D46>Pop Message on loading the page
=20
This can simple be done by calling alert on the body onLoad function




&lt;body onLoad=3D"alert('You are welcome to my page!')" =
onUnload=3D"alert('Please visit me again !')"&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DPressKeylauncher>PressKeylauncher</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DPressKeylauncher rows=3D4 cols=3D46>=20
Open  web page with the touch of a key board
Place the following script in the header portion of the webpage


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
var key =3D new Array();   // Define key launcher pages here
key['w'] =3D "http://www.generalhosting.net/";
key['d'] =3D "http://www.yahoo.com/";
key['c'] =3D "http://www.altavista.com/";
key['b'] =3D "http://www.excite.com/";

function getKey(keyStroke) {
isNetscape=3D(document.layers);
eventChooser =3D (isNetscape) ? keyStroke.which : event.keyCode;
which =3D String.fromCharCode(eventChooser).toLowerCase();
for (var i in key) if (which =3D=3D i) window.location =3D key[i];
}
document.onkeypress =3D getKey;
//   End --&gt;
&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DPrintpage>Printpage</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DPrintpage rows=3D4 cols=3D46>=20
Printing a Page or Document
=20
Printing the document
This uses the 'window.print' property


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
if (window.print) {
document.write('&lt;form&gt;&lt;input type=3Dbutton name=3Dprint =
value=3D"Print this page" =
onClick=3D"javascript:window.print()"&gt;&lt;/form&gt;');
}
// End --&gt;
&lt;/script&gt;

Action :=20



if (window.print) {
document.write('');
}
// End --&gt;





In a frame based HTML page, if you wish to print just the middle frame


&lt;form&gt;
&lt;input type=3D"button" value=3D"Print" onClick=3D"if (document.print) =
top.frames[1].document.print()"&gt;
&lt;/form&gt;





Printing 4 seperate frames at one go=20


&lt;html&gt;
&lt;head&gt;
&lt;script language=3D"JavaScript"&gt;
&lt;!--
function printAll() {
for (var i=3D0;i&lt;frames.length;i++)
if (window.print)
frames[i].print();
}
//--&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;frameset onLoad=3D"printAll()" rows=3D"*,*,*"&gt;
&lt;frame src=3D"apage.htm"&gt;
&lt;frame src=3D"anotherpage.htm"&gt;
&lt;frame src=3D"yetanotherpage.htm"&gt;
&lt;/frameset&gt;
&lt;/html&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DPromptonload>Promptonload</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DPromptonload rows=3D4 cols=3D46>=20
Prompt User for his name

Use the window.promt function to get the user name
Then display the name in the HTML Page



&lt;body&gt;
&lt;script language=3D"JavaScript"&gt;
username=3Dwindow.prompt("What is your name?","")
&lt;/script&gt;
&lt;center&gt;
&lt;font size=3D6 color=3D'black'&gt;Welcome to the =
Page,&lt;/font&gt;&lt;/center&gt;
&lt;script language=3D"JavaScript"&gt;
document.write("&lt;center&gt;&lt;font size=3D4 =
color=3D'red'&gt;"+username+"&lt;/font&gt;&lt;/center&gt;")
&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DProtectimage>Protectimage</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DProtectimage rows=3D4 cols=3D46>Alert on Mouse Click=20

Place the following script in the header portion of the page=20

&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
function protect(e) {
alert("Sorry, you don't have permission to right-click.");
return false;
}

function trap() {
if(document.images)
for(i=3D0;i&lt;document.images.length;i++)
document.images[i].onmousedown =3D protect;
}
// End --&gt;
&lt;/SCRIPT&gt;


Now in the body tag place the following command
And if the user clicks on the web page he is alerted with a message.


&lt;BODY OnLoad=3D"trap()"&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DRadiobutton>Radiobutton</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DRadiobutton rows=3D4 cols=3D46>How to find which radio button is =
checked

Write a small function to be called when an element is checked

&lt;SCRIPT LANGUAGE=3D"Javascript"&gt;
&lt;!--
function test_checked(form) {
var msg
msg =3D""
for (var i =3D 0; i &lt; 3; i++) {
msg +=3D myform.myrad[i].value
if (myform.myrad[i].checked)
msg +=3D ' is CHECKED'
msg +=3D "\n"
}
alert(msg)
}
// --&gt;
&lt;/SCRIPT&gt;




HTML Code to generate the radio buttons and call the function


&lt;FORM NAME=3D"myform"&gt;
&lt;INPUT TYPE=3D"radio" NAME=3D"myrad" Value=3D"A" onClick =3D ""&gt;A
&lt;INPUT TYPE=3D"radio" NAME=3D"myrad" Value=3D"B" onClick =3D ""&gt;B
&lt;INPUT TYPE=3D"radio" NAME=3D"myrad" Value=3D"C" onClick =3D ""&gt;C
&lt;INPUT TYPE=3D"button" NAME=3D"button" Value=3D"Test Order" =
onClick=3D"test_checked(this.form)"&gt;
&lt;/FORM&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><B><A=20
                              name=3DRandomnumber>Random=20
                              number</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DRandomnumber rows=3D4 cols=3D46>Generate a random number=20
=20
Write the following in the header portion of the HTML file
This is a small function to generate random numbers between a given min =
and max number range


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
function getRandomNum(lbound, ubound) {
return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}
//   End --&gt;
&lt;/script&gt;

 Now to show the random number generated whereever you wish on the page =
use the following code

&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
document.write("Random number in [1, 100] is &lt;B&gt;" + =
getRandomNum(1,100) + "&lt;/B&gt;");
//   End --&gt;
&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DRandomquote>Randomquote</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DRandomquote rows=3D4 cols=3D46>=20
Write the following in the header portion of the HTML file

&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;

&lt;!-- This script and many more are available free online at --&gt;
&lt;!-- The JavaScript Source!! http://javascript.internet.com --&gt;

&lt;!-- Begin
var totalquotes =3D 5
var quote =3D new Array( totalquotes+1)
quote[0]=3D"I am quote 0"
quote[1]=3D"I am quote 2"
quote[2]=3D"I am quote 3"
quote[3]=3D"I am quote 4"
quote[4]=3D"I am quote 5"
quote[5]=3D"I am quote 6"

function myRan(){
var i =3D -1
while (i &lt; 0 || i &gt;   totalquotes || isNaN(i)){
i =3D parseInt(Math.random()*( totalquotes+1))
}
return i
}
quo =3D myRan()
quox =3D quote[quo]
document.write(quox)
// End --&gt;
&lt;/SCRIPT&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DRedirectbrowsertype>Redirectbrowsertype</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DRedirectbrowsertype rows=3D4 cols=3D46>=20
Redirecting User depending on Browser Type
=20

This is a simple javascript that first detects the users browser type
Then redirects the user to another page depending on the browser type



&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;&lt;!--
if (navigator.appName =3D=3D 'Netscape')
location.href =3D 'netscape.html';
else {
if (navigator.appName =3D=3D 'Microsoft Internet Explorer')
location.href =3D 'explorer.html';
else if (navigator.appName =3D=3D '*')
location.href =3D 'other.html';
}
//--&gt;&lt;/SCRIPT&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DRefreshbuton>Refreshbuton</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DRefreshbuton rows=3D4 cols=3D46>Reload the page on Button Click=20

There are multiple functions to get the effect
You could use either

location.href.reload(true);

OR

location.href =3D location.href;

OR

history.go(0);





The Whole code . JavaScript Function and the HTML Code


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function refme()
{      history.go(0);
}
//--&gt;
&lt;/SCRIPT&gt;

&lt;form&gt;
&lt;input type=3D"button" bane=3D"ref" value=3D"Refresh" =
onClick=3D"refme()"&gt;
&lt;/form&gt;






Another simple way of doing the above would be


&lt;form&gt;
&lt;input type=3D"button" value=3D"Click me to Refresh" =
onClick=3D"history.go(0)"&gt;
&lt;/form&gt;






What in case of frames ??
Use JavaScript to refresh another frame every 10 seconds:


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function refreshFrame() {
parent.otherFrameName.location.href =3D 'http://www.somewhere.com/';
setTimeout('refreshFrame()',10000);}refreshFrame();
//--&gt;

&lt;/SCRIPT&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DRefreshpage>Refreshpage</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DRefreshpage rows=3D4 cols=3D46>Reload the page on Button Click=20

There are multiple functions to get the effect
You could use either

location.href.reload(true);

OR

location.href =3D location.href;

OR

history.go(0);





The Whole code . JavaScript Function and the HTML Code


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function refme()
{      history.go(0);
}
//--&gt;
&lt;/SCRIPT&gt;

&lt;form&gt;
&lt;input type=3D"button" bane=3D"ref" value=3D"Refresh" =
onClick=3D"refme()"&gt;
&lt;/form&gt;






Another simple way of doing the above would be


&lt;form&gt;
&lt;input type=3D"button" value=3D"Click me to Refresh" =
onClick=3D"history.go(0)"&gt;
&lt;/form&gt;






What in case of frames ??
Use JavaScript to refresh another frame every 10 seconds:


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function refreshFrame() {
parent.otherFrameName.location.href =3D 'http://www.somewhere.com/';
setTimeout('refreshFrame()',10000);}refreshFrame();
//--&gt;

&lt;/SCRIPT&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DRgbhex>Rgbhex</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DRgbhex rows=3D4 cols=3D46>=20
Convert RGB Colors to HexaDecimal Colors
=20
First Write a Small Conversion Code


&lt;script language=3D"JavaScript"&gt;
&lt;!--
var hexChars =3D "0123456789ABCDEF";


function ConvertRGBH () {
var red    =3D document.myform.rbox.value;
var green =3D document.myform.gbox.value;
var blue   =3D document.myform.bbox.value;

if ((red &gt;255) || (red &lt; 0) || (green&lt;0) || (green&gt;255) || =
(blue&lt;0) || (blue&gt;255)){
alert ("Please enter digits between 0 and 255");
return false;
}

getr =3D Dec2Hex(red);
getg =3D Dec2Hex(green);
getb =3D Dec2Hex(blue);
document.myform.hexbox.value =3D "#" +   getr + getg + getb;
return false;
}


function Dec2Hex (Dec) {
var a =3D Dec % 16;
var b =3D (Dec - a)/16;
hex =3D "" + hexChars.charAt(b) + hexChars.charAt(a);
return hex;
}



//--&gt;
&lt;/script&gt;



HTML Code to generate the form elements and call the convert script


&lt;FORM name=3D"myform"&gt;
R &lt;input type=3D"text" name=3D"rbox" value=3D"" maxlength=3D3&gt; =
&lt;BR&gt;
G &lt;input type=3D"text" name=3D"gbox" value=3D"" maxlength=3D3&gt; =
&lt;BR&gt;
B &lt;input type=3D"text" name=3D"bbox" value=3D"" maxlength=3D3&gt; =
&lt;BR&gt;
HEX &lt;input type=3D"text" name=3D"hexbox" value=3D"" maxlength=3D3&gt; =
&lt;BR&gt;
&lt;input type=3D"submit" name=3D"Convert" value=3D"Convert" =
onClick=3D"return ConvertRGBH();"&gt;
&lt;/FORM&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DRotatetimeout>Rotatetimeout</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DRotatetimeout rows=3D4 cols=3D46>=20
Use Timeout to rotate through a set of HTML Pages
=20
Cycle through several HTML files with a timeout set between each page
Place this script on each html page



&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function loadOne() {
window.frames[0].location.href =3D 'page1.html';
setTimeout("loadTwo()",5000);
}

function loadTwo() {
window.frames[0].location.href =3D 'page2.html';
setTimeout("loadThree()",5000);
}

function loadThree() {
window.frames[0].location.href =3D 'page3.html';
}

setTimeout("loadOne()",5000);
//--&gt;
&lt;/SCRIPT&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DSlideshow>Slideshow</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSlideshow rows=3D4 cols=3D46>=20
The image and message Slide Show

Place the following script in the header portion of the page


		&lt;script type=3D"text/javascript" language=3D"javascript"&gt;
		&lt;!-- Hide code from older browsers
		myMsg =3D new Array(
			"This is Message 0",
			"This is Message 1",
			"This is Message 2",
			"This is Message 3",
			"This is Message 4",
			"This is Message 5",
			"This is Message 6",
			"This is Message 7",
			"This is Message 8",
			"This is Message 9",
			"This is Message 10"
		)

		thisImg =3D 0
		imgCt =3D myMsg.length
	=09
		function newSlide(direction) {
			if (document.images) {
				thisImg =3D thisImg + direction
				if (thisImg &lt; 0) {
					thisImg =3D imgCt-1
				}
				if (thisImg =3D=3D imgCt) {
					thisImg =3D 0
				}
				document.slideshow.src =3D "test" + thisImg + ".gif"
				document.imgForm.imgText.value =3D myMsg[thisImg]
			}
		}
		document.imgForm.imgText.value =3D myMsg[thisImg]	=09
		// Stop hiding code --&gt;
		&lt;/script&gt;



Now to show the slide show place the following code in the HTML page =
under the BODY Section
Here its assumes that the images are prefixed as 'test' and suffixed =
with a counter.
For e.g., test1.gif, test2.gif, test3.gif, test4.gif, test5.gif,.... and =
so on.


		&lt;h1&gt;Ravi's Slide Show &lt;/h1&gt;
		&lt;B&gt;&lt;a =
href=3D"javascript:newSlide(-1)"&gt;Previous&lt;/a&gt;&lt;/B&gt;         =
=20
		&lt;B&gt;&lt;a =
href=3D"javascript:newSlide(1)"&gt;Next&lt;/a&gt;&lt;/B&gt;&lt;BR&gt;&lt;=
BR&gt;=09
		&lt;img height=3D"50" width=3D"100" src=3D"test0.gif" alt=3D"My =
message" name=3D"slideshow" align=3D"left"&gt;&lt;BR&gt;&lt;BR&gt;
		&lt;form name=3D"imgForm" action=3D"" align=3D"left"&gt;
			&lt;textarea name=3D"imgText" rows=3D"9" cols=3D"30" =
readonly&gt;</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DSpecialchars>Specialchars</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSpecialchars rows=3D4 cols=3D46>=20
Writing the Special Characters on the HTML page
=20
This is a pretty simple and cool script


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
for(var count=3D33; count&lt;255; count++) {
	document.write('&lt;center&gt;&lt;TABLE border=3D0&gt;&lt;TR&gt;&lt;TD =
ALIGN=3Dleft&gt;' + count);
	document.write('&lt;/TD&gt;&lt;TD ALIGN=3Dcenter&gt;=3D =
&lt;/TD&gt;&lt;TD ALIGN=3Dright&gt;' + '&amp;' + '#');
	document.write(count + =
';&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/center&gt;');
}
// End --&gt;
&lt;/script&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DSpellCheck>SpellCheck</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSpellCheck rows=3D4 cols=3D46>&lt;html&gt;
&lt;header&gt;
&lt;script&gt;

function spellchck(wrd){
var oWrd =3D new ActiveXObject("Word.Application"); // create an =
instance of MS Word
window.focus(); // to return the focus from MS Word
try{
oWrd.visible =3D false; // don't show Word's window
if(!oWrd.checkSpelling(wrd)){
with(oWrd){
Documents.Add();
Documents(1).Activate();
var oSuggestions =3D GetSpellingSuggestions(wrd);=20

if (oSuggestions.Count =3D=3D 0) {
alert("no suggestions");=20
oWrd.Documents(1).Close();
oWrd.Quit();
return "";
}
var strList =3D "";
for(var i =3D 1; i &lt;=3D oSuggestions.Count; i++) strList +=3D =
oSuggestions(i).Name +",";

strList =3D strList.substring(0, strList.length -1); // to remove the =
last ","
alert (strList);
}
}
else {
alert("correct");
return "";
}

}
catch(err){
alert (err.description);
oWrd.Documents(1).Close();
oWrd.Quit();
return "";
}
oWrd.Documents(1).Close();
oWrd.Quit();
return strList;
}
&lt;/script&gt;
&lt;/header&gt;
&lt;body&gt;
&lt;form onSubmit=3D'javascript:spellchck(test.value);return false;'&gt;
&lt;input name=3D"test"&gt;
&lt;input type=3Dsubmit value=3Dsubmit &gt;
&lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DStatusbarclick>Statusbarclick</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStatusbarclick rows=3D4 cols=3D46>=20
Show message in status Bar on Mouse click
=20
A simple script to write something to the status bar
And erase the same on ckicking another



&lt;script language=3D"JavaScript"&gt;
&lt;!-- hide
function statbar(txt) {
window.status =3D txt;}
// --&gt;
&lt;/script&gt;

The HTML script to create the buttons and call the scripts

&lt;form&gt;
&lt;input type=3D"button" name=3D"look" value=3D"Write in Statusbar"   =
onClick=3D"statbar('Hey, you just wrote me in the Statusbar!');"&gt;
&lt;input type=3D"button" name=3D"erase" value=3D"Erase from statusbar"  =
     onClick=3D"statbar('');"&gt;
&lt;/form&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DStatusbarfocus>Statusbarfocus</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStatusbarfocus rows=3D4 cols=3D46>Show message in Status Bar on =
Focus

First lets create two functions for an element in focus and out of focus

&lt;script language=3D"JavaScript"&gt;

&lt;!--

function infocus(text) {
window.status =3D text;
}

function outfocus() {
window.status =3D "";
}

// --&gt;
&lt;/script&gt;






HTML Code to show the text boxes.



&lt;form&gt;
Text1:
&lt;input type=3D"text" name=3D"Text1" value=3D"" =
onFocus=3D"infocus('Your focus is on textbox 1')" =
onBlur=3D"outfocus()"&gt;

Text2:
&lt;input type=3D"text" name=3D"Text2" value=3D"" =
onFocus=3D"infocus('Your focus is on textbox 2')" =
onBlur=3D"outfocus()"&gt;
&lt;/form&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DStatusbarmouseover>Statusbarmouseover</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStatusbarmouseover rows=3D4 cols=3D46>Show message in Status bar =
on mouse over
=20

This is a simple script that can be embedded in the anchor tag itself.




	&lt;a href=3D"goto_test.asp"
	onMouseOver=3D"window.status=3D'Your Mouse is over the link!'; return =
true;"
	onMouseOut=3D"window.status=3D'';"&gt;
	Bring Your Mouse Here&lt;/a&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DStatusbarscroll>Statusbarscroll</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStatusbarscroll rows=3D4 cols=3D46>=20
Show a scrolling message in Status Bar
=20
This is a simple script that can be embedded in the anchor tag itself.


&lt;script language=3D"JavaScript"&gt;
&lt;!-- hide

var scrtxt =3D "Hey buddy, Look at me, I am scrolling" +
"And u know what ? " +
"U made me scroll !";
var length =3D scrtxt.length;
var width =3D 100;
var pos =3D -(width + 2);

function scroll() {
pos++;
var scroller =3D "";
if (pos =3D=3D length) {
pos =3D -(width + 2);
}

if (pos &lt; 0) {
for (var i =3D 1; i &lt;=3D Math.abs(pos); i++) {
scroller =3D scroller+" ";}
scroller =3D scroller + scrtxt.substring(0, width - i + 1);
}
else {
scroller =3D scroller + scrtxt.substring(pos, width + pos);
}

window.status =3D scroller;
setTimeout("scroll()", 100);
}

// --&gt;
&lt;/script&gt;


Now to call the script above on page load, call the function in the body =
TAG as shown below.
&lt;body onLoad=3D"scroll()"&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DStringasciichar>Stringasciichar</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStringasciichar rows=3D4 cols=3D46>ASCII to String=20

Use the String.fromCharCode(i) function


&lt;script language=3D"JavaScript"&gt;
for(i=3D97;i&lt;123;i++){
document.write(String.fromCharCode(i));
document.write("&lt;BR&gt;");
}
&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DStringInStr>StringInStr</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStringInStr rows=3D4 cols=3D46>The JavaScript equivalent of the =
InStr function in ASP,=20
a function that will indicated whether a character or=20
string pattern appears in the string passed to the function.


strObj.indexOf(subString[, startIndex]);=20


alert("7up".indexOf('u'));

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DStringinteger>Stringinteger</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStringinteger rows=3D4 cols=3D46>Convert String to Number
=20
Though JavaScript is an untyped language i.e.,  you don't have to =
explicitly declare your variables to be a specific type, but still at =
times you might need to explicitly convert from a string to a number or =
vice-versa

x =3D "5"
y =3D parseInt(x);


The y returns 5 as integer.


Check out parseFloat() . Used to convert decimals/floats



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DStringreverse>Stringreverse</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStringreverse rows=3D4 cols=3D46>Reverse a String
=20
Write a small function to reverse a String
Then call it from a HTML form element


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function reverse() {
var value =3D document.myForm.myText.value;
for (var text =3D '',i=3Dvalue.length-1;i&gt;-1;i=3Di-1)
text +=3D value.charAt(i);
document.myForm.myText.value =3D text;
}
//--&gt;
&lt;/SCRIPT&gt;



HTML code to call the reverse function


&lt;FORM NAME=3D"myForm"&gt;
&lt;INPUT TYPE=3D"TEXT" NAME=3D"myText"&gt;
&lt;INPUT TYPE=3D"BUTTON" onClick=3D"reverse()" VALUE=3D"Reverse   =
Me"&gt;
&lt;/FORM&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DStripspaces>Stripspaces</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStripspaces rows=3D4 cols=3D46>=20
Remove/Strip Leading and Trailing Spaces

Write a small function to reverse a String
Then call it from a HTML form element



Strip leading and Trailing Blanks off a filed
&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function stripSpaces() {
x =3D document.myForm.myText.value;
while (x.substring(0,1) =3D=3D ' ') x =3D x.substring(1);
while (x.substring(x.length-1,x.length) =3D=3D ' ') x =3D =
x.substring(0,x.length-1);
document.myForm.myText.value =3D x
}
//--&gt;
&lt;/SCRIPT&gt;




HTML code to call the function to trim the Spaces


&lt;FORM NAME=3D"myForm"&gt;
&lt;INPUT TYPE=3D"TEXT" NAME=3D"myText"&gt;
&lt;INPUT TYPE=3D"BUTTON" VALUE=3D"Strip White Space" =
onClick=3D"stripSpaces()"&gt;
&lt;/FORM&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DStripzeros>Stripzeros</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStripzeros rows=3D4 cols=3D46>Strip Leading Zeros

Define a function to strip leading zeroes


&lt;script language=3D"JavaScript"&gt;
&lt;!--

var num,newTerm
function stripZeros(num){
	while (num.charAt(0) =3D=3D "0") {
		newTerm =3D num.substring(1, num.length);
		num =3D newTerm;
	}
	if (num =3D=3D "")
		num =3D "0";
	return num;
}


function stripNow () {
form.stripbox.value =3D stripZeros(form.stripbox.value);
}

//---&gt;
&lt;/script&gt;



HTML Code to call the function to strip the leadinf zeros



&lt;FORM name=3D"form" method=3D"post"&gt;
&lt;INPUT TYPE=3Dbutton NAME=3Dbutton1 VALUE=3D"Strip the Zeros" =
onClick=3D"stripNow()"&gt;
&lt;INPUT TYPE=3Dtext NAME=3D"stripbox" SIZE=3D12 MAXLENGTH=3D12 =
onFocus=3D"this.select()"&gt;
&lt;/FORM&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DTextboxonchange>Textboxonchange</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DTextboxonchange rows=3D4 cols=3D46>=20
Pop Message when text in box changes
=20
Create a small function to alert a message as follows
and then call the onChange function of text box.



&lt;script language=3D"JavaScript"&gt;

&lt;!--

function myChange(myval) {
alert("The Current value in the text box is " + myval);
}

// --&gt;
&lt;/script&gt;



HTML Code to show the text box.


&lt;form&gt;
&lt;input type=3D"text" onChange=3D" myChange(this.value)"&gt;
&lt;/form&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DTimebasedmessage>Timebasedmessage</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DTimebasedmessage rows=3D4 cols=3D46>Show message or Image =
depending on the time
=20
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
function showTimeMsg() {
	now =3D new Date();
	nowHour =3D now.getHours();
	if ((nowHour &gt; 7) &amp;&amp; (nowHour &lt; 19)) {=09
		// show circles between 8am and 6pm
		document.write("Good Day");
	} else {
		// show squares at all other times
		document.write("Take Rest Now");
	}
}
&lt;/SCRIPT&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;

&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;showTimeMsg()&lt;/SCRIPT&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;



Now if you wish to show image instead of a message then replace the =
mesaage with image TAGS as follows



&lt;HTML&gt;
&lt;HEAD&gt;
&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
function showTimeMsg() {
	now =3D new Date();
	nowHour =3D now.getHours();
	if ((nowHour &gt; 7) &amp;&amp; (nowHour &lt; 19)) {=09
		// show day.gif between 8am and 6pm
		document.write("&lt;IMG SRC=3D\"day.gif\"&gt;");
	} else {
		// show night.gif at all other times
		document.write("&lt;IMG SRC=3D\"night.gif\"&gt;");
	}
}
&lt;/SCRIPT&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;

&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;showTimeMsg()&lt;/SCRIPT&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DTimeralert>Timeralert</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DTimeralert rows=3D4 cols=3D46>Show Alert Message after some time
=20
Define a small function to show date
Then call that function.

&lt;script language=3D"JavaScript"&gt;
&lt;!-- hide

function timer() {
setTimeout("alert('I am popping after 2 seconds you clicked the =
button!')", 2000);
}

// --&gt;
&lt;/script&gt;



Code to show the button to be clicked to pop up a message


&lt;form&gt;
&lt;input type=3D"button" value=3D"Click me " onClick=3D"timer()"&gt;
&lt;/form&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DTimebased>Timebased</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DTimebased rows=3D4 cols=3D46>Show message based on Time of Day

Just strip the hours from time and call the respective messages

&lt;script language=3D"JavaScript"&gt;
&lt;!--
day =3D new Date()
hr =3D day.getHours()
if (hr =3D=3D1)
document.write("Good morning! But take some rest. Its 1AM")
if (hr =3D=3D2)
document.write("Good morning! But I said take rest, Its 2 AM")
if (hr =3D=3D3)
document.write("Hey, U never Listen, Huh ! it's 3AM")
if (hr =3D=3D4)
document.write("Do what you want. Its 4AM ")
if (hr =3D=3D5)
document.write("Whoa 5AM ! Its about for daylight. I am sure you would =
not be up for the sunrise")
if (hr =3D=3D6)
document.write("Hey, Its the 6AM Sunrise. Enjoy the new day")
if ((hr =3D=3D 6) || (hr =3D=3D7) || (hr =3D=3D8) || (hr =3D=3D 9) || =
(hr =3D=3D10))
document.write("A Very Good Morning! Its " + hr + " AM")
if (hr =3D=3D11)
document.write("Its 11 AM. Plan for Lunch")
if (hr =3D=3D12)
document.write("NOON! Beat the crowd and rush to the cafeteria")
if (hr =3D=3D14)
document.write("It's 2PM. Have your lunch if u haven't yet !")
if ((hr=3D=3D15) || (hr=3D=3D16) || (hr=3D=3D13))
document.write("A very Good Afternoon!")
if ((hr=3D=3D17) || (hr=3D=3D18) || (hr=3D=3D19) || (hr=3D=3D20) || =
(hr=3D=3D21) || (hr=3D=3D22))
document.write("Good Evening ! Play some games")
if (hr=3D=3D23)
document.write("It's almost midnight...Be a good tomy and go to sleep")
if (hr=3D=3D0)
document.write("It's midnight... do you ever sleep?")
//---&gt;
&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DTimecount>Timecount</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DTimecount rows=3D4 cols=3D46>Time from a given time

The follwoing script will alert a message after sometime


&lt;script language=3D"JavaScript"&gt;
&lt;!--
// say 'Hello world' after 5 seconds =3D 5000 miliseconds
setTimeout('alert("Hello world")',5000);
//--&gt;
&lt;/script&gt;


But the above script can also be used differently
Say alert after sometime of a Button Click !


&lt;script language=3D"JavaScript"&gt;
&lt;!--
function sayHello(){
// say 'Hello world' after 5 seconds =3D 5000 miliseconds
setTimeout('alert("Hello world")',5000);
}
//--&gt;
&lt;/script&gt;




The HTML Code to generate a button to call the alert


&lt;form&gt;
&lt;input type=3D"button" onClick=3D"sayHello();" value=3D"Click and =
I'll alert after 5 Seconds"&gt;
&lt;/form&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE></TEXTAREA>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DTimestatusbar>Timestatusbar</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DTimestatusbar rows=3D4 cols=3D46>Show time in Status Bar
=20
Define a small function to show time
Then call that function.

&lt;script language=3D"JavaScript"&gt;
&lt;!--

function show(){

	var Digital=3Dnew Date()
	var hours=3DDigital.getHours()
	var minutes=3DDigital.getMinutes()
	var seconds=3DDigital.getSeconds()
	var sf=3D"AM"
	if (hours&gt;12){
		sf=3D"PM"
		hours=3Dhours-12
	}

if (hours=3D=3D0)
	hours=3D12
if (minutes&lt;=3D9)
	minutes=3D"0"+minutes
if (seconds&lt;=3D9)
	seconds=3D"0"+seconds

	window.status=3Dhours+":"+minutes+":" +seconds+" "+sf
	setTimeout("show()",1000)
	return false;
}

show()

&lt;/script&gt;



&lt;/textarea&gt;
	&lt;/form&gt;

	                &lt;br&gt;
                    &lt;/span&gt;
                    &lt;font style=3D"font-size: 9pt"&gt;&lt;a =
href=3D"#top"&gt;back to top&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;


                &lt;table border=3D"0" cellpadding=3D"0" =
cellspacing=3D"0" style=3D"border-collapse: collapse" =
bordercolor=3D"#111111" width=3D"98%"&gt;
                  &lt;tr&gt;
                    &lt;td width=3D"100%"&gt;
                    &lt;font color=3D"#FFFFFF" style=3D"font-size: =
9pt"&gt;..&lt;/font&gt;&lt;span style=3D"font-size: 9pt"&gt;&lt;br&gt;
                    &lt;/span&gt;
                &lt;span style=3D"font-weight:700"&gt;
                &lt;font style=3D"font-size: 9pt"&gt; &lt;a =
name=3D"Uppercase"&gt;Uppercase&lt;/a&gt;&lt;/font&gt;&lt;/span&gt;&lt;fo=
nt style=3D"font-size: 9pt"&gt;&lt;br&gt;
                    &lt;/font&gt;&lt;span style=3D"font-size: =
9pt"&gt;&lt;textarea rows=3D"4" name=3D"Uppercase" =
cols=3D"46"&gt;Forcing UPPER CASE
=20
This makes use of the 'toUpperCase()' Function

&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;&lt;!--
function convert() {
document.myForm.myText1.value =3D =
document.myForm.myText1.value.toUpperCase();
return false;
}
//--&gt;&lt;/SCRIPT&gt;



HTML code for form elements


&lt;FORM NAME=3D"myForm" onSubmit=3D"return convert(this)"&gt;
&lt;INPUT TYPE=3D"TEXT" NAME=3D"myText1" VALUE=3D""&gt;
&lt;INPUT TYPE=3D"SUBMIT" VALUE=3D"Convert to Uppercase"&gt;
&lt;/FORM&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DUserhistory>Userhistory</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DUserhistory rows=3D4 cols=3D46>Tell the users the number of pages =
the user has visited in current session
=20
Call the onLoad and onUnload events in the BODY tag

&lt;SCRIPT LANGUAGE=3D"Javascript"&gt;
&lt;!--
var times=3Dhistory.length;
document.write('You have been to '+times+' site(s) in this browser =
session.');
--&gt;
&lt;/SCRIPT&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DUserlanguage>Userlanguage</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DUserlanguage rows=3D4 cols=3D46>Find the language setting of the =
brwoser

Determine the user's language setting and redirect to the appropriate =
language homepage


&lt;SCRIPT LANGUAGE=3D"JavaScript1.2"&gt;
&lt;!-- Begin
if (navigator.appName =3D=3D 'Netscape')
var language =3D navigator.language;
else
var language =3D navigator.browserLanguage;
if (language.indexOf('en') &gt; -1) document.location.href =3D =
'English.html';
else if (language.indexOf('nl') &gt; -1) document.location.href =3D =
'dutch.html';
else if (language.indexOf('fr') &gt; -1) document.location.href =3D =
'french.html';
else if (language.indexOf('de') &gt; -1) document.location.href =3D =
'german.html';
else if (language.indexOf('ja') &gt; -1) document.location.href =3D =
'japanese.html';
else if (language.indexOf('it') &gt; -1) document.location.href =3D =
'italian.html';
else if (language.indexOf('pt') &gt; -1) document.location.href =3D =
'portuguese.html';
else if (language.indexOf('es') &gt; -1) document.location.href =3D =
'Spanish.html';
else if (language.indexOf('sv') &gt; -1) document.location.href =3D =
'swedish.html';
else if (language.indexOf('zh') &gt; -1) document.location.href =3D =
'chinese.html';
else
document.location.href =3D 'English.html';
//   --&gt;
&lt;/script&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DUseros>Useros</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DUseros rows=3D4 cols=3D46>Find the users Operating System

This just writes the users language as detected in the users window.
The feature can be used to redirect the user to a different page =
depending on the language


&lt;script language=3D"JavaScript"&gt;&lt;!--
document.write("&lt;B&gt; Your Operating System is : &lt;/B&gt;" + =
navigator.userAgent);

//--&gt;&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DUserproperties>Userproperties</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DUserproperties rows=3D4 cols=3D46>User properties

&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;


&lt;!-- This script and many more are available free online at --&gt;

&lt;!-- The JavaScript Source!! http://javascript.internet.com --&gt;

&lt;!-- begin
function display() {
window.onerror=3Dnull;

colors =3D window.screen.colorDepth;
document.form.color.value =3D Math.pow (2, colors);
if (window.screen.fontSmoothingEnabled =3D=3D true)
document.form.fonts.value =3D "Yes";
else document.form.fonts.value =3D "No";

document.form.navigator.value =3D navigator.appName;
document.form.version.value =3D navigator.appVersion;
document.form.colordepth.value =3D window.screen.colorDepth;
document.form.width.value =3D window.screen.width;
document.form.height.value =3D window.screen.height;
document.form.maxwidth.value =3D window.screen.availWidth;
document.form.maxheight.value =3D window.screen.availHeight;
document.form.codename.value =3D navigator.appCodeName;
document.form.platform.value =3D navigator.platform;
if (navigator.javaEnabled() &lt; 1) document.form.java.value=3D"No";
if (navigator.javaEnabled() =3D=3D 1) document.form.java.value=3D"Yes";

if(navigator.javaEnabled() &amp;&amp; (navigator.appName !=3D "Microsoft =
Internet Explorer")) {
vartool=3Djava.awt.Toolkit.getDefaultToolkit();
addr=3Djava.net.InetAddress.getLocalHost();
host=3Daddr.getHostName();
ip=3Daddr.getHostAddress();
alert("Your host name is '" + host + "'\nYour IP address is " + ip);
}
}
// end --&gt;
&lt;/script&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DValidateIPaddress>ValidateIPaddress</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DValidateIPaddress rows=3D4 cols=3D46>
//-----------------------------------------------------------------------=
-

	// Check if it is  validate the IP address
	// input:			IP address text object
	// returns:0 if it is valid=20
	// 1	Empty
	// 2	Invalid Format, number of dots is not 3
	// 3	non-integers present in the value
	// 4	start ip &gt; 223
	// 5	Should not start with 127
	// 6	out of bound
	// 7	All zeros
	// 8	Should not be 0	=09
	// support functions:=20
	//		IsAllSpaces
	//		countChars
	//		isInteger
//-----------------------------------------------------------------------=
-
=09
	function isValidIP(objIP)=20
	{
		var strIPtext =3D objIP.value;=20
		if ((strIPtext.length =3D=3D 0) || IsAllSpaces(strIPtext))=20
		{=20
			// IP Empty
			return 1;
		}
	=09
		if ( countChars(strIPtext,".") !=3D 3)=20
		{=20
			// Invalid Format, number of dots is not 3
			return 2;
		}
		var arrIP =3D strIPtext.split(".");
		=09
		for(var i =3D 0; i &lt; 4; i++)
		{
			if ( (arrIP[i].length &lt; 1 ) || (arrIP[i].length &gt; 3 ) )
			{
				// Invalid Format, continuous dots or more than 3 digits given =
between dots
				return 2;
			}
			=09
			if ( !isInteger(arrIP[i]) )
			{
				// non-integers present in the value
				return 3;
			}
			=09
			arrIP[i] =3D parseInt(arrIP[i]);
			=09
			if(i =3D=3D 0)
			{
				// start IP value
				if(arrIP[i] =3D=3D 0)
				{
					// start IP value must not be 0
					return 8;
				}

				if(arrIP[i] &gt; 223)
				{
					// start IP must not be &gt; 223
					return 4;
				}
				if(arrIP[i] =3D=3D 127)
				{
					// start IP must not be 127 - Loopback ip
					return 5;
				}
			}
			else
			{
				// the 2nd, 3rd and 4th IP values between the dots
				// these must not be more than 255
				if (arrIP[i] &gt; 255)
				{
					// IP out of bound
					return 6;
				}
			}
		}
		=09
		objIP.value =3D arrIP.join(".");
		=09
		if(objIP.value =3D=3D "0.0.0.0")
		{
			// IP all zeros
			return 7;
		}=09
		=09
		return 0;
		=09
	}	// end of isValidIP

//-----------------------------------------------------------------------=
---
	// Check to see if all characters in string are spaces
	// input:	strText-sourceString
	// returns:
	//  0 - not all spaces
	//  1 - all spaces
=09
	function IsAllSpaces(strText)
	{
		var bIsAllSpaces;

		if (countChars(strText," ") =3D=3D strText.length)
		{
			bIsAllSpaces =3D 1;
		}=09
		else
		{
			bIsAllSpaces =3D 0;
		}
		=09
		return bIsAllSpaces ;
	}


//-----------------------------------------------------------------------=
---
	// Count the number of occurences of given character in the text
	// input:		strText-sourceString,	charToCount-character to be checked=20
	// returns:		The count of no of character

=09
	function countChars(strText,charToCount)
	{
		var intStartingPosition =3D 0;
		var intFoundPosition =3D0;
		var intCount =3D 0;
	=09
		// checking for the null character=09
		if (charToCount=3D=3D"")
		{
			return intCount;
		}=09
		=
while((intFoundPosition=3DstrText.indexOf(charToCount,intStartingPosition=
)) &gt;=3D 0)
		{
			intCount++;
			intStartingPosition =3D intFoundPosition + 1;
		}
		=09
		return intCount ;
	}



//-----------------------------------------------------------------------=
---
   	// Check if given input is INTEGER or not
	// input:		Text value, text length
	// returns:		True if the field is integer else false

	function isInteger(strText)
	{
		 var blnResult =3D true;
		 var strChar;
		 // checking for null string=20
		 if (strText.length=3D=3D0) =20
		 {
			blnResult=3Dfalse;
		 }
		=20
		 for(var i=3D0;i &lt; strText.length;i++)
		 {
			strChar=3DstrText.substring(i,i+1);
			if(strChar &lt; "0" || strChar &gt; "9")
			{=20
			  blnResult =3D false;
			}
		 }=20
		 return blnResult;
	}
	=09
	</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DValidatelength>Validatelength</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DValidatelength rows=3D4 cols=3D46>Validate length of an Input =
String

&lt;HTML&gt;
&lt;HEAD&gt;
&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!--
function checkForm(myParam) {

	var myStr =3D new String;

	myStr =3D myParam.value;
	if (myStr.length &lt; 4) {
		alert("UserName must be more than 4 Chars");
		myParam.focus();
	}
	return 0;
}
//--&gt;
&lt;/SCRIPT&gt;
&lt;/HEAD&gt;

HTML Code to generate form elements and call the validation function


&lt;FORM ACTION=3D"validate_length.htm" NAME=3D"myform" &gt;
Username: &lt;INPUT TYPE=3D"TEXT" NAME=3D"user" VALUE=3D"" =
OnChange=3D"checkForm(this)" &gt; &lt;BR&gt;
Password: &lt;INPUT TYPE=3D"PASSWORD" NAME=3D"password" VALUE=3D"" =
&gt;&lt;BR&gt;
&lt;INPUT TYPE=3D"Submit" NAME=3D"submit" VALUE=3D"Submit"&gt;
&lt;/FORM&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DValidateonlynumbers>Validateonlynumbers</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DValidateonlynumbers rows=3D4 cols=3D46>
	// Allow only numbers input from the keyborad
	// input		:Object	-TextBox Object
	// returns		:none

=09
	function checkKeyforCharacters(obj)
	{
		// Clear any previous error messages
		ClearErr();
		if (!((window.event.keyCode &gt;=3D65  &amp;&amp; window.event.keyCode =
&lt;=3D92)||
			(window.event.keyCode &gt;=3D97  &amp;&amp; window.event.keyCode =
&lt;=3D123)||
			(window.event.keyCode &gt;=3D48  &amp;&amp; window.event.keyCode =
&lt;=3D57)||
			(window.event.keyCode =3D=3D 45)||
			(window.event.keyCode =3D=3D 95)))
		{
			window.event.keyCode =3D 0;
			obj.focus();
		}
	}



&lt;input type=3Dtext name=3D"input"  SIZE=3D"30"   value=3D""  =
OnKeypress=3D"checkKeyforCharacters(this)"&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DValidateremoveleftspaces>Validateremoveleftspaces</A></FONT></SPAN=
><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DValidateremoveleftspaces rows=3D4 cols=3D46>	// Remove all left =
trailing spaces from the input
	// input		:String
	// returns		:String

	function LTrimtext(str)
	{
		var res=3D"", i, ch, index;
		x =3D str.length;
		index =3D "false";
	=09
		for (i=3D0; i &lt; str.length; i++)
		{
		    ch =3D str.charAt(i);
		    if (index =3D=3D "false")
			{
				if (ch !=3D ' ')
				{
					index =3D "true";
					res =3D ch;
				}
			}
			else
			{
				res =3D res + ch;
			}	=20
		}
		return res;
	}</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DValidateremoverightspaces>Validateremoverightspaces</A></FONT></SP=
AN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DValidateremoverightspaces rows=3D4 cols=3D46>=09

	// Remove all right trailing spaces from the string input
	// input		:String
	// returns		:String


	function RTrimtext(str)
	{
		var res=3D"", i, ch, index, j, k;
		x =3D str.length;
		index =3D "false";
			=09
		if(x=3D=3D0 || x=3D=3D1)=20
			return str;
	=09
		for(i=3Dx; i &gt;=3D 0; i--)
		{
		    ch =3D str.charAt(i);		    		   =20
		   =20
		    if (index =3D=3D "false")
		    {
			=09
				if( (ch =3D=3D ' ') || (ch =3D=3D '') )
				{
					continue;
				}
				else
				{			=09
					index =3D "true";				=09
					j =3D i;	=09
				}
			}	=20
		 		=20
			if (index =3D=3D "true")
			{
				for(k=3D0; k&lt;=3Dj; k++)
				{
					res =3D res + str.charAt(k);
				}			=09
				return res;
			}=09
		=09
		}=09
	}</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DWeekdayimage>Weekdayimage</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DWeekdayimage rows=3D4 cols=3D46>Show the weekday image=20
Place this script where every you wish to show the image on the web page


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
today =3D new Date();
day =3D today.getDay();
arday =3D new Array("sunday.gif", "monday.gif", =
"tuesday.gif","wednesday.gif", "thursday.gif", "friday.gif", =
"saturday.gif");
document.write("&lt;img src=3D'" + arday[day] + "'&gt;");
//   End --&gt;
&lt;/script&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DWeekdayredirect>Weekdayredirect</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DWeekdayredirect rows=3D4 cols=3D46>Redirect the user to a page =
depending on the day of the week
=20
Place the following script in your html page
Lest assume that we have an /html file for each day of the week.
e.g., Sunday.html, Mondoy.html, Tuesday.html....and so on.
And that we need to redirect the user to the page depending on the day =
of the week
Copy the following code in the header portion of the HTML page


&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
&lt;!-- Begin
function initArray() {
this.length =3D initArray.arguments.length;
for (var i =3D 0; i &lt; this.length; i++)
this[i+1] =3D initArray.arguments[i];
}
var WeekDayArray =3D new
initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Sa=
turday");
var today =3D new Date();
var day =3D WeekDayArray[today.getDay()+1];
window.location =3D day + ".html";
// End --&gt;
&lt;/SCRIPT&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DWindowsAlertConfirmPrompt>WindowsAlertConfirmPrompt</A></FONT></SP=
AN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DWindowsAlertConfirmPrompt rows=3D4 cols=3D46>All types of Alert
=20
&lt;FORM NAME =3D "Alerts"&gt;
&lt;INPUT TYPE =3D "button" VALUE=3D"Alert Box" onClick =3D =
"window.alert('Hi, I am a Alert Box');"&gt;
&lt;INPUT TYPE =3D "button" VALUE=3D"Confirm Box" onClick =3D =
"window.confirm('Hi, I am a confirm Box');"&gt;
&lt;INPUT TYPE =3D "button" VALUE=3D"Prompt Box" onClick=3D"var temp =3D =
window.prompt('Hi, I am Prompt Box','Default');"&gt;
&lt;/FORM&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DWindowsBanner>WindowsBanner</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DWindowsBanner rows=3D4 cols=3D46>How to open a banner window

&lt;html&gt;
&lt;head&gt;
&lt;SCRIPT LANGUAGE=3D"JavaScript"&gt;
function opWin(w,h,url) {
specs =3D =
"toolbar=3Dyes,location=3Dno,directories=3Dno,status=3Dno,menubar=3Dno,re=
sizable=3Dno,
copyhistory=3Dno,scrollbars=3Dyes" + ",width=3D" + w + ",height=3D" + h;
        window.open(url,'',specs)
}
&lt;/SCRIPT&gt;
&lt;meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dwindows-1252"&gt;
&lt;meta name=3D"GENERATOR" content=3D"Microsoft FrontPage 4.0"&gt;
&lt;meta name=3D"ProgId" content=3D"FrontPage.Editor.Document"&gt;
&lt;title&gt;Banner Window&lt;/title&gt;
&lt;/head&gt;
&lt;body onload =3D =
javascript:opWin(550,350,'http://generalhosting.com') &gt;

Just a test page for open banner window.
&lt;/body&gt;

&lt;/html&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"98%" border=3D0>
                          <TBODY>
                          <TR>
                            <TD width=3D"100%"><FONT style=3D"FONT-SIZE: =
9pt"=20
                              color=3D#ffffff>..</FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><BR></SPAN><SPAN=20
                              style=3D"FONT-WEIGHT: 700"><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DWindowpop>Windowpop</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DWindowpop rows=3D4 cols=3D46>Popping up a Customized New window
First write a small JavaScript function to open a customized window.

&lt;script language=3D"JavaScript"&gt;
&lt;!--

function newAlert(msgName,msgvar) {
alrtWndo =3D =
window.open("","Alert","height=3D140,width=3D280,toolbar=3Dno,location=3D=
no,directories=3Dno,status=3Dno,menubar=3Dno,scrollbars=3Dno,resizeable=3D=
no");
alrtWndo.document.write("&lt;body &gt;&lt;center&gt;&lt;font =
color=3D'blue'&gt;");
alrtWndo.document.write(msgvar);
alrtWndo.document.write("&lt;BR&gt;&lt;FORM&gt;");
alrtWndo.document.write("&lt;INPUT TYPE=3DBUTTON VALUE=3D'OK' =
onClick=3D'window.close()'&gt;");
alrtWndo.document.write("&lt;/form&gt;&lt;/center&gt;&lt;/body&gt;");
alrtWndo.document.close();
}

//--&gt;
&lt;/script&gt;

The HTML code that would pop a new window on mouse click

&lt;a href=3D"javascript:newAlert('Click','This was from a =
click')"&gt;Click Here!

The HTML code that would pop a new window on mouse over

&lt;a href=3D"javascript:newAlert('Click','This was from a mouse over =
action')" onmouseover=3D"newAlert('Mouse Over','This is from the second =
Image')"&gt;Pass Mouse over Here!


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/javascripts.htm#top">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE></DIV></TD></TR></TBOD=
Y></TABLE></TD></TR></TBODY></TABLE></TD>
          <TD width=3D5><IMG height=3D1 alt=3D""=20
            src=3D"http://www.generalhosting.com/htm/spacer.gif" =
width=3D3=20
          border=3D0></TD>
          <TD width=3D2=20
            =
background=3Dhttp://www.generalhosting.com/htm/dotline.gif><IMG=20
            height=3D1 alt=3D"" =
src=3D"http://www.generalhosting.com/htm/spacer.gif"=20
            width=3D2 border=3D0></TD>
          <TD width=3D5><IMG height=3D1 alt=3D""=20
            src=3D"http://www.generalhosting.com/htm/spacer.gif" =
width=3D3=20
          border=3D0></TD>
          <TD class=3Dtan style=3D"BACKGROUND-COLOR: #ffcc39" =
width=3D10><IMG=20
            height=3D1 alt=3D"" =
src=3D"http://www.generalhosting.com/htm/spacer.gif"=20
            width=3D3 border=3D0></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD colSpan=3D2><IMG height=3D2 alt=3D""=20
      src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D1 =
border=3D0></TD></TR>
  <TR>
    <TD background=3Dhttp://www.generalhosting.com/htm/dotline.gif=20
      colSpan=3D2><IMG height=3D1 alt=3D""=20
      src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D1 =
border=3D0></TD></TR>
  <TR>
    <TD colSpan=3D2><IMG height=3D2 alt=3D""=20
      src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D1 =
border=3D0></TD></TR><!---=20

--------------------------------------------------------------

----------------
Include Footer
--------------------------------------------------------------

----------------- --->
  <TR>
    <TD class=3Dfooter align=3Dmiddle colSpan=3D2 height=3D16><A =
class=3Dfooter=20
      =
href=3D"http://www.generalhosting.com/htm/terms-conditions.htm">30-Day =
Money=20
      Back Guarantee</A> | <A class=3Dfooter=20
      href=3D"http://www.generalhosting.com/htm/terms-conditions.htm"=20
      target=3Dterms>Terms &amp; Conditions</A> | =A9 =
GeneralHosting.com/Winweb=20
      LLC., Official Microsoft Windows 2003=20
Hosting</TD></TR></TBODY></TABLE></CENTER></DIV></BODY></HTML>

------=_NextPart_000_003F_01C97FA3.3DD8B960
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://www.generalhosting.com/pictgif/log.gif

R0lGODlhMwA1APcAAAAAAP///84QGNYpMc4YId5aY95rc84IGM4QIc4YKc4AGM4xQtY5StZKWs4I
Ic4QKc4hOc4AIcYAIf//1v//9//WAP/OAP/OCP/GAP/OEP/GCP/GEP/GGP+9AP+9CP/GKfe1CP+9
GPetCP+1EP+9IfelCP+tEP+1GP+9Of/vzv/35/elEP+tGP+1Mf+tIf/v1u+UCPecEPecGP+lIf+t
Mf+1Qv+1Sv+9Wv/Gc++MCP+lKf+lMf+tQv+1Uv+9Y//Ge//OjP/WnP/nxu+MEPeUGP+tSv+1Wv+9
a//OlP/Wpf/ete+ECO+EEPeUIf+cKf+lQv/GhPeMIf+UKf+cOf+tWv/OnP/Wrf/evf/v3udzCO97
EP+UMe97GPeEIf+UOe9zEOdrEP+MMf+EMfeEMf+MOedjEO9rGPd7KffOtedjGO9rIfd7MfeEQuda
EO9rKfdzMfd7Od5SEOdaGO9zOedaIe9jKe9jMd5KGOdSId5CGOdSKedaMfe9redKIe+tnN45GN5C
Id4xGNYxGN45Id5CKd5CMdYpGN4xIeeMhO+clNYhGN5COdYxKdYYGM4YGNYhIdYpKed7e////wAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAJIALAAAAAAzADUA
QAj/AAMIHEiwoMGDCBMqRCjEgAIJEiJEnAgxgkSLFytChMggxcKBfBQgEDRIUB4LFVKmTDOoZckS
KkWUEZCx5sSMCwrygVinjpufRFSmlHHmjRujbmQIrTAEDx5AdwANAsMkCxgwCWxK9CMwEcQ9ZLyI
nfKkrNmyZJ94ubC07dI7ghTRvCnBYAGICZ4U6XEEiZIUL64E+WGkxtIpXsaEWbOmiVAMfQD9EfTI
kQQIHwdOQPRgo4QHe7ygFeslzJgxjH8CIrDRgMfMsEFGKsCAAUQItSP5eR0bIZrOERQ4OJAHhFuV
HR5ZpKgV4gM0CK9ABISHDp4hS+no0UMnxvEKWg5R/1bkyEHzjIgG2ibAeM3p0y6+u/1Jp45TJkJF
OGoeaaBXCYycVUQRNhBow4EDPkGCUBuYxphRIwg1BCCCHEKeRBIwkFAKC2y0yBFQAIEEFDgYUWAR
aCGWGGpn/FSHdk8B8shn0PWW0AR8IBKJAbUVoCMfvNko5JBEIjRBIhB4VtFFy2HoXCRCFBkAGklq
hOEgh2AJCZMZMUfRA4lkJkSHjihiyCM5yLdUGufdhGEDCHlFACB5AAIIBkKB8FSMdtZZkniPKNLI
XOdhyMAEBHUIyHb1eaeSBi66YdxxfZZkyIVt1iVQJBIk8JMbZzCmQVsjsMDCqG1x8aJTUC3VnAT9
Bf/AqQTvhREWaV7sEMIGGWiQwQkznCDUCJ+6oZ0HQmlxIV0S8DGQc2OlJeBZT+yg5lIgWNrIAegV
dJcEA5Q1oA0+/ADFuUf0UGAGQulABhmoreHGmlIdYsh+lyWEyEaF8IXEFS9gIUQShH0gVAZiwcuY
CRLikccggbAGZ2YcbvTAHOqeyINZKq6Ymht1cDcIAjRKGQAf3yqpspIMhGnyyzDHLDNCfhTQmWdO
etZylDLzkYCVES1HkZsWp1fkmBtphaGTTAb9ZY2x/bakRHhMKpQFadxMtE0QcfWR1AI40ogjS1xb
AQjA0cX1ZTwjZIAEjoh3CBhtwdCGIHHAdHWbXDv/e5BtWdqJn1Bf0Gn4IHJYAEMelzpSHt8auUyQ
bYPYWd1SXDhV3RAxDOH550OkIcilNEEuwRUEvU2Addo5mpIHdajRkwjfiV5SoPtlqqFAKUCkR+wg
r7BUsSvIsILwQpUQY0vjEao2RH7vi0CxoLYVxRqhnqHUUkRobvhSgqwd69uehsrYGFKYLRTI3Dll
xtWlMzt+p2fU+u4WTrB7rQefhkwHdirJgVy4FqtZuedW0XpCWkSjog0MqwlRiAIXusAFlKgkDo/Y
VpMgUiM0QIQQWxCLAqlFLbKoTyW3w5ehCNIAiMxBWuIakAxR9IQWLGUDGsihBzxgwZSU4A8lIcAB
9SjStgD0DiJkKAsPCNSDHvjAB0ZQ14A4IJQTkMFBLUJVSgoniNHFT3IDEcJG4DCuclXBClZIAhDS
ZYOl6KA0pznDGZZiJ0s54iFGM8gVbjYAG/QAB/9SAQVSkAQo3AAFQrkAYuCFGuSlBAR2opAhSOa1
hKSsED6AQhKUoAQrAAEHPahBC0ZJgx2IxTSo6UIUKMgFNfSJNRAI0oY6BJEBUOEIR4CixsySsDGI
4WPGsk4fWPMcG6WghRuBBBuKsESOkeY9LXIRHVgjgQVAbUhCSNlGElAIO8wBDl4gwxv2oAdG/Gwj
C/CbzISACNuszDMLMMA1PxIQADs=

------=_NextPart_000_003F_01C97FA3.3DD8B960
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://www.generalhosting.com/pictgif/genera.gif

R0lGODlh+gAVAMQAAAAAAP///+9rc+dKWt4hOedaa9YAId4QMd4xSuc5Uv/vzv/evffOtfe9rfet
nPeclO97e++MjP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA
ABIALAAAAAD6ABUAAAX/oCSOpNScSqmubOu+cCzPdC2eDH0udu9LjF1sISAYjkcCJFUSJJ7Q6Cia
4K2ihSk1KhAxts9BxNoaRCEsJ5Smfq7aCVajcEAeBw1XxIg8FPImYFRdcCMPCFBoK4dQgCURCXYG
fmQlCgKSkgQ5JJl2CDeScSoNn6GeR4oQqEgPLRGaLJI0syq1JAx8qKMqupkOEqusqRK3kXaOJMdH
yRIRdagHriW5w0cHlcMDIg6/Kt1IXRLgqBEimNbNI9B2skigM6a2703WSZUSCKyjA/au8vliqdCH
pMSyYcBGMGBnbdspVKoyHVAh7Ii5YMMAHUTlsERFOwlJlELSEcbIO6Ts/5QsYI/eCHTvjmETsdHT
CZUjPCnq1IeEr2EERij4KSCFggcMDViBhSRBBAhQIVjpl0ncCKrMRGA1UOBp1HXtTBBMomJBUmKP
7OyEwRQtibYGdsJ8JyBCgZ8GphXrw0mCAL1R4RrwigauIgaeZiq0w4ulnT83xh6ZNvdAXy8kQ84N
WUIyMhKSR4R2dwSeCYAjHGfi9RLkjM0qYJ/+1GyugaDjGMdAjRFJQnKSTOcOx02SXtGlpymQpM5v
BCZTPq9ghVvErVslThrgBbykhAWMGao42JwF+fHSDwon8dGAiI/SXmhnLeF8b08hPyqSvNaQgEpw
ZTGDL1FBBQh470iiCP+CR4zCoAEIFCiVCA+oFV0rndnxhYYl+EIDgRJC4CEQdkzEwoNK3dcHZItY
6FNYEqgGYYmpfYaYSzFIxlmIUU0zzEXaFVAZD9qJo10mnHz0l4i8zeeXHRflhONuLZX2nh1WTRcW
cKJcdiWGPFlJEzIMiXMQD0qS8ACPUO1VkFCsdHEkc18SI1kc+tXpyVXWWGbQZxUiIeBDEM4w5zCj
2EfaETWiUh2fSCSjnWmzCJZHLYoG5AkCy/U0wqGTSRAoKo1mdeQDMgIiY3Aj4MWYl6NuR+ijsfbn
Qqz2KLJVecM1qKZnSEQpwoiGuPhgonYQcKwIkl3Gyh/YCWZHCh8hYob/GRcewclWBzQ7ZlPXJmBV
iXT2wqF1MKoo7AtKnuBuA3NdJNlxf4KJiwCe9Ucje1ASKuCNTeHkZlaYoeJAp0iQsYC7B/EjnQri
gUWqCBGrAPB2W2UpgrQGQ0pwDLuqEHJ9uq0Al4ksEIhLyR4bAIhhI7Tn4rwinVAZxS6SYJZ0o2kp
5saoUDolCcAJcGQzZ0GE3Jsy9AwajO0NGrOChuAjI2dFZ8i0bMx2LMFW9HWNhK7G6XynlJG+y4l2
3tVkgEOTvtuAFR+Zc9CjMu+DNjNyu7BvCX9fnNwJTAJkFgGOaIeynuv+fdBloHIimNQx/j1nAlBt
NQkTgksiDswrZ3IR/8e+afXZkRftDG4C10pmYuePtXBx2LMrU+UkfY1FQAJElTBywb7izHTLwyel
BAR0lHtOS34SKrqe9KoYqvSScHLmt9eIIKPG6CKRA6hupURcdljqnLREfZE+NMkJi1R+94VCzOoI
XLIS/aqrQUe9dL8/zf8we3MP8I5QgAcpRmuhylvpWJAnj+TMC8CShHdsExwvDUyAUxsbodYDNN7g
KhMIsGBkPJEAdeDPDlYgFvlg5CqyfIdl7EOCylYgoyyc0HstSJUKdEiRCLKIGjWJ0AqWRQIe1so8
D/TCCQkQvbI0AAJPaYD+fkDFKlrxilVkwAOeEgFeieQpDxAhFq3YAAavzI0FIQAAOw==

------=_NextPart_000_003F_01C97FA3.3DD8B960
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://www.generalhosting.com/htm/spacer.gif

R0lGODlhAQABAJH/AP///wAAAP///wAAACH/C0FET0JFOklSMS4wAt7tACH5BAEAAAIALAAAAAAB
AAEAAAICVAEAOw==

------=_NextPart_000_003F_01C97FA3.3DD8B960
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://www.generalhosting.com/htm/icon_house.gif

R0lGODlhDwAPAIABAP///zMzMyH5BAEAAAEALAAAAAAPAA8AAAIajI+py73gDphx2mbzy1pR83kQ
OIpSGaXqGhUAOw==

------=_NextPart_000_003F_01C97FA3.3DD8B960
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://www.generalhosting.com/htm/icon_phone.gif

R0lGODlhDwAPAIABAP///zMzMyH5BAEAAAEALAAAAAAPAA8AAAIbjI+py+0NogRLHpumZjF0ToVU
pY1KaT7qyj4FADs=

------=_NextPart_000_003F_01C97FA3.3DD8B960
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://www.generalhosting.com/htm/icon_email.gif

R0lGODlhDwAPAIABAP///zMzMyH5BAEAAAEALAAAAAAPAA8AAAIajI+py+0MoowLhHmrpVRJ83lT
mIzkg6bq+hQAOw==

------=_NextPart_000_003F_01C97FA3.3DD8B960
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://www.generalhosting.com/htm/icon_question.gif

R0lGODlhDwAPAIABAP///zMzMyH5BAEAAAEALAAAAAAPAA8AAAIdjI+py30AI1QRVTtxkjm/G4AG
x22XRJGAw7buixQAOw==

------=_NextPart_000_003F_01C97FA3.3DD8B960
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://www.generalhosting.com/htm/dotline.gif

R0lGODlhAwACAJEAAAAAAP///2ZmZv///yH5BAEAAAMALAAAAAADAAIAAAIDjIJRADs=

------=_NextPart_000_003F_01C97FA3.3DD8B960
Content-Type: application/x-css
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.generalhosting.com/htm/fc_03_style.css

A {
	COLOR: #cc6600; TEXT-DECORATION: underline
}
A:active {
	COLOR: #cc6600; TEXT-DECORATION: none
}
A:hover {
	COLOR: #cc6600; TEXT-DECORATION: none
}
A:visited {
	COLOR: #db6e02; TEXT-DECORATION: underline
}
A:hover {
	COLOR: #db6e02; TEXT-DECORATION: none
}
A.button {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A.button:active {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A.button:hover {
	COLOR: #ffffff; TEXT-DECORATION: underline
}
A.button:visited {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A.button:hover {
	COLOR: #ffffff; TEXT-DECORATION: underline
}
A.button2 {
	COLOR: #333333; TEXT-DECORATION: none
}
A.button2:active {
	COLOR: #333333; TEXT-DECORATION: none
}
A.button2:hover {
	COLOR: #333333; TEXT-DECORATION: underline
}
A.button2:visited {
	COLOR: #333333; TEXT-DECORATION: none
}
A.button2:hover {
	COLOR: #333333; TEXT-DECORATION: underline
}
A.caps {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #333333; FONT-VARIANT: =
small-caps; TEXT-DECORATION: none
}
A.caps:active {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #333333; FONT-VARIANT: =
small-caps; TEXT-DECORATION: none
}
A.caps:hover {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #333333; FONT-VARIANT: =
small-caps; TEXT-DECORATION: underline
}
A.caps:visited {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #333333; FONT-VARIANT: =
small-caps; TEXT-DECORATION: none
}
A.caps:hover {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #333333; FONT-VARIANT: =
small-caps; TEXT-DECORATION: underline
}
A.footer {
	COLOR: #cccccc; TEXT-DECORATION: none
}
A.footer:active {
	COLOR: #cccccc; TEXT-DECORATION: none
}
A.footer:hover {
	COLOR: #cccccc; TEXT-DECORATION: underline
}
A.footer:visited {
	COLOR: #cccccc; TEXT-DECORATION: none
}
A.footer:hover {
	COLOR: #cccccc; TEXT-DECORATION: underline
}
A.header {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: white; FONT-FAMILY: =
Verdana, Tahoma, Arial; FONT-VARIANT: small-caps; TEXT-DECORATION: none
}
A.header:active {
	COLOR: white; TEXT-DECORATION: none
}
A.header:hover {
	COLOR: white; TEXT-DECORATION: underline
}
A.header:visited {
	COLOR: white; TEXT-DECORATION: none
}
A.header:hover {
	COLOR: white; TEXT-DECORATION: underline
}
A.link2 {
	COLOR: #333333; TEXT-DECORATION: none
}
A.link2:active {
	COLOR: #333333; TEXT-DECORATION: none
}
A.link2:hover {
	COLOR: #333333; TEXT-DECORATION: underline
}
A.link2:visited {
	COLOR: #333333; TEXT-DECORATION: none
}
A.link2:hover {
	COLOR: #333333; TEXT-DECORATION: underline
}
A.link2a {
	COLOR: #333333; TEXT-DECORATION: none
}
A.link2a:active {
	COLOR: #333333; TEXT-DECORATION: none
}
A.link2a:hover {
	COLOR: #333333; TEXT-DECORATION: underline
}
A.link2a:visited {
	COLOR: #333333; TEXT-DECORATION: none
}
A.link2a:hover {
	COLOR: #333333; TEXT-DECORATION: underline
}
A.toplinks {
	FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: =
Verdana, Tahoma, Arial; FONT-VARIANT: small-caps; TEXT-DECORATION: =
underline
}
A.toplinks:active {
	COLOR: black; TEXT-DECORATION: none
}
A.toplinks:hover {
	COLOR: black; TEXT-DECORATION: none
}
A.toplinks:visited {
	FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #333333; FONT-FAMILY: =
Verdana, Tahoma, Arial; FONT-VARIANT: small-caps; TEXT-DECORATION: =
underline
}
A.toplinks:hover {
	COLOR: #333333; TEXT-DECORATION: none
}
BODY {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; BACKGROUND: black; COLOR: =
#333333; FONT-FAMILY: Verdana, Tahoma, Arial
}
.caps {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Tahoma, =
Arial; FONT-VARIANT: small-caps
}
.error {
	FONT-WEIGHT: bold; COLOR: red
}
H1 {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; FONT-SIZE: =
11px; PADDING-BOTTOM: 0px; MARGIN: 1px 0px 0px; PADDING-TOP: 1px; =
FONT-FAMILY: Verdana, Tahoma, Arial
}
.input {
	BORDER-RIGHT: #333333 1px solid; BORDER-TOP: #333333 1px solid; =
FONT-WEIGHT: normal; FONT-SIZE: 8pt; MARGIN: 0px; BORDER-LEFT: #333333 =
1px solid; COLOR: #333333; BORDER-BOTTOM: #333333 1px solid; =
FONT-FAMILY: MS Sans Serif, Lucida Sans Unicode, Microsoft Sans Serif; =
BACKGROUND-COLOR: white
}
.large {
	FONT-WEIGHT: normal; FONT-SIZE: 12px; FONT-FAMILY: Verdana, Tahoma, =
Arial
}
LI {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: =
Verdana, Tahoma, Arial
}
.orange {
	COLOR: #cc6600
}
.dark_orange {
	COLOR: #fa6626
}
A.dark_orange {
	COLOR: #fa6626; TEXT-DECORATION: underline
}
A.dark_orange:active {
	COLOR: #fa6626; TEXT-DECORATION: none
}
A.dark_orange:hover {
	COLOR: #fa6626; TEXT-DECORATION: none
}
A.dark_orange:visited {
	COLOR: #fa6626; TEXT-DECORATION: underline
}
A.dark_orange:hover {
	COLOR: #fa6626; TEXT-DECORATION: none
}
.light_orange {
	COLOR: #ff9900
}
A.light_orange {
	COLOR: #ff9900; TEXT-DECORATION: underline
}
A.light_orange:active {
	COLOR: #ff9900; TEXT-DECORATION: none
}
A.light_orange:hover {
	COLOR: #ff9900; TEXT-DECORATION: none
}
A.light_orange:visited {
	COLOR: #ff9900; TEXT-DECORATION: underline
}
A.light_orange:hover {
	COLOR: #ff9900; TEXT-DECORATION: none
}
.maroon {
	COLOR: #aa533c
}
A.maroon {
	COLOR: #aa533c; TEXT-DECORATION: underline
}
A.maroon:active {
	COLOR: #aa533c; TEXT-DECORATION: none
}
A.maroon:hover {
	COLOR: #aa533c; TEXT-DECORATION: none
}
A.maroon:visited {
	COLOR: #aa533c; TEXT-DECORATION: underline
}
A.maroon:hover {
	COLOR: #aa533c; TEXT-DECORATION: none
}
.red {
	FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #aa533c; FONT-FAMILY: =
Verdana, Tahoma, Arial; FONT-VARIANT: small-caps
}
.small {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Tahoma, =
Arial
}
.submit {
	BORDER-RIGHT: #000000 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: =
#000000 1px solid; PADDING-LEFT: 0px; FONT-WEIGHT: normal; FONT-SIZE: =
12px; PADDING-BOTTOM: 0px; BORDER-LEFT: #000000 1px solid; COLOR: white; =
PADDING-TOP: 0px; BORDER-BOTTOM: #000000 1px solid; FONT-FAMILY: =
Verdana, Helvetica, Arial; BACKGROUND-COLOR: #9a3217
}
TD {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Tahoma, =
Arial
}
TD.cream {
	BORDER-RIGHT: #e6d9cb 1px solid; BORDER-TOP: #e6d9cb 1px solid; =
FONT-WEIGHT: normal; FONT-SIZE: 12px; BORDER-LEFT: #e6d9cb 1px solid; =
BORDER-BOTTOM: #e6d9cb 1px solid; FONT-FAMILY: Verdana, Tahoma, Arial; =
BACKGROUND-COLOR: #f2ece5
}
TD.dark_brown {
	BACKGROUND-COLOR: #736357
}
TD.dark_cream {
	BACKGROUND-COLOR: #ece2d8
}
TD.footer {
	FONT-WEIGHT: normal; FONT-SIZE: 10px; COLOR: #cccccc; FONT-FAMILY: =
Verdana, Tahoma, Arial; BACKGROUND-COLOR: #464646
}
TD.header {
	PADDING-LEFT: 10px; FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: white; =
FONT-FAMILY: Verdana, Tahoma, Arial; BACKGROUND-COLOR: #736357; =
FONT-VARIANT: small-caps
}
TD.index {
	BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; =
FONT-WEIGHT: normal; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: =
#cccccc 1px solid; BACKGROUND-COLOR: #f8f5f2
}
TD.light_brown {
	BACKGROUND-COLOR: #998675
}
TD.light_cream {
	BACKGROUND-COLOR: #f3efe9
}
TD.gallerynav {
	BACKGROUND-COLOR: #ece2d8
}
TD.gallerynav A {
	PADDING-RIGHT: 5px; DISPLAY: block; PADDING-LEFT: 5px; FONT-WEIGHT: =
normal; FONT-SIZE: 10px; WIDTH: 100%; COLOR: black; FONT-FAMILY: =
Verdana, Tahoma, Arial; HEIGHT: 100%; TEXT-DECORATION: none
}
TD.gallerynav A:hover {
	DISPLAY: block; FONT-WEIGHT: normal; WIDTH: 100%; COLOR: black; HEIGHT: =
100%; BACKGROUND-COLOR: #d8c9b7; TEXT-DECORATION: none
}
TD.gallerynav A:visited {
	PADDING-RIGHT: 5px; DISPLAY: block; PADDING-LEFT: 5px; FONT-WEIGHT: =
normal; FONT-SIZE: 10px; WIDTH: 100%; COLOR: black; FONT-FAMILY: =
Verdana, Tahoma, Arial; HEIGHT: 100%; TEXT-DECORATION: none
}
TD.navon {
	BACKGROUND-COLOR: #aa533c
}
TD.navon A {
	PADDING-RIGHT: 5px; DISPLAY: block; PADDING-LEFT: 5px; FONT-WEIGHT: =
normal; FONT-SIZE: 12px; WIDTH: 100%; COLOR: white; FONT-FAMILY: =
Verdana, Tahoma, Arial; HEIGHT: 100%; FONT-VARIANT: small-caps; =
TEXT-DECORATION: none
}
TD.navon A:hover {
	DISPLAY: block; FONT-WEIGHT: normal; WIDTH: 100%; COLOR: white; HEIGHT: =
100%; BACKGROUND-COLOR: #993300; TEXT-DECORATION: none
}
TD.navon A:visited {
	PADDING-RIGHT: 5px; DISPLAY: block; PADDING-LEFT: 5px; FONT-WEIGHT: =
normal; FONT-SIZE: 12px; WIDTH: 100%; COLOR: white; FONT-FAMILY: =
Verdana, Tahoma, Arial; HEIGHT: 100%; FONT-VARIANT: small-caps; =
TEXT-DECORATION: none
}
TD.nav {
	BACKGROUND-COLOR: #333333
}
TD.nav A {
	PADDING-RIGHT: 5px; DISPLAY: block; PADDING-LEFT: 5px; FONT-WEIGHT: =
normal; FONT-SIZE: 12px; WIDTH: 100%; COLOR: white; FONT-FAMILY: =
Verdana, Tahoma, Arial; HEIGHT: 100%; FONT-VARIANT: small-caps; =
TEXT-DECORATION: none
}
TD.nav A:hover {
	DISPLAY: block; FONT-WEIGHT: normal; WIDTH: 100%; COLOR: white; HEIGHT: =
100%; BACKGROUND-COLOR: #993300; TEXT-DECORATION: none
}
TD.nav A:visited {
	PADDING-RIGHT: 5px; DISPLAY: block; PADDING-LEFT: 5px; FONT-WEIGHT: =
normal; FONT-SIZE: 12px; WIDTH: 100%; COLOR: white; FONT-FAMILY: =
Verdana, Tahoma, Arial; HEIGHT: 100%; FONT-VARIANT: small-caps; =
TEXT-DECORATION: none
}
TD.tan {
	BACKGROUND-COLOR: #d8c9b7
}
TD.top {
	BORDER-RIGHT: #d8c9b7 1px solid; BORDER-TOP: #d8c9b7 1px solid; =
FONT-WEIGHT: normal; FONT-SIZE: 11px; BORDER-LEFT: #d8c9b7 1px solid; =
COLOR: #aa533c; BORDER-BOTTOM: #d8c9b7 1px solid; FONT-FAMILY: Verdana, =
Tahoma, Arial; BACKGROUND-COLOR: #f3efe9
}
TD.fea {
	BORDER-RIGHT: #d8c9b7 1px solid; BORDER-TOP: #d8c9b7 1px solid; =
FONT-WEIGHT: normal; FONT-SIZE: 11px; BORDER-LEFT: #d8c9b7 1px solid; =
COLOR: #333333; BORDER-BOTTOM: #d8c9b7 1px solid; FONT-FAMILY: Verdana, =
Tahoma, Arial; BACKGROUND-COLOR: #ffffff
}
.tiny {
	FONT-WEIGHT: normal; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Tahoma, =
Arial
}

------=_NextPart_000_003F_01C97FA3.3DD8B960--

