From: <Saved by Microsoft Internet Explorer 5>
Subject: 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:29:46 -0500
MIME-Version: 1.0
Content-Type: multipart/related;
	type="text/html";
	boundary="----=_NextPart_000_0000_01C97FA1.0299DCF0"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C97FA1.0299DCF0
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.generalhosting.com/scripts/asp.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!---=20

--------------------------------------------------------------

----------------
Include Top Navigation
--------------------------------------------------------------

----------------- ---><HTML><HEAD><TITLE>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"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"ASP scripts 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=3D"ASP =
SCRIPTS"></A>Support Tools=20
                  </FONT><FONT face=3D"Myriad Condensed Web" =
color=3D#000000=20
                  size=3D5>ASP 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>
                  <TABLE style=3D"BORDER-COLLAPSE: collapse" =
borderColor=3D#111111=20
                  cellSpacing=3D0 cellPadding=3D0 width=3D"100%" =
border=3D0>
                    <TBODY>
                    <TR>
                      <TD width=3D"100%"><SPAN=20
                        style=3D"FONT-SIZE: 9pt"><BR></SPAN><FONT=20
                        style=3D"FONT-SIZE: 9pt"><FONT =
color=3D#9a3217><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Adovbs"><FONT=20
                        color=3D#9a3217>Adovbs</FONT></A> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Ado_adsi"><FONT=20
                        color=3D#9a3217>Ado adsi</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ADO_version"><FONT =

                        color=3D#9a3217>ADO version</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Cache"><FONT=20
                        color=3D#9a3217>Cache</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Cache =
expire"><FONT=20
                        color=3D#9a3217>Cache expire</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Cache stop"><FONT=20
                        color=3D#9a3217>Cache stop</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#CDONTS Retrieving =
messages"><FONT=20
                        color=3D#9a3217>CDONTS Retrieving =
messages</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Database"><FONT=20
                        color=3D#9a3217>Database</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Databaselisttables"=
><FONT=20
                        =
color=3D#9a3217>Databaselisttables</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Databasereadtable">=
<FONT=20
                        =
color=3D#9a3217>Databasereadtable</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#DataDSNConnection">=
<FONT=20
                        =
color=3D#9a3217>DataDSNConnection</FONT></A><FONT=20
                        color=3D#9a3217><B> </B>/<B> </B></FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#DataDSNConnection">=
<FONT=20
                        =
color=3D#9a3217>DataDSN-LessConnection</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#DataMSSQLconnection=
"><FONT=20
                        =
color=3D#9a3217>DataMSSQLconnection</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Date"><FONT=20
                        color=3D#9a3217>Date</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Dateadd"><FONT=20
                        color=3D#9a3217>Dateadd</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Datecountdown"><FON=
T=20
                        color=3D#9a3217>Datecountdown</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Datediff"><FONT=20
                        color=3D#9a3217>Datediff</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Datefirstlast"><FON=
T=20
                        color=3D#9a3217>Datefirstlast </FONT></A><FONT=20
                        color=3D#9a3217>/ </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Dateformat"><FONT=20
                        color=3D#9a3217>Dateformat</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Datejulian"><FONT=20
                        color=3D#9a3217>Datejulian</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Dateleap"><FONT=20
                        color=3D#9a3217>Dateleap</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Datepart"><FONT=20
                        color=3D#9a3217>Datepart</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Datesub"><FONT=20
                        color=3D#9a3217>Datesub</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Dbcommon"><FONT=20
                        color=3D#9a3217>Dbcommon</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Dbconnect"><FONT=20
                        color=3D#9a3217>Dbconnect</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Dbselect"><FONT=20
                        color=3D#9a3217>Dbselect</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Directory"><FONT=20
                        color=3D#9a3217>Directory</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Dirattr"><FONT=20
                        color=3D#9a3217>Dirattr</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Dircreate"><FONT=20
                        color=3D#9a3217>Dircreate</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Dirdelete"><FONT=20
                        color=3D#9a3217>Dirdelete</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Dirfiles"><FONT=20
                        color=3D#9a3217>Dirfiles</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#DirRecursive"><FONT=
=20
                        color=3D#9a3217>DirRecursive</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#DirRecDetails"><FON=
T=20
                        color=3D#9a3217>DirRecDetails</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#DomainNameValidatio=
n"><FONT=20
                        =
color=3D#9a3217>DomainNameValidation</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Doublequote"><FONT =

                        color=3D#9a3217>Doublequote</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#File"><FONT=20
                        color=3D#9a3217>File</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Fileappend"><FONT=20
                        color=3D#9a3217>Fileappend</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Fileappend2"><FONT =

                        color=3D#9a3217>Fileappend2</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Filecopy"><FONT=20
                        color=3D#9a3217>Filecopy</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Filedelete"><FONT=20
                        color=3D#9a3217>Filedelete</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Filedir"><FONT=20
                        color=3D#9a3217>Filedir</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Filefilter"><FONT=20
                        color=3D#9a3217>Filefilter</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#FileFindString"><FO=
NT=20
                        color=3D#9a3217>FileFindString</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Filemove"><FONT=20
                        color=3D#9a3217>Filemove</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Fileread"><FONT=20
                        color=3D#9a3217>Fileread</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Filewrite"><FONT=20
                        color=3D#9a3217>Filewrite</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#FP =
oswsadm.exe"><FONT=20
                        color=3D#9a3217>FPoswsadm.exe</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#GetUrl"><FONT=20
                        color=3D#9a3217>GetUrl</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Global"><FONT=20
                        color=3D#9a3217>Global</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Globalredirect"><FO=
NT=20
                        color=3D#9a3217>Globalredirect</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Globalsession"><FON=
T=20
                        color=3D#9a3217>Globalsession</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Httpheader"><FONT=20
                        color=3D#9a3217>Httpheader</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ListFiles"><FONT=20
                        color=3D#9a3217>ListFiles </FONT></A><FONT =
color=3D#9a3217>/=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Mail"><FONT=20
                        color=3D#9a3217>Mail</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Mailascii"><FONT=20
                        color=3D#9a3217>Mailascii</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Mailattach"><FONT=20
                        color=3D#9a3217>Mailattach</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Mailhtml"><FONT=20
                        color=3D#9a3217>Mailhtml</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#newmailobject"><FON=
T=20
                        color=3D#9a3217>Newmailobject</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Number"><FONT=20
                        color=3D#9a3217>Number</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Numberfileread"><FO=
NT=20
                        color=3D#9a3217>Numberfileread</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Numberrandom"><FONT=
=20
                        color=3D#9a3217>Numberrandom</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Permissionscaclsref=
"><FONT=20
                        color=3D#9a3217>Permissionscaclsref =
</FONT></A><FONT=20
                        color=3D#9a3217>/ </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Permissionschange">=
<FONT=20
                        =
color=3D#9a3217>Permissionschange</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Referer"><FONT=20
                        color=3D#9a3217>Referer</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#RegularExpression">=
<FONT=20
                        =
color=3D#9a3217>RegularExpression</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#savetofile"><FONT=20
                        color=3D#9a3217>SaveAndSend</FONT></A><FONT =
color=3D#9a3217>=20
                        /&nbsp; </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#savetofile"><FONT=20
                        color=3D#9a3217>Save to file</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#SearchStringinFile"=
><FONT=20
                        =
color=3D#9a3217>SearchStringinFile</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#SendForm"><FONT=20
                        color=3D#9a3217>SendForm</FONT></A><FONT =
color=3D#9a3217>=20
                        /<B> </B></FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Serverpath"><FONT=20
                        color=3D#9a3217>Serverpath</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Serverprevious"><FO=
NT=20
                        color=3D#9a3217>Serverprevious</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Serverredirect"><FO=
NT=20
                        color=3D#9a3217>Serverredirect</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Servertrack"><FONT =

                        color=3D#9a3217>Servertrack</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Servervariables"><F=
ONT=20
                        color=3D#9a3217>Servervariables</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#SetScriptTimeOut"><=
FONT=20
                        color=3D#9a3217>SetScriptTimeOut</FONT></A><FONT =

                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Sitesearch"><FONT=20
                        color=3D#9a3217>Sitesearch</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Sleep"><FONT=20
                        color=3D#9a3217>Sleep</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Sort2Arrays"><FONT =

                        color=3D#9a3217>Sort2Arrays</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#SortArray"><FONT=20
                        color=3D#9a3217>SortArray</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#SortDouble"><FONT=20
                        color=3D#9a3217>SortDouble</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#SortInteger"><FONT =

                        color=3D#9a3217>SortInteger</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#SortLong"><FONT=20
                        color=3D#9a3217>SortLong</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#SortSingle"><FONT=20
                        color=3D#9a3217>SortSingle</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#SortString"><FONT=20
                        color=3D#9a3217>SortString</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#SortVariant"><FONT =

                        color=3D#9a3217>SortVariant</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Special"><FONT=20
                        color=3D#9a3217>Special</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Specialchars"><FONT=
=20
                        color=3D#9a3217>Specialchars</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#String"><FONT=20
                        color=3D#9a3217>String</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Stringcase"><FONT=20
                        color=3D#9a3217>Stringcase</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Stringmatch"><FONT =

                        color=3D#9a3217>Stringmatch</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Stringpart"><FONT=20
                        color=3D#9a3217>Stringpart</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Stringsplit"><FONT =

                        color=3D#9a3217>Stringsplit</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Time"><FONT=20
                        color=3D#9a3217>Time</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Timeadd"><FONT=20
                        color=3D#9a3217>Timeadd</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Timediff"><FONT=20
                        color=3D#9a3217>Timediff</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Timeformat"><FONT=20
                        color=3D#9a3217>Timeformat</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Timepart"><FONT=20
                        color=3D#9a3217>Timepart</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#Timesub"><FONT=20
                        color=3D#9a3217>Timesub</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#UsernameValidation"=
><FONT=20
                        =
color=3D#9a3217>UsernameValidation</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#GetXMLAuth"><FONT=20
                        color=3D#9a3217>GetXMLAuth</FONT></A><FONT =
color=3D#9a3217>=20
                        / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#POSTForm"><FONT=20
                        color=3D#9a3217>POSTForm</FONT></A><FONT =
color=3D#9a3217> /=20
                        </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ConnecttoMySQL"><FO=
NT=20
                        color=3D#9a3217>ConnecttoMySQL</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#EditTableMySQL"><FO=
NT=20
                        color=3D#9a3217>EditTableMySQL</FONT></A><FONT=20
                        color=3D#9a3217> / </FONT><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ListTablesMySQL"><F=
ONT=20
                        =
color=3D#9a3217>ListTablesMySQL</FONT></A></FONT><SPAN=20
                        style=3D"FONT-SIZE: 9pt"> <A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#AuthSMTP"><FONT=20
                        color=3D#9a3217>AuthSMTP</FONT></A></FONT><SPAN=20
                        style=3D"FONT-SIZE: =
9pt"><BR>&nbsp;</SPAN></SPAN></TD></TR></TBODY></TABLE></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%">&nbsp;
                        <DIV align=3Dcenter>
                        <CENTER>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"100%" 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=3DAdovbs>Adovbs</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3Dadovbs rows=3D4 cols=3D46>&lt;%
'--------------------------------------------------------------------
' Microsoft ADO
'
' (c) 1996-1998 Microsoft Corporation.  All Rights Reserved.
'
'
'
' ADO constants include file for VBScript
'
'--------------------------------------------------------------------

'---- CursorTypeEnum Values ----
Const adOpenForwardOnly =3D 0
Const adOpenKeyset =3D 1
Const adOpenDynamic =3D 2
Const adOpenStatic =3D 3

'---- CursorOptionEnum Values ----
Const adHoldRecords =3D &amp;H00000100
Const adMovePrevious =3D &amp;H00000200
Const adAddNew =3D &amp;H01000400
Const adDelete =3D &amp;H01000800
Const adUpdate =3D &amp;H01008000
Const adBookmark =3D &amp;H00002000
Const adApproxPosition =3D &amp;H00004000
Const adUpdateBatch =3D &amp;H00010000
Const adResync =3D &amp;H00020000
Const adNotify =3D &amp;H00040000
Const adFind =3D &amp;H00080000
Const adSeek =3D &amp;H00400000
Const adIndex =3D &amp;H00800000

'---- LockTypeEnum Values ----
Const adLockReadOnly =3D 1
Const adLockPessimistic =3D 2
Const adLockOptimistic =3D 3
Const adLockBatchOptimistic =3D 4

'---- ExecuteOptionEnum Values ----
Const adRunAsync =3D &amp;H00000010
Const adAsyncExecute =3D &amp;H00000010
Const adAsyncFetch =3D &amp;H00000020
Const adAsyncFetchNonBlocking =3D &amp;H00000040
Const adExecuteNoRecords =3D &amp;H00000080

'---- ConnectOptionEnum Values ----
Const adAsyncConnect =3D &amp;H00000010

'---- ObjectStateEnum Values ----
Const adStateClosed =3D &amp;H00000000
Const adStateOpen =3D &amp;H00000001
Const adStateConnecting =3D &amp;H00000002
Const adStateExecuting =3D &amp;H00000004
Const adStateFetching =3D &amp;H00000008

'---- CursorLocationEnum Values ----
Const adUseServer =3D 2
Const adUseClient =3D 3

'---- DataTypeEnum Values ----
Const adEmpty =3D 0
Const adTinyInt =3D 16
Const adSmallInt =3D 2
Const adInteger =3D 3
Const adBigInt =3D 20
Const adUnsignedTinyInt =3D 17
Const adUnsignedSmallInt =3D 18
Const adUnsignedInt =3D 19
Const adUnsignedBigInt =3D 21
Const adSingle =3D 4
Const adDouble =3D 5
Const adCurrency =3D 6
Const adDecimal =3D 14
Const adNumeric =3D 131
Const adBoolean =3D 11
Const adError =3D 10
Const adUserDefined =3D 132
Const adVariant =3D 12
Const adIDispatch =3D 9
Const adIUnknown =3D 13
Const adGUID =3D 72
Const adDate =3D 7
Const adDBDate =3D 133
Const adDBTime =3D 134
Const adDBTimeStamp =3D 135
Const adBSTR =3D 8
Const adChar =3D 129
Const adVarChar =3D 200
Const adLongVarChar =3D 201
Const adWChar =3D 130
Const adVarWChar =3D 202
Const adLongVarWChar =3D 203
Const adBinary =3D 128
Const adVarBinary =3D 204
Const adLongVarBinary =3D 205
Const adChapter =3D 136
Const adFileTime =3D 64
Const adDBFileTime =3D 137
Const adPropVariant =3D 138
Const adVarNumeric =3D 139

'---- FieldAttributeEnum Values ----
Const adFldMayDefer =3D &amp;H00000002
Const adFldUpdatable =3D &amp;H00000004
Const adFldUnknownUpdatable =3D &amp;H00000008
Const adFldFixed =3D &amp;H00000010
Const adFldIsNullable =3D &amp;H00000020
Const adFldMayBeNull =3D &amp;H00000040
Const adFldLong =3D &amp;H00000080
Const adFldRowID =3D &amp;H00000100
Const adFldRowVersion =3D &amp;H00000200
Const adFldCacheDeferred =3D &amp;H00001000
Const adFldKeyColumn =3D &amp;H00008000

'---- EditModeEnum Values ----
Const adEditNone =3D &amp;H0000
Const adEditInProgress =3D &amp;H0001
Const adEditAdd =3D &amp;H0002
Const adEditDelete =3D &amp;H0004

'---- RecordStatusEnum Values ----
Const adRecOK =3D &amp;H0000000
Const adRecNew =3D &amp;H0000001
Const adRecModified =3D &amp;H0000002
Const adRecDeleted =3D &amp;H0000004
Const adRecUnmodified =3D &amp;H0000008
Const adRecInvalid =3D &amp;H0000010
Const adRecMultipleChanges =3D &amp;H0000040
Const adRecPendingChanges =3D &amp;H0000080
Const adRecCanceled =3D &amp;H0000100
Const adRecCantRelease =3D &amp;H0000400
Const adRecConcurrencyViolation =3D &amp;H0000800
Const adRecIntegrityViolation =3D &amp;H0001000
Const adRecMaxChangesExceeded =3D &amp;H0002000
Const adRecObjectOpen =3D &amp;H0004000
Const adRecOutOfMemory =3D &amp;H0008000
Const adRecPermissionDenied =3D &amp;H0010000
Const adRecSchemaViolation =3D &amp;H0020000
Const adRecDBDeleted =3D &amp;H0040000

'---- GetRowsOptionEnum Values ----
Const adGetRowsRest =3D -1

'---- PositionEnum Values ----
Const adPosUnknown =3D -1
Const adPosBOF =3D -2
Const adPosEOF =3D -3

'---- enum Values ----
Const adBookmarkCurrent =3D 0
Const adBookmarkFirst =3D 1
Const adBookmarkLast =3D 2

'---- MarshalOptionsEnum Values ----
Const adMarshalAll =3D 0
Const adMarshalModifiedOnly =3D 1

'---- AffectEnum Values ----
Const adAffectCurrent =3D 1
Const adAffectGroup =3D 2
Const adAffectAll =3D 3
Const adAffectAllChapters =3D 4

'---- ResyncEnum Values ----
Const adResyncUnderlyingValues =3D 1
Const adResyncAllValues =3D 2

'---- CompareEnum Values ----
Const adCompareLessThan =3D 0
Const adCompareEqual =3D 1
Const adCompareGreaterThan =3D 2
Const adCompareNotEqual =3D 3
Const adCompareNotComparable =3D 4

'---- FilterGroupEnum Values ----
Const adFilterNone =3D 0
Const adFilterPendingRecords =3D 1
Const adFilterAffectedRecords =3D 2
Const adFilterFetchedRecords =3D 3
Const adFilterPredicate =3D 4
Const adFilterConflictingRecords =3D 5

'---- SearchDirectionEnum Values ----
Const adSearchForward =3D 1
Const adSearchBackward =3D -1

'---- PersistFormatEnum Values ----
Const adPersistADTG =3D 0
Const adPersistXML =3D 1

'---- StringFormatEnum Values ----
Const adStringXML =3D 0
Const adStringHTML =3D 1
Const adClipString =3D 2

'---- ConnectPromptEnum Values ----
Const adPromptAlways =3D 1
Const adPromptComplete =3D 2
Const adPromptCompleteRequired =3D 3
Const adPromptNever =3D 4

'---- ConnectModeEnum Values ----
Const adModeUnknown =3D 0
Const adModeRead =3D 1
Const adModeWrite =3D 2
Const adModeReadWrite =3D 3
Const adModeShareDenyRead =3D 4
Const adModeShareDenyWrite =3D 8
Const adModeShareExclusive =3D &amp;Hc
Const adModeShareDenyNone =3D &amp;H10

'---- IsolationLevelEnum Values ----
Const adXactUnspecified =3D &amp;Hffffffff
Const adXactChaos =3D &amp;H00000010
Const adXactReadUncommitted =3D &amp;H00000100
Const adXactBrowse =3D &amp;H00000100
Const adXactCursorStability =3D &amp;H00001000
Const adXactReadCommitted =3D &amp;H00001000
Const adXactRepeatableRead =3D &amp;H00010000
Const adXactSerializable =3D &amp;H00100000
Const adXactIsolated =3D &amp;H00100000

'---- XactAttributeEnum Values ----
Const adXactCommitRetaining =3D &amp;H00020000
Const adXactAbortRetaining =3D &amp;H00040000

'---- PropertyAttributesEnum Values ----
Const adPropNotSupported =3D &amp;H0000
Const adPropRequired =3D &amp;H0001
Const adPropOptional =3D &amp;H0002
Const adPropRead =3D &amp;H0200
Const adPropWrite =3D &amp;H0400

'---- ErrorValueEnum Values ----
Const adErrInvalidArgument =3D &amp;Hbb9
Const adErrNoCurrentRecord =3D &amp;Hbcd
Const adErrIllegalOperation =3D &amp;Hc93
Const adErrInTransaction =3D &amp;Hcae
Const adErrFeatureNotAvailable =3D &amp;Hcb3
Const adErrItemNotFound =3D &amp;Hcc1
Const adErrObjectInCollection =3D &amp;Hd27
Const adErrObjectNotSet =3D &amp;Hd5c
Const adErrDataConversion =3D &amp;Hd5d
Const adErrObjectClosed =3D &amp;He78
Const adErrObjectOpen =3D &amp;He79
Const adErrProviderNotFound =3D &amp;He7a
Const adErrBoundToCommand =3D &amp;He7b
Const adErrInvalidParamInfo =3D &amp;He7c
Const adErrInvalidConnection =3D &amp;He7d
Const adErrNotReentrant =3D &amp;He7e
Const adErrStillExecuting =3D &amp;He7f
Const adErrOperationCancelled =3D &amp;He80
Const adErrStillConnecting =3D &amp;He81
Const adErrNotExecuting =3D &amp;He83
Const adErrUnsafeOperation =3D &amp;He84

'---- ParameterAttributesEnum Values ----
Const adParamSigned =3D &amp;H0010
Const adParamNullable =3D &amp;H0040
Const adParamLong =3D &amp;H0080

'---- ParameterDirectionEnum Values ----
Const adParamUnknown =3D &amp;H0000
Const adParamInput =3D &amp;H0001
Const adParamOutput =3D &amp;H0002
Const adParamInputOutput =3D &amp;H0003
Const adParamReturnValue =3D &amp;H0004

'---- CommandTypeEnum Values ----
Const adCmdUnknown =3D &amp;H0008
Const adCmdText =3D &amp;H0001
Const adCmdTable =3D &amp;H0002
Const adCmdStoredProc =3D &amp;H0004
Const adCmdFile =3D &amp;H0100
Const adCmdTableDirect =3D &amp;H0200

'---- EventStatusEnum Values ----
Const adStatusOK =3D &amp;H0000001
Const adStatusErrorsOccurred =3D &amp;H0000002
Const adStatusCantDeny =3D &amp;H0000003
Const adStatusCancel =3D &amp;H0000004
Const adStatusUnwantedEvent =3D &amp;H0000005

'---- EventReasonEnum Values ----
Const adRsnAddNew =3D 1
Const adRsnDelete =3D 2
Const adRsnUpdate =3D 3
Const adRsnUndoUpdate =3D 4
Const adRsnUndoAddNew =3D 5
Const adRsnUndoDelete =3D 6
Const adRsnRequery =3D 7
Const adRsnResynch =3D 8
Const adRsnClose =3D 9
Const adRsnMove =3D 10
Const adRsnFirstChange =3D 11
Const adRsnMoveFirst =3D 12
Const adRsnMoveNext =3D 13
Const adRsnMovePrevious =3D 14
Const adRsnMoveLast =3D 15

'---- SchemaEnum Values ----
Const adSchemaProviderSpecific =3D -1
Const adSchemaAsserts =3D 0
Const adSchemaCatalogs =3D 1
Const adSchemaCharacterSets =3D 2
Const adSchemaCollations =3D 3
Const adSchemaColumns =3D 4
Const adSchemaCheckConstraints =3D 5
Const adSchemaConstraintColumnUsage =3D 6
Const adSchemaConstraintTableUsage =3D 7
Const adSchemaKeyColumnUsage =3D 8
Const adSchemaReferentialConstraints =3D 9
Const adSchemaTableConstraints =3D 10
Const adSchemaColumnsDomainUsage =3D 11
Const adSchemaIndexes =3D 12
Const adSchemaColumnPrivileges =3D 13
Const adSchemaTablePrivileges =3D 14
Const adSchemaUsagePrivileges =3D 15
Const adSchemaProcedures =3D 16
Const adSchemaSchemata =3D 17
Const adSchemaSQLLanguages =3D 18
Const adSchemaStatistics =3D 19
Const adSchemaTables =3D 20
Const adSchemaTranslations =3D 21
Const adSchemaProviderTypes =3D 22
Const adSchemaViews =3D 23
Const adSchemaViewColumnUsage =3D 24
Const adSchemaViewTableUsage =3D 25
Const adSchemaProcedureParameters =3D 26
Const adSchemaForeignKeys =3D 27
Const adSchemaPrimaryKeys =3D 28
Const adSchemaProcedureColumns =3D 29
Const adSchemaDBInfoKeywords =3D 30
Const adSchemaDBInfoLiterals =3D 31
Const adSchemaCubes =3D 32
Const adSchemaDimensions =3D 33
Const adSchemaHierarchies =3D 34
Const adSchemaLevels =3D 35
Const adSchemaMeasures =3D 36
Const adSchemaProperties =3D 37
Const adSchemaMembers =3D 38

'---- SeekEnum Values ----
Const adSeekFirstEQ =3D &amp;H1
Const adSeekLastEQ =3D &amp;H2
Const adSeekAfterEQ =3D &amp;H4
Const adSeekAfter =3D &amp;H8
Const adSeekBeforeEQ =3D &amp;H10
Const adSeekBefore =3D &amp;H20

'---- ADCPROP_UPDATECRITERIA_ENUM Values ----
Const adCriteriaKey =3D 0
Const adCriteriaAllCols =3D 1
Const adCriteriaUpdCols =3D 2
Const adCriteriaTimeStamp =3D 3

'---- ADCPROP_ASYNCTHREADPRIORITY_ENUM Values ----
Const adPriorityLowest =3D 1
Const adPriorityBelowNormal =3D 2
Const adPriorityNormal =3D 3
Const adPriorityAboveNormal =3D 4
Const adPriorityHighest =3D 5

'---- CEResyncEnum Values ----
Const adResyncNone =3D 0
Const adResyncAutoIncrement =3D 1
Const adResyncConflicts =3D 2
Const adResyncUpdates =3D 4
Const adResyncInserts =3D 8
Const adResyncAll =3D 15

'---- ADCPROP_AUTORECALC_ENUM Values ----
Const adRecalcUpFront =3D 0
Const adRecalcAlways =3D 1
%&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE></CENTER></DIV>
                        <TABLE style=3D"BORDER-COLLAPSE: collapse"=20
                        borderColor=3D#111111 cellSpacing=3D0 =
cellPadding=3D0=20
                        width=3D"100%" 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><B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A =
name=3DAdo_adsi>Ado=20
                              adsi</A></FONT></B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DS2 rows=3D4 cols=3D46>Using ADO for Querying
The following example shows how Automation clients can use ActiveX Data =
Objects (ADO) to query directory services using ADSI and its OLE DB =
implementation. The ADO object model consists of the following objects:=20
Connection=20
An open connection to an OLE DB data source such as ADSI.=20
Command=20
Defines a specific command to execute against the data source.=20
Parameters=20
An optional collection for any parameters to provide to the command =
object.=20
Recordset=20
A set of records from a table, command object, or SQL syntax. A =
recordset can be created without any underlying Connection object.=20
Field=20
A single column of data in a recordset.=20
Property=20
A collection of values supplied by the provider for ADO.=20
Error=20
Contains details about data access errors, refreshed for each time an =
error occurs in a single operation.=20
For more information, see the Microsoft Platform SDK under ActiveX Data =
Objects.=20
The following example disables the user accounts on an ldap server.=20
Dim X as IADs
Dim con As New Connection, rs As New Recordset
Dim MyUser As IADsUser
   =20
con.Provider =3D "ADsDSOObject"
con.Open "Active Directory Provider", =
"CN=3DFoobar,CN=3DUsers,DC=3DMICROSOFT,DC=3DCOM,O=3DINTERNET", =
"Password"
Set rs =3D =
con.Execute("&lt;LDAP://ldapserver.microsoft.com/O=3DInternet/DC=3DCOM/DC=
=3DMICROSOFT/OU=3DMyOrg&gt;;(objectClass=3DUser);ADsPath;onelevel")
   =20
While Not rs.EOF
    MyUser =3D GetObject(rs.Fields(0).Value)
    MyUser.AccountDisabled =3D True
    rs.MoveNext
Wend
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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><B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A =
name=3DADO_version>ADO=20
                              version</A></FONT></B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DS3 rows=3D4 cols=3D46>&lt;%
	Set conn =3D CreateObject("ADODB.Connection")
	VersionInfo =3D "ADO Version: " &amp; conn.Version=20

	Response.Write  VersionInfo
%&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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><B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              name=3DCache>Cache</A></FONT></B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DCache rows=3D4 cols=3D46>   How to stop a page from being cached
   How to force the cache to expire

How to force the cache to expire=20
Write the following on top of the HTML Page

	&lt;HEAD&gt;
	&lt;META HTTP-EQUIV=3D"Expires" CONTENT=3D"Fri, 10 Apr 1998 20:00:00 =
GMT"&gt;
	&lt;TITLE&gt;Your Page Title Here&lt;/TITLE&gt;
	&lt;/HEAD&gt;

Note :  Netscape Users might have some problem with this as the browser =
might have some problems in caching:

How to stop a page from being cached
Write the follwing code on the HTML Page

&lt;HEAD&gt;
&lt;META HTTP+EQUIV=3D"Pragma" CONTENT=3D"no-cache"&gt;
&lt;TITLE&gt;Your Page Title Here&lt;/TITLE&gt;
&lt;/HEAD&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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><B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              name=3D"Cache expire">Cache=20
                              expire</A></FONT></B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DCache_expire rows=3D4 cols=3D46>Force Browser Cache
How to stop a page from being cached
Write the follwing code on the HTML Page



&lt;HEAD&gt;
&lt;META HTTP-EQUIV=3D"Pragma" CONTENT=3D"no-cache"&gt;
&lt;TITLE&gt;Your Page Title Here&lt;/TITLE&gt;
&lt;/HEAD&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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><B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A name=3D"Cache =
stop">Cache=20
                              stop</A></FONT></B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DCache_stop rows=3D4 cols=3D46>Stop Browser Cache
How to force the cache to expire=20
Write the following on top of the HTML Page


	&lt;HEAD&gt;
	&lt;META HTTP-EQUIV=3D"Expires" CONTENT=3D"Fri, 10 Apr 1998 20:00:00 =
GMT"&gt;
	&lt;TITLE&gt;Your Page Title Here&lt;/TITLE&gt;
	&lt;/HEAD&gt;


Note :  Netscape Users might have some problem with this as the browser =
might have some problems in caching:



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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><B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              name=3D"CDONTS Retrieving messages">CDONTS =

                              Retrieving messages</A></FONT></B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DCDONTS_Retrieving_messages rows=3D4 cols=3D46>How to Retrieve =
E-mail Messages from SMTP server running under IIS
=20
Set objSession =3D CreateObject ("CDONTS.Session")=20
objSession.LogonSMTP "My name", "some_email_address@domain.com"=20
Set objInbox =3D objSession.GetDefaultFolder(1)=20

Set collMessages =3D objInbox.Messages
Response.write "You have : " &amp; collMessages.Count &amp; " =
messages&lt;br&gt;&lt;br&gt;&lt;br&gt;"

For Each Mess in collMessages
Response.write  "&lt;br&gt;&lt;br&gt;New message =
begin&lt;br&gt;&lt;br&gt;"
Response.write  Mess.text
next

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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><B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
name=3DDatabase>Database</A></FONT></B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDatabase rows=3D4 cols=3D46>   How to connect to database
   I do not wish to write DB connect code in every page, How ?=20
   How to write a simple select statement and display the result?=20



How to connect to database in ASP=20

There are tow ways of connecting ot a database.
Using a System DSN
1.) Create a system DSN using the ODBC Wizard in the Control Panel
2.) Connect to the database using a simple connection string: =
"DSN=3DSystem
DSN Name"


Using a  DSN-less connection
1.) Place the Access database file (the *.mdb file) in a web-shared =
directory
2.) Specify the driver and the physical location of the database file



Setting Up a DSN=20
You need to set up a DSN (Data Source Name) for each database that you =
uses.
Following is the process of setting DSN

Simply double-click the ODBC applet in the Control Panel
-&gt; Choose the System DSN tab
-&gt; Click Add

Choose the type of database (MS Acccess in this case)
-&gt; Click finish.

Now type in the Database Name in the Data Source Name box
-&gt; Click Select.
-&gt; Navigate to the drive and directory where the database is
located, and select it.
-&gt; Close the window now.

Now, its all set to call the database by name in your scripts
The system will know which ODBC driver to use and also the location =
database is located.
Now each time you need to access the Database just create the connection =
object as follows.

&lt;%
Dim objConn
Set objConn =3D Server.CreateObject("ADODB.Connection")
objConn.ConnectionString =3D "DSN=3DmyDSN"
objConn.Open
%&gt;











I do not wish to write connect script each time. How do I do it ?
Now each time you need to access the Database just create the connection
object as follows.

&lt;%
Dim objConn
Set objConn =3D Server.CreateObject("ADODB.Connection")
objConn.ConnectionString =3D "DSN=3DmyDSN"
objConn.Open
%&gt;


Hey, But don't you think that writing this script on each page would not =
be a good idea in terms of scalability !
A better approach would be to have this code in an include file =
centrally.
Create a file called say 'dbObject.asp' and perhaps place it in the
/scripts directory.

dbObject.asp might look something like this
&lt;%
Dim objConn
Set objConn =3D Server.CreateObject("ADODB.Connection")
objConn.ConnectionString =3D "DSN=3DmyDSN"
objConn.Open
%&gt;

Add the following in every page   page that you need to use database =
connectivity.

&lt;!--#include virtual=3D"/scripts/dbObject.asp"--&gt;







How to write a simple select statement and display the result
Select the Last and First Name from Employee Table

&lt;%

'On Error Resume Next
Dim conn
' Create Connection Object
set conn =3D Server.CreateObject("Adodb.Connection")
conn.open "empDSN"
set rs    =3D Server.CreateObject("Adodb.Recordset")
empSQL   =3D "SELECT lasttname, firstname from Employee"
rs.open empSQL, conn

If rs.eof then
	response.write "There are no records in the database"
Else
Do While Not rs.EOF
	Response.write rs.fields("lastname") &amp; rs.fields("firstname") &amp; =
""
	rs.MoveNext
Loop
End If
%&gt;


&lt;%
con.Close
%&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDatabaselisttables>Databaselisttables</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDatabaselisttables rows=3D4 cols=3D46>&lt;%@Language=3DVBScript =
%&gt;

&lt;!-- #include file=3D"adovbs.inc"--&gt;

&lt;%
  ' Create a connection object
  Set Conn =3D Server.CreateObject ("ADODB.Connection")

  ' Open the connection to the database by using ODBC DSN
  Conn.Open "DSN=3DMyDSN"

  ' Open the database schema to query the list of tables.=20
  Set Rs =3D Conn.OpenSchema (adSchemaTables)

  ' Loop through the list and print the table names
  Do While Not Rs.EOF
    Response.Write "&lt;BR&gt;" &amp; Rs ("TABLE_NAME")
    Rs.MoveNext
  Loop

  ' Close and destroy the recordset and connection objects
  Rs.Close
  Set Rs =3D Nothing

  Conn.Close
  Set Conn =3D Nothing
%&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDatabasereadtable>Databasereadtable</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDatabasereadtable rows=3D4 cols=3D46>&lt;%
'             Example how to read database file by using ODBC Data =
Source Name (DSN)


'=3D=3D=3D=3D=3D=3D=3D  Change here ! =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
myDataSourceName =3D "myDSN"   '  your ODBC DSN
TableToRead =3D "myTable"	        '  The name of the table from your =
".mdb" file
'=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


'=3D=3D=3D=3D Connecting to the database =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
If IsObject(Session("myDataSourceName_conn")) Then
    Set conn =3D Session("myDataSourceName_conn")
Else
    Set conn =3D Server.CreateObject("ADODB.Connection")
    conn.open myDataSourceName,"",""
    Set Session("myDataSourceName_conn") =3D conn
End If
sql =3D "SELECT * From " &amp; TableToRead
Set rs=3D Server.CreateObject("ADODB.Recordset")=09
rs.Open sql, conn, 3, 3
'=3D=3D=3D=3D conection is done =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D

%&gt;

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Database reading example&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;&lt;b&gt;Below should be a list of elements &lt;/p&gt;

&lt;%
'=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D  Read and display the data from the =
table =3D=3D=3D=3D=3D
On Error Resume Next
rs.MoveFirst
count=3D1
Do while not rs.eof
Response.Write count &amp; " ------------------------" &amp; =
"&lt;br&gt;"
	For i =3D 0 To rs.Fields.Count-1
	Response.Write  rs.Fields(i).Name &amp; " :    " &amp; rs.Fields(i) =
&amp; "&lt;br&gt;"
	next
rs.MoveNext
count=3Dcount+1
Loop
'=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D end =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
%&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/asp.htm#ASP SCRIPTS">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=3DDataDSNConnection>DataDSNConnection</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDataDSNConnection rows=3D4 cols=3D46>Connecting to a database =
using DSN=20
If IsObject(Session("myDataSourceName_conn")) Then
    Set conn =3D Session("myDataSourceName_conn")
Else
    Set conn =3D Server.CreateObject("ADODB.Connection")
    conn.open myDataSourceName,"",""
    Set Session("myDataSourceName_conn") =3D conn
End If
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDataDSN-LessConnection>DataDSN-LessConnection</A></B><BR></FONT><S=
PAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDataDSN_LessConnection rows=3D4 cols=3D46>ASP Database connection
ODBC DSNLess connection example

&lt;%

Set dbc =3D Server.CreateObject("ADODB.Connection")

MdbFilePath =3D Server.MapPath("/data/data.mdb")

strConn=3D "Driver=3D{Microsoft Access Driver (*.mdb)}; DBQ=3D" &amp; =
MdbFilePath &amp; ";uid=3DAdmin;pwd=3D;"=20

dbc.open strconn

%&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDataMSSQLconnection>DataMSSQLconnection</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDataMSSQLconnection rows=3D4 cols=3D46>Example how to connect to =
MS SQL server database


&lt;html&gt;

&lt;head&gt;
&lt;meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dwindows-1252"&gt;

&lt;title&gt;MS SQL CONNECTION TEST&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;


&lt;%
set rs =3D server.createobject("ADODB.Recordset")

DsnWebSQL =3D =
"Provider=3DSQLOLEDB;Server=3D128.121.4.12;Database=3DDataName;UID=3Duser=
;PWD=3Dpassword;"




rs.CursorLocation =3D 3
timer1 =3D timer
response.write "beginning time=3D" &amp; timer1 &amp; "&lt;br&gt;"
rs.Open "SELECT top 20 * FROM TableName", DsnWebSQL

timer2 =3D timer
response.write "time to select record=3D" &amp; (timer2 - timer1) &amp; =
"&lt;br&gt;"
Do While rs.EOF =3D False
	response.write "&lt;br&gt;" &amp; rs.Fields(1)
        rs.MoveNext
Loop

response.write "&lt;br&gt;time to fetch " &amp; rs.recordcount &amp; " =
records =3D" &amp; timer - timer2

rs.close
set rs =3D nothing
%&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/asp.htm#ASP SCRIPTS">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=3DDate>Date</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDate rows=3D4 cols=3D46>   Date formats
   Date Parts
   Date Add and Subtract
   Date Difference
   Is this year a Leap year
   How to calculate Julian Date
   Date countdown till a given date
   First and Last day of Month


Date Format  [ Relative to the date as 2/7/2000 10:37:48 AM ]


&lt;%=3DFormatDateTime(Now(),1) %&gt;=20
Outputs as :  Monday, February 07, 2000


&lt;%=3DFormatDateTime(Now(),2)%&gt;
Outputs as :  2/7/2000


&lt;%=3DNow%&gt;
Outputs as :  2/7/2000 10:24:57 AM



Date Part  [ Relative to the date 2/7/2000 10:37:48 AM ]

Day

Today is &lt;%=3DDay(Date)%&gt;
Outputs as :  Today is 7

Week=20

This is week # &lt;%=3D DatePart("ww",date)%&gt; of the this year=20
Outputs as :  This is week # 7 of this year


This is weekday &lt;%=3D WeekDay(Date)%&gt; of this year
Outputs as :  This is weekday 2 of this year


Today is &lt;%=3DWeekDayName(WeekDay(Date))%&gt;=20
Outputs as :  Today is Monday


Month=20


The month Now is &lt;%=3DMonth(Date)%&gt;=20
Outputs :  The month Now is 2



Another way, of saying the current month is =
&lt;%=3D(DatePart("m",date))%&gt;=20
Outputs   :  Another way, of saying the current month is 2



The MonthName is &lt;%=3DMonthName(Month(Date))%&gt;=20
Outputs :  The MonthName is February


Year

The year is &lt;%=3DYear(Date)%&gt;
Outputs : The year is 2000







Date Add and Subtract


Add

Day=20

2 Days from 2/9/2000 it will be   =
&lt;%=3DDateAdd("d",2,CDate("2/9/2000"))%&gt;
Outputs : 2 Days from now it will be 2/11/2000

Month=20

2 Months from 2/9/2000 it will be   =
&lt;%=3DDateAdd("m",2,CDate("2/9/2000"))%&gt;
Outputs : 2 Months from 2/9/2000 it will be 4/9/2000

Year=20

2 Years from 2/9/2000 it will be =
&lt;%=3DDateAdd("yyyy",2,CDate("2/9/2000"))%&gt;
Outputs : 2 Years from 2/9/2000 it will be 2/9/2002


Subtract


Day=20

2 Days back from 2/9/2000 it was   =
&lt;%=3DDateAdd("d",-2,CDate("2/9/2000"))%&gt;
Outputs : 2 Days back from now it was be 2/7/2000

Month=20

2 Months back from 2/9/2000 it was be   =
&lt;%=3DDateAdd("m",-2,CDate("2/9/2000"))%&gt;
Outputs : 2 Months back from 2/9/2000 it was 12/9/1999

Year=20

2 Years from 2/9/2000 it will be =
&lt;%=3DDateAdd("yyyy",-2,CDate("2/9/2000"))%&gt;
Outputs : 2 Years back from 2/9/2000 it was 2/9/1998




Date Difference     	[ Relative Date : 2/7/2000 ]

Day

Its &lt;%=3DDateDiff("d","2/7/2000","8/15/1947")*-1 %&gt; days between   =
'8/15/1947' and '2/7/2000'
Outputs : Its 19169 days   between   '8/15/1947' and '2/7/2000'

Week

Its &lt;%=3DDateDiff("ww","2/7/2000","8/15/1947")*-1 %&gt; weeks between =
  '8/15/1947' and '2/7/2000'
Outputs : Its 2739 weeks   between   '8/15/1947' and '2/7/2000'

Month

Its &lt;%=3DDateDiff("m","2/7/2000","8/15/1947")*-1 %&gt; months between =
  '8/15/1947' and '2/7/2000'
Outputs : Its 630 months   between   '8/15/1947' and '2/7/2000'

Quarter

Its &lt;%=3DDateDiff("q","2/7/2000","8/15/1947")*-1 %&gt;   quarters =
between   '8/15/1947' and '2/7/2000'
Outputs : Its 210 Quarters   between   '8/15/1947' and '2/7/2000'

Year

Its &lt;%=3DDateDiff("yyyy","2/7/2000","8/15/1947")*-1 %&gt; years =
between   '8/15/1947' and '2/7/2000'
Outputs : Its 53   between   '8/15/1947' and '2/7/2000'




Leap Year

&lt;%
Dim lYear
lYear      =3D Year(CDate("2/9/2000"))
leap_yes =3D "is a leap year"
leap_no   =3D "is not a leap year"
If (lYear mod 4 =3D 0) AND ((lYear mod 1  0) OR (lYear mod 4 =3D 0)) =
then
' It is a Leap Year
Response.Write lYear &amp; " " &amp; leap_yes
else
' it is not a leap year
Response.Write lYear &amp; " " &amp; leap_no
End if
%gt;
Outputs : 2000 is a leap year




Julian Date=20

&lt;%
d0=3DDateSerial ("2000", "1", "1")
d1=3DDate - d0 + 1
Response.write "Today's Julian Date Is #" &amp; d1
%&gt;=20
Outputs : Today's Julian Date Is #38



Date Countdown

&lt;%
dim strDateTime
strDateTime =3D   CDate("2/9/2000")
strFutureDay =3D #12/31#
Response.write "There are" &amp; INT(strFutureDay - strDateTime) &amp; " =
more days till December 31st."
%&gt;=20
Outputs : There are 327 more days till December 31st.

=09


How to find first and last day of the month=20

Calculate first date of current month

&lt;%
BaseDate =3D CDate("2/9/2000")
FirstOfMonth =3D DateSerial(Year(BaseDate), Month(BaseDate) + iOffset, =
1)
Response.write "The first date of this month is " &amp; FirstOfMonth
%&gt;
Outputs : The first date of this month is 2/1/2000


Calculate last date of current month

&lt;%
BaseDate =3D CDate("2/9/2000")
EndOfMonth =3D DateSerial(Year(BaseDate), Month(BaseDate) + 1, 0)
Response.write "The last date of this month is " &amp; EndOfMonth
%&gt;
Outputs : The last date of this month is 2/29/2000


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDateadd>Dateadd</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDateadd rows=3D4 cols=3D46>Date Add

Day=20

2 Days from 2/9/2000 it will be  =
&lt;%=3DDateAdd("d",2,CDate("2/9/2000"))%&gt;
Outputs : 2 Days from now it will be 2/11/2000

Month=20

2 Months from 2/9/2000 it will be  =
&lt;%=3DDateAdd("m",2,CDate("2/9/2000"))%&gt;
Outputs : 2 Months from 2/9/2000 it will be 4/9/2000

Year=20

2 Years from 2/9/2000 it will be =
&lt;%=3DDateAdd("yyyy",2,CDate("2/9/2000"))%&gt;
Outputs : 2 Years from 2/9/2000 it will be 2/9/2002


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDatecountdown>Datecountdown</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDatecountdown rows=3D4 cols=3D46>Date Countdown

&lt;%
dim strDateTime
strDateTime =3D  CDate("2/9/2000")
strFutureDay =3D #12/31#
Response.write "There are" &amp; INT(strFutureDay - strDateTime) &amp; " =
more days till December 31st."
%&gt;=20
Outputs : There are 327 more days till December 31st.


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDatediff>Datediff</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDatediff rows=3D4 cols=3D46>Date Difference    	[ Relative Date : =
2/7/2000 ]

Day

Its &lt;%=3DDateDiff("d","2/7/2000","8/15/1947")*-1 %&gt; days between  =
'8/15/1947' and '2/7/2000'
Outputs : Its 19169 days  between  '8/15/1947' and '2/7/2000'

Week

Its &lt;%=3DDateDiff("ww","2/7/2000","8/15/1947")*-1 %&gt; weeks between =
 '8/15/1947' and '2/7/2000'
Outputs : Its 2739 weeks  between  '8/15/1947' and '2/7/2000'

Month

Its &lt;%=3DDateDiff("m","2/7/2000","8/15/1947")*-1 %&gt; months between =
 '8/15/1947' and '2/7/2000'
Outputs : Its 630 months  between  '8/15/1947' and '2/7/2000'

Quarter

Its &lt;%=3DDateDiff("q","2/7/2000","8/15/1947")*-1 %&gt;  quarters =
between  '8/15/1947' and '2/7/2000'
Outputs : Its 210 Quarters  between  '8/15/1947' and '2/7/2000'

Year

Its &lt;%=3DDateDiff("yyyy","2/7/2000","8/15/1947")*-1 %&gt; years =
between  '8/15/1947' and '2/7/2000'
Outputs : Its 53  between  '8/15/1947' and '2/7/2000'


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDatefirstlast>Datefirstlast</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDatefirstlast rows=3D4 cols=3D46>First and Last day of Month
How to find first and last day of the month=20

Calculate first date of current month

&lt;%
BaseDate =3D CDate("2/9/2000")
FirstOfMonth =3D DateSerial(Year(BaseDate), Month(BaseDate) + iOffset, =
1)
Response.write "The first date of this month is " &amp; FirstOfMonth
%&gt;
Outputs : The first date of this month is 2/1/2000


Calculate last date of current month

&lt;%
BaseDate =3D CDate("2/9/2000")
EndOfMonth =3D DateSerial(Year(BaseDate), Month(BaseDate) + 1, 0)
Response.write "The last date of this month is " &amp; EndOfMonth
%&gt;
Outputs : The last date of this month is 2/29/2000


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDateformat>Dateformat</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDateformat rows=3D4 cols=3D46>Date Format  [ Relative to the date =
as 2/7/2000 10:37:48 AM ]


&lt;%=3DFormatDateTime(Now(),1) %&gt;=20
Outputs as :  Monday, February 07, 2000


&lt;%=3DFormatDateTime(Now(),2)%&gt;
Outputs as :  2/7/2000


&lt;%=3DNow%&gt;
Outputs as :  2/7/2000 10:24:57 AM



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDatejulian>Datejulian</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDatejulian rows=3D4 cols=3D46>Julian Date=20

&lt;%
d0=3DDateSerial ("2000", "1", "1")
d1=3DDate - d0 + 1
Response.write "Today's Julian Date Is #" &amp; d1
%&gt;=20
Outputs : Today's Julian Date Is #38



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDateleap>Dateleap</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDateleap rows=3D4 cols=3D46>Leap Year

&lt;%
Dim lYear
lYear    =3D Year(CDate("2/9/2000"))
leap_yes =3D "is a leap year"
leap_no  =3D "is not a leap year"
If (lYear mod 4 =3D 0) AND ((lYear mod 1  0) OR (lYear mod 4 =3D 0)) =
then
' It is a Leap Year
Response.Write lYear &amp; " " &amp; leap_yes
else
' it is not a leap year
Response.Write lYear &amp; " " &amp; leap_no
End if
%&gt;
Outputs : 2000 is a leap year





</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDatepart>Datepart</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDatepart rows=3D4 cols=3D46>Date Part  [ Relative to the date =
2/7/2000 10:37:48 AM ]

Day

Today is &lt;%=3DDay(Date)%&gt;
Outputs as :  Today is 7

Week=20

This is week # &lt;%=3D DatePart("ww",date)%&gt; of the this year=20
Outputs as :  This is week # 7 of this year


This is weekday &lt;%=3D WeekDay(Date)%&gt; of this year
Outputs as :  This is weekday 2 of this year


Today is &lt;%=3DWeekDayName(WeekDay(Date))%&gt;=20
Outputs as :  Today is Monday


Month=20


The month Now is &lt;%=3DMonth(Date)%&gt;=20
Outputs :  The month Now is 2



Another way, of saying the current month is =
&lt;%=3D(DatePart("m",date))%&gt;=20
Outputs  :  Another way, of saying the current month is 2



The MonthName is &lt;%=3DMonthName(Month(Date))%&gt;=20
Outputs :  The MonthName is February


Year

The year is &lt;%=3DYear(Date)%&gt;
Outputs : The year is 2000


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDatesub>Datesub</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDatesub rows=3D4 cols=3D46>Date Subtract

Day=20

2 Days back from 2/9/2000 it was  =
&lt;%=3DDateAdd("d",-2,CDate("2/9/2000"))%&gt;
Outputs : 2 Days back from now it was be 2/7/2000

Month=20

2 Months back from 2/9/2000 it was be  =
&lt;%=3DDateAdd("m",-2,CDate("2/9/2000"))%&gt;
Outputs : 2 Months back from 2/9/2000 it was 12/9/1999

Year=20

2 Years from 2/9/2000 it will be =
&lt;%=3DDateAdd("yyyy",-2,CDate("2/9/2000"))%&gt;
Outputs : 2 Years back from 2/9/2000 it was 2/9/1998

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDbcommon>Dbcommon</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDbcommon rows=3D4 cols=3D46>I do not wish to write connect script =
each time. How do I do it ?
Now each time you need to access the Database just create the connection
object as follows.

&lt;%
Dim objConn
Set objConn =3D Server.CreateObject("ADODB.Connection")
objConn.ConnectionString =3D "DSN=3DmyDSN"
objConn.Open
%&gt;


Hey, But don't you think that writing this script on each page would not =
be a good idea in terms of scalability !
A better approach would be to have this code in an include file =
centrally.
Create a file called say 'dbObject.asp' and perhaps place it in the
/scripts directory.

dbObject.asp might look something like this
&lt;%
Dim objConn
Set objConn =3D Server.CreateObject("ADODB.Connection")
objConn.ConnectionString =3D "DSN=3DmyDSN"
objConn.Open
%&gt;

Add the following in every page  page that you need to use database =
connectivity.

&lt;!--#include virtual=3D"/scripts/dbObject.asp"--&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDbconnect>Dbconnect</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDbconnect rows=3D4 cols=3D46>Connect to Database
How to connect to database in ASP=20

There are two ways of connecting ot a database.
Using a System DSN
1.) Create a system DSN using the ODBC Wizard in the Control Panel
2.) Connect to the database using a simple connection string: =
"DSN=3DSystem
DSN Name"


Using a  DSN-less connection
1.) Place the Access database file (the *.mdb file) in a web-shared =
directory
2.) Specify the driver and the physical location of the database file



Setting Up a DSN=20
You need to set up a DSN (Data Source Name) for each database that you =
uses.
Following is the process of setting DSN

Simply double-click the ODBC applet in the Control Panel
-&gt; Choose the System DSN tab
-&gt; Click Add

Choose the type of database (MS Acccess in this case)
-&gt; Click finish.

Now type in the Database Name in the Data Source Name box
-&gt; Click Select.
-&gt; Navigate to the drive and directory where the database is
located, and select it.
-&gt; Close the window now.

Now, its all set to call the database by name in your scripts
The system will know which ODBC driver to use and also the location =
database is located.
Now each time you need to access the Database just create the connection =
object as follows.

&lt;%
Dim objConn
Set objConn =3D Server.CreateObject("ADODB.Connection")
objConn.ConnectionString =3D "DSN=3DmyDSN"
objConn.Open
%&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDbselect>Dbselect</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDbselect rows=3D4 cols=3D46>A simple Database Select
=20
How to write a simple select statement and display the result
Select the Last and First Name from Employee Table

&lt;%

'On Error Resume Next
Dim conn
' Create Connection Object
set conn =3D Server.CreateObject("Adodb.Connection")
conn.open "empDSN"
set rs   =3D Server.CreateObject("Adodb.Recordset")
empSQL  =3D "SELECT lasttname, firstname from Employee"
rs.open empSQL, conn

If rs.eof then
	response.write "There are no records in the database"
Else
Do While Not rs.EOF
	Response.write rs.fields("lastname") &amp; rs.fields("firstname") &amp; =
""
	rs.MoveNext
Loop
End If
%&gt;


&lt;%
con.Close
%&gt;

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDirectory>Directory</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDirectory rows=3D4 cols=3D46>   Get the filenames of a directory
   Attributes of a Directory
   Create a  Directory
   Delete of a Directory



Get the filenames in a directory

Replace "directoryname" with your directory name.
Note : Replace 'directoryname' with the name od directory you wish to =
read
In case of NT the directory mush have read permission for being read =
from anonymous account

&lt;%Set MyDirectory=3DServer.CreateObject("Scripting.FileSystemObject")
Set MyFiles=3DMyDirectory.GetFolder(Server.MapPath("directoryname"))
For each filefound in MyFiles.files
Response.write filefound.Name
Next
%&gt;=20




Attributes of a directory

&lt;%
' Code for setting the target directory 'images'
Set fso =3D Server.CreateObject ("scripting.filesystemobject")
location =3D server.mappath("images")
Set folder =3D fso.GetFolder(location)
%&gt;



Size : &lt;% =3Dfolder.size %&gt;=20
Output :    Size : 84 bytes


Created : &lt;% =3Dfolder.datecreated %&gt;  =20
Output :    Created : 1/23/2000 10:13:13 AM


Modified : &lt;% =3Dfolder.datelastmodified %&gt;=20
Output :    Modified : 1/23/2000 10:13:14 AM


Name : &lt;% =3Dfolder.name %&gt;  =20
Output :    Name : images





Create a directory
Note : You'll need permissions on the parent directory set to allow the =
IUSR_machinename to create the directory.
This means that the IUSR will need to be given NTFS Change permissions

&lt;%
set fs=3Dcreateobject("scripting.filesystemobject")
MyFolder=3Dserver.mappath("/download/incoming/")

If NOT fs.folderexists(MyFolder) then
fs.createfolder(MyFolder)
End If
	' Check if the creation was a success or not
If fs.folderexists(MyFolder) then
Response.write "Success"
Else
Response.write "Failure."
End If
%&gt;=20





Delete a directory
Note : You'll need permissions on the parent directory set to allow the =
IUSR_machinename to create the directory.
This means that the IUSR will need to be given NTFS Change permissions

&lt;%
set fs=3Dcreateobject("scripting.filesystemobject")
MyFolder=3Dserver.mappath("/download/incoming/")

set delDir =3D fs.getfolder(myFolder)
delDir.delete
set delDir =3D Nothing

'Check if the deletion was a success or Not
If fs.folderexists(myFolder) then
Response.write "Deleted"
Else
Response.write "Error"
End If
%&gt;=20

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDirattr>Dirattr</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDirattr rows=3D4 cols=3D46>Attributes of a directory

&lt;%
' Code for setting the target directory 'images'
Set fso =3D Server.CreateObject ("scripting.filesystemobject")
location =3D server.mappath("images")
Set folder =3D fso.GetFolder(location)
%&gt;



Size : &lt;% =3Dfolder.size %&gt;=20
Output :   Size : 84 bytes


Created : &lt;% =3Dfolder.datecreated %&gt; =20
Output :   Created : 1/23/2000 10:13:13 AM


Modified : &lt;% =3Dfolder.datelastmodified %&gt;=20
Output :   Modified : 1/23/2000 10:13:14 AM


Name : &lt;% =3Dfolder.name %&gt; =20
Output :   Name : images


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDircreate>Dircreate</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDircreate rows=3D4 cols=3D46>Create a directory
Note : You'll need permissions on the parent directory set to allow the =
IUSR_machinename to create the directory.
This means that the IUSR will need to be given NTFS Change permissions

&lt;%
set fs=3Dcreateobject("scripting.filesystemobject")
MyFolder=3Dserver.mappath("/download/incoming/")

If NOT fs.folderexists(MyFolder) then
fs.createfolder(MyFolder)
End If
	' Check if the creation was a success or not
If fs.folderexists(MyFolder) then
Response.write "Success"
Else
Response.write "Failure."
End If
%&gt;=20



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDirdelete>Dirdelete</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDirdelete rows=3D4 cols=3D46>Delete a directory
Note : You'll need permissions on the parent directory set to allow the =
IUSR_machinename to create the directory.
This means that the IUSR will need to be given NTFS Change permissions

&lt;%
set fs=3Dcreateobject("scripting.filesystemobject")
MyFolder=3Dserver.mappath("/download/incoming/")

set delDir =3D fs.getfolder(myFolder)
delDir.delete
set delDir =3D Nothing

'Check if the deletion was a success or Not
If fs.folderexists(myFolder) then
Response.write "Deleted"
Else
Response.write "Error"
End If
%&gt;=20


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDirfiles>Dirfiles</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDirfiles rows=3D4 cols=3D46>Get the filenames in a directory

Replace "directoryname" with your directory name.
Note : Replace 'directoryname' with the name od directory you wish to =
read
In case of NT the directory mush have read permission for being read =
from anonymous account

&lt;%Set MyDirectory=3DServer.CreateObject("Scripting.FileSystemObject")
Set MyFiles=3DMyDirectory.GetFolder(Server.MapPath("directoryname"))
For each filefound in MyFiles.files
Response.write filefound.Name
Next
%&gt;=20


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDirRecursive>DirRecursive</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDirRecursive rows=3D4 cols=3D46>&lt;%
'********** DirFolder - Returns Delimited String of  All folders and =
files
Dim ArrayOutput, StringOutput, StringOutputType, StringOutputName, =
delimiter
delimiter =3D  "|"
Function DirFolder ( StartPath )
	On error resume next
	Dim fso,  folderObject, folderObject2, subFolder,  Files, File=20
	Set fso =3D CreateObject("Scripting.FileSystemObject")
	Set folderObject =3D fso.GetFolder(StartPath)
	Set folderObject2 =3D folderObject.SubFolders

	For Each subFolder in FolderObject2
		StringOutput =3D StringOutput &amp; subFolder &amp; delimiter
		StringOutputType =3D StringOutputType &amp; "Folder" &amp; delimiter
		StringOutputName =3D StringOutputName &amp; subFolder &amp; delimiter
		DirFolder (subFolder) 'Recursive
		Set Files =3D subFolder.Files
		For Each File in Files
			StringOutput =3D StringOutput &amp; File &amp; delimiter
			StringOutputType =3D StringOutputType &amp; File.Type &amp; delimiter
			StringOutputName =3D StringOutputName &amp; File.Name &amp; delimiter
		Next=20
	Next
end function
'**************************************************

DirFolder (Server.MapPath("/"))
ArrayOutput =3D Split (StringOutput,  delimiter)

For Each Item in ArrayOutput
	Response.Write Item &amp; "&lt;br&gt;"
next
%&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDirRecDetails>DirRecDetails</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDirRecDetails rows=3D4 cols=3D46>&lt;%
'********** DirFolder - Returns Delimited String of  All folders and =
files
Dim ArrayOutput, StringOutput, StringOutputType, StringOutputName, =
delimiter
delimiter =3D  "|"
Function DirFolder ( StartPath )
	On error resume next
	Dim fso,  folderObject, folderObject2, subFolder,  Files, File=20
	Set fso =3D CreateObject("Scripting.FileSystemObject")
	Set folderObject =3D fso.GetFolder(StartPath)
	Set folderObject2 =3D folderObject.SubFolders

	For Each subFolder in FolderObject2
		StringOutput =3D StringOutput &amp; subFolder &amp; delimiter
		StringOutputType =3D StringOutputType &amp; "Folder" &amp; delimiter
		StringOutputName =3D StringOutputName &amp; subFolder.Name &amp; =
delimiter
		DirFolder (subFolder) 'Recursive
		Set Files =3D subFolder.Files
		For Each File in Files
			StringOutput =3D StringOutput &amp; File &amp; delimiter
			StringOutputType =3D StringOutputType &amp; File.Type &amp; delimiter
			StringOutputName =3D StringOutputName &amp; File.Name &amp; delimiter
		Next=20
	Next
end function
'**************************************************

DirFolder (Server.MapPath("/"))
ArrayOutput =3D Split (StringOutput,  delimiter)
ArrayOutputType =3D Split (StringOutputType,  delimiter)
ArrayOutputName =3D Split (StringOutputName,  delimiter)
i=3D0
For Each Item in ArrayOutput
	Response.Write Item &amp; =
"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;" &amp; =
ArrayOutputType(i) &amp; =
"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;" &amp; =
ArrayOutputName(i) &amp; "&lt;br&gt;"
	i =3D i+1
next
%&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDomainNameValidation>DomainNameValidation</A></B><BR></FONT><SPAN =

                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDomainNameValidation rows=3D4 cols=3D46>function =
Is_Invalid_Domainname(domainname)
	dim re
	set re =3D new RegExp
	' list of invalid characters in a domain name.=20
	re.Pattern =3D "[/\\""\[\]:&lt;&gt;\+=3D;,@!#$%^&amp;\(\)\{\}\|~]"
	Is_Invalid_DomainName =3D  re.Test(domainname)
end function
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DDoublequote>Doublequote</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DDoublequote rows=3D4 cols=3D46>How to insert quote into a string:


MyString =3D "He said " &amp; chr(34) &amp; "Hello" &amp; chr(34) &amp; =
" to me!"

If displayed, the string would appear as :

He said "Hello" to me!
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DFile>File</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFile rows=3D4 cols=3D46>   Get the filenames of a directory
   Copy a File or Files
   Move a File or Files
   Delete a File or Files
   Read contents of File
   Write to a File
   Append to a File




Get the filenames in a directory

Replace "directoryname" with your directory name.
Note : Replace 'directoryname' with the name od directory you wish to =
read
In case of NT the directory mush have read permission for being read =
from anonymous account

&lt;%
Set MyDirectory=3DServer.CreateObject("Scripting.FileSystemObject")
Set MyFiles=3DMyDirectory.GetFolder(Server.MapPath("directoryname"))
For each filefound in MyFiles.files
Response.write filefound.Name
Next
%&gt;=20





Copy a File

Use the file system operations, Copy is supported by the =
FileSystemObject object.
CopyFile source, destination[, overwrite]

&lt;%
Dim fileObj
Set fileObj =3D Server.CreateObject("Scripting.FileSystemObject")
fileObj.CopyFile "C:\InetPub\wwwroot\*.txt", "C:\Windows\Temp"
Set fileObj =3D Nothing
&gt;%=20
Note : The user must have write permissions to copy a file from one =
directory to another.=20





Move a File or Files

Use the file system operations, Rename is supported by the =
FileSystemObject object.
MoveFile source, destination

&lt;%
Dim fileObj
Set fileObj =3D Server.CreateObject("Scripting.FileSystemObject")
fileObj.MoveFile "C:\InetPub\wwwroot\*.txt", "C:\Windows\Temp"
Set fileObj =3D Nothing
%&gt;=20
Note : The user must have minimum delete permissions on the source =
directory
and write permissions on the destination directory.=20





Delete a File or Files

&lt;%
Dim fileObj
Set fileObj =3D Server.CreateObject("Scripting.FileSystemObject")
fileObj.DeleteFile "C:\InetPub\wwwroot\*.txt", False
Set fileObj =3D Nothing
%&gt;=20
Note :	The optional parameter for the DeleteFile method is Force.
	This defaults to False, and determines whether or not read-only files =
will be deleted.
	Only if Force is set to True will read-only files be deleted.  =20





Read a File
&lt;%
Set fs         =3D CreateObject("Scripting.FileSystemObject")
filename      =3D server.mappath("/somedirectory/readfile.txt")
Set thisfile=3D fs.OpenTextFile(filename,1,False)
Do until thisfile.AtEndOfStream
	thisline =3D thisfile.readline
	If thisline  "" then
	    Response.write thisline
	End If
Loop
thisfile.close
set thisfile =3D Nothing
set fs          =3D Nothing

%&gt;=20




Write to a File
&lt;%

Set myText =3D "Hi, I am writing to a file "
Set fs         =3D CreateObject("Scripting.FileSystemObject")
filename      =3D server.mappath("/somedirectory/writefile.txt")
Set thisfile=3D fs.OpenTextFile(filename,2,True)
thisfile.writeline(myText)
thisfile.close
Set thisfile =3D Nothing
Set fs          =3D Nothing

%&gt;=20




Append to a File
&lt;%
Set myText    =3D "Hi, I am writing to a file "
Set fs          =3D CreateObject("Scripting.FileSystemObject")
filename       =3D server.mappath("/somedirectory/appendfile.txt")
Set thisfile =3D fs.OpenTextFile(filename,8,True)
thisfile.writeline(myText)
thisfile.close
Set thisfile =3D Nothing
Set fs          =3D Nothing
%&gt;=20


Note :
Notice the numbers 1,2 and 8 in the above examples. Here is what they =
represent
1: Opens file for reading. Cannot write to this file
2: Opens file for writing. This file can't be read. Writing anything to =
this file would overwrite the previous contents.
8: Opens the file for appending. The previous contents is not =
overwritten.


Notice the "True" and "False"   parameters in examples above
True: The file will be created if it doesn't exist
False: A new will not be created if it doesn't already exist.


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DFileappend>Fileappend</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFileappend rows=3D4 cols=3D46>Append to a File
&lt;%
Set myText   =3D "Hi, I am writing to a file "
Set fs       =3D CreateObject("Scripting.FileSystemObject")
filename     =3D server.mappath("/somedirectory/appendfile.txt")
Set thisfile =3D fs.OpenTextFile(filename,8,True)
thisfile.writeline(myText)
thisfile.close
Set thisfile =3D Nothing
Set fs       =3D Nothing
%&gt;=20



Notice the numbers 1,2 and 8 in the above examples. Here is what they =
represent
1: Opens file for reading. Cannot write to this file
2: Opens file for writing. This file can't be read. Writing anything to =
this file would overwrite the previous contents.
8: Opens the file for appending. The previous contents is not =
overwritten.


Notice the "True" and "False"  parameters in examples above
True: The file will be created if it doesn't exist
False: A new will not be created if it doesn't already exist.


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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 =

                              style=3D"FONT-SIZE: 9pt"><B><A=20
                              =
name=3DFileappend2>Fileappend2</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFileappend2 rows=3D4 cols=3D46>&lt;%
Function AppendToFile (RelativeFilePath, LineToAppend)
	Set fs       =3D CreateObject("Scripting.FileSystemObject")
	filename     =3D server.mappath(RelativeFilePath)
	Set thisfile =3D fs.OpenTextFile(filename,8,True)
	thisfile.writeline(LineToAppend)
	thisfile.close
	Set thisfile =3D Nothing
	Set fs       =3D Nothing
end function


RelativeFilePath =3D "/config/config.txt"
LineToAppend     =3D "User=3DNewUser"

AppendToFile RelativeFilePath, LineToAppend

%&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DFilecopy>Filecopy</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFilecopy rows=3D4 cols=3D46>Copy a File

Use the file system operations, Copy is supported by the =
FileSystemObject object.
CopyFile source, destination[, overwrite]

&lt;%
Dim fileObj
Set fileObj =3D Server.CreateObject("Scripting.FileSystemObject")
fileObj.CopyFile "C:\InetPub\wwwroot\*.txt", "C:\Windows\Temp"
Set fileObj =3D Nothing
%&gt;=20
Note : The user must have write permissions to copy a file from one =
directory to another.=20


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DFiledelete>Filedelete</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFiledelete rows=3D4 cols=3D46>Delete a File or Files

&lt;%
Dim fileObj
Set fileObj =3D Server.CreateObject("Scripting.FileSystemObject")
fileObj.DeleteFile "C:\InetPub\wwwroot\*.txt", False
Set fileObj =3D Nothing
%&gt;=20
Note :	The optional parameter for the DeleteFile method is Force.
	This defaults to False, and determines whether or not read-only files =
will be deleted.
	Only if Force is set to True will read-only files be deleted. =20


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DFiledir>Filedir</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFiledir rows=3D4 cols=3D46>Get the filenames in a directory

Replace "directoryname" with your directory name.
Note : Replace 'directoryname' with the name od directory you wish to =
read
In case of NT the directory mush have read permission for being read =
from anonymous account

&lt;%
Set MyDirectory=3DServer.CreateObject("Scripting.FileSystemObject")
Set MyFiles=3DMyDirectory.GetFolder(Server.MapPath("directoryname"))
For each filefound in MyFiles.files
Response.write filefound.Name
Next
%&gt;=20


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DFilefilter>Filefilter</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFilefilter rows=3D4 cols=3D46>&lt;%
Function IfCanceled(ID)
	CanceledFile =3D "/canceled/canceled.txt"
	IfCanceled=3DFalse
	Set fs      =3D CreateObject("Scripting.FileSystemObject")
	filename    =3D server.mappath(CanceledFile)
	Set thisfile=3D fs.OpenTextFile(filename,1,False)
	Do until thisfile.AtEndOfStream
		thisline =3D thisfile.readline
		If LCase(ID)=3DLCase(thisline) then IfCanceled=3DTrue
	Loop
	thisfile.close
	set thisfile =3D Nothing
	set fs       =3D Nothing
end function


If  (IfCanceled(ID) then
	Response.Write "Canceled."
else
	Response.Write "Valid."
end if

%&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DFileFindString>FileFindString</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFileFindString rows=3D4 cols=3D46>&lt;%
Function RegExpTest(patrn, strng)
    Dim regEx, Match, Matches ' Create variable.
    Set regEx =3D New RegExp ' Create regular expression.
    regEx.Pattern =3D "\b" &amp; patrn &amp; "\b"  ' Set pattern.
    regEx.IgnoreCase =3D True ' Set case insensitivity.
    regEx.Global =3D True ' Set global applicability.
    Set Matches =3D regEx.Execute(strng) ' Execute search.

    RegExpTest =3D Matches.Count
End Function


Function SearchInFileResult(PathToFile, SearchString)
    If Len(SearchString) &lt; 3 Then
        SearchInFileResult =3D 0
    Else
        SearchString =3D Replace(SearchString, ",", "")
        SearchString =3D Replace(SearchString, ".", "")
        SearchWords =3D Split(SearchString, " ")
        Dim FoundCounter
        FoundCounter =3D 0
        Set fso =3D CreateObject("Scripting.FileSystemObject")
        Set File =3D fso.GetFile(PathToFile)

        For Each SearchWord In SearchWords
            Set TextStream =3D File.OpenAsTextStream
                If Len(SearchWord) &lt; 3 Then
                Else
                    S =3D TextStream.ReadAll
                    ThisSearchResult =3D RegExpTest(Trim(SearchWord), S)
                    FoundCounter =3D FoundCounter + ThisSearchResult
                End If
            TextStream.Close
        Next

        Set fso =3D Nothing
        Set File =3D Nothing
        Set TextStream =3D Nothing

        SearchInFileResult =3D FoundCounter
    End If
End Function

Sub File_Find_String (StartPath, SearchString)
    On error resume next
    Dim fso, folderObject, folderObject2, subFolder, Files, File
    Set fso =3D CreateObject("Scripting.FileSystemObject")
    Set folderObject =3D fso.GetFolder(StartPath)
    Set folderObject2 =3D folderObject.SubFolders

    For Each subFolder In folderObject2
        'If IfPublicDir(subFolder.Name) =3D 1 Then
            'StringOutput =3D StringOutput &amp; subFolder &amp; =
delimiter
            'StringOutputType =3D StringOutputType &amp; "Folder" &amp; =
delimiter
            'StringOutputName =3D StringOutputName &amp; subFolder.Name =
&amp; delimiter
            DirFolder (subFolder) 'Recursive
            Set Files =3D subFolder.Files
            For Each File In Files
                'Response.Write File
                Hits =3D SearchInFileResult(File, SearchString)
                If Hits &gt; 0 Then
                    StringOutput =3D StringOutput &amp; Hits &amp; "   " =
&amp; File &amp; delimiter
                    StringOutputType =3D StringOutputType &amp; =
File.Type &amp; delimiter
                    StringOutputName =3D StringOutputName &amp; =
File.Name &amp; delimiter
                End If
            Next
        'End If
    Next
End Sub


Dim nl, delimiter, StringOutput, StringOutputType, StringOutputName
nl =3D Chr(13) &amp; Chr(10)
delimiter =3D "|"

StartPath =3D Server.MapPath("/")
SearchString =3D "mail"
Response.Write "Search result from : " &amp; StartPath &amp; =
"&lt;br&gt;"
Response.Write "Search Criteria : " &amp; SearchString &amp; =
"&lt;br&gt;"

File_Find_String StartPath, SearchString
   ResultArray =3D Split(StringOutput, Delimiter)
   For Each Item In ResultArray
        Response.Write Item &amp; "&lt;br&gt;"
   next
=20
%&gt;












</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DFilemove>Filemove</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFilemove rows=3D4 cols=3D46>Move a File or Files

Use the file system operations, Rename is supported by the =
FileSystemObject object.
MoveFile source, destination

&lt;%
Dim fileObj
Set fileObj =3D Server.CreateObject("Scripting.FileSystemObject")
fileObj.MoveFile "C:\InetPub\wwwroot\*.txt", "C:\Windows\Temp"
Set fileObj =3D Nothing
%&gt;
Note : The user must have minimum delete permissions on the source =
directory
and write permissions on the destination directory.=20


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DFileread>Fileread</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFileread rows=3D4 cols=3D46>     Read a File
&lt;%
Set fs      =3D CreateObject("Scripting.FileSystemObject")
filename    =3D server.mappath("/somedirectory/readfile.txt")
Set thisfile=3D fs.OpenTextFile(filename,1,False)
Do until thisfile.AtEndOfStream
	thisline =3D thisfile.readline
	If thisline  "" then
	   Response.write thisline
	End If
Loop
thisfile.close
set thisfile =3D Nothing
set fs       =3D Nothing

%&gt;

      Read ALL


&lt;%
Set fs      =3D CreateObject("Scripting.FileSystemObject")
filename    =3D server.mappath("/files/data.txt")
Set thisfile=3D fs.OpenTextFile(filename,1,False)
	S =3D  thisfile.ReadAll
thisfile.close

Response.Write S

set thisfile =3D Nothing
set fs       =3D Nothing

%&gt;



Notice the numbers 1,2 and 8 in the above examples. Here is what they =
represent
1: Opens file for reading. Cannot write to this file
2: Opens file for writing. This file can't be read. Writing anything to =
this file would overwrite the previous contents.
8: Opens the file for appending. The previous contents is not =
overwritten.


Notice the "True" and "False"  parameters in examples above
True: The file will be created if it doesn't exist
False: A new will not be created if it doesn't already exist.



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DFilewrite>Filewrite</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFilewrite rows=3D4 cols=3D46>Write to a File
&lt;%

Set myText =3D "Hi, I am writing to a file "
Set fs      =3D CreateObject("Scripting.FileSystemObject")
filename    =3D server.mappath("/somedirectory/writefile.txt")
Set thisfile=3D fs.OpenTextFile(filename,2,True)
thisfile.writeline(myText)
thisfile.close
Set thisfile =3D Nothing
Set fs       =3D Nothing

%&gt;




Notice the numbers 1,2 and 8 in the above examples. Here is what they =
represent
1: Opens file for reading. Cannot write to this file
2: Opens file for writing. This file can't be read. Writing anything to =
this file would overwrite the previous contents.
8: Opens the file for appending. The previous contents is not =
overwritten.


Notice the "True" and "False"  parameters in examples above
True: The file will be created if it doesn't exist
False: A new will not be created if it doesn't already exist.


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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><B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A name=3D"FP =
oswsadm.exe">FP=20
                              oswsadm.exe</A></FONT></B><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DFP_oswsadm rows=3D4 cols=3D46>To view the command-line options =
for Owsadm.exe, follow these steps:=20
Click Start, and then click Run.=20
In the Open box, type cmd and then press ENTER.=20
At the operating system prompt, go to the \Program Files\Common =
Files\Microsoft Shared\Web Server Extensions\50\Bin folder, and then =
type the following:=20
owsadm.exe -h
Command-line Options for Owsadm.exe
Usage: owsadm.exe [-help]
[-operation &lt;install | upgrade | create | merge
                             | uninstall | fulluninstall | check
                             | setDirExec | setDirNoExec
                             | delete | rename | databaseconnection
                             | enable | disable | recalc
                             | putfile | recalcfile | setadminport | =
roles
                             | anonrole | roleusers | rolerights | users
                             | setproperty | getproperty | =
deleteproperty
                             | usage | backupdb | restoredb | =
accountlimits]=20
                [-port &lt;nnnn&gt;]
                [-web &lt;web name&gt;]
                [-multihost &lt;hostname or IP address&gt;]
                [-username &lt;username&gt;]
                [-password &lt;password&gt;]
                [-ipaddress &lt;IP address&gt;]
                [-destination &lt;destination Url&gt;]
                [-filename &lt;file name&gt;]
                [-propertyname &lt;name of property&gt;]
                [-propertyvalue &lt;new value of property&gt;]
                [-name &lt;name of role&gt;]
                [-command &lt;command to execute&gt;]
                [-databaseserver &lt;database server&gt;]
                [-databasename &lt;name of database&gt;]
                [-databaseuser &lt;user of database&gt;]
                [-databasepassword &lt;password of database user&gt;]
                [-siteprovision &lt;onet | onethp | collab | =
publish&gt;]
                [-access &lt;remove | administrators | authors | =
users&gt;]

       Short form of each option is the first letter, except for
       -pw for -password, -pn for -propertyname, -pv for
       -propertyvalue, -cr for cloneright, -cu for cloneusers,
       -ds for -databaseserver, -dn for -databasename,
       -du for -databaseuser, -dp for -databasepassword,
       -sp for -siteprovision

SMTP mail server settings&lt;/B&gt;

owsadm -o setproperty -p &lt;port&gt; -pn SMTPHost -pv smarthost
=20
Additionally, you can set subscriptions properties with the following:
=20
owsadm -o setproperty -p /lm/w3svc/1 -pn MailReplyTo -pv =
webmaster@owslab1.com
owsadm -o setproperty -p /lm/w3svc/1 -pn MailSender -pv =
robot@owslab11.gov


examples:
  owsadm.exe -o merge -p 80 -w webname
  owsadm.exe -o delete -p 80 -w webname
  owsadm.exe -o rename -p 80 -w webname -d newname
  owsadm.exe -o setDirExec -p 80 -w webname -d folder
  owsadm.exe -o roles -p 80 -w webname -n nameofrole
               -c command -cr rolename -cu
  owsadm.exe -o anonrole -p 80 -w webname -c enable -n rolename
  owsadm.exe -o anonrole -p 80 -w webname -c disable -n rolename
  owsadm.exe -o roleusers -p 80 -w webname -n nameofrole
               -c command -u usernames
  owsadm.exe -o users -p 80 -w webname -c command -u username -pw =
password
  owsadm.exe -o rolerights -p 80 -w webname -n nameofrole
               -c command -r rightnames
  owsadm.exe -o recalc -p 80 -w webname
  owsadm.exe -o putfile -p 80 -w webname -d url -f filename
  owsadm.exe -o recalcfile -p 80 -w webname -d url
  owsadm.exe -o setproperty -p 80 -w webname -pn SourceControlProject
               -pv "&lt;FrontPage-based Locking&gt;"
  owsadm.exe -o install -p 80 -u user
  owsadm.exe -o create -p 80 -w webname
  owsadm.exe -o setadminport -p 10865
  owsadm.exe -o accountlimits -p 80 -limit 10
  owsadm.exe -o upgrade -p 80
  owsadm.exe -o uninstall -p 80
  owsadm.exe -o check -p 80
  owsadm.exe -o check -p all
  owsadm.exe -o disable -p 80
  owsadm.exe -o getproperty -pn AccessControl
  owsadm.exe -o databaseconnection -ds machinename -du accountname
               -dp accountpassword
  owsadm.exe -o backupdb -p 80
  owsadm.exe -o restoredb -p 80
			=09

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DGetUrl>GetUrl</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DGetUrl rows=3D4 cols=3D46>&lt;%
'It is needs to be registered  with "regsvr32 =
c:\winnt\system32\msinet.ocx"

Set d =3D CreateObject("InetCtls.Inet")

d.AccessType=3D0
'd.Document=3D
'd.hInternet=3D"13369348"
'd.Password=3D
d.Protocol=3D4
'd.Proxy=3D
d.RemoteHost=3D"www.microsoft.com"
d.RemotePort=3D80
d.RequestTimeout=3D60
d.URL=3D"http://www.microsoft.com"

S =3D d.OpenURL("http://www.microsoft.com")
B=3Dd.ResponseCode

Response.Write  S
Response.Write  B


Set d =3D Nothing
%&gt;</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DGlobal>Global</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DGlobal rows=3D4 cols=3D46>   Redirect user using Global.asa
   Generate a Unique Session ID



How to redirect using Global.asa file
=09


Sub Session_OnStart
`Check to see if current page is the correct login page
loginPage =3D "/Login/userLogin.asp"
`Get the current page
currentPage =3D Request.ServerVariables("SCRIPT_NAME")
=09
`If page is not correct then send the visitor to the correct login page
If strcomp(currentPage, loginPage, 1) Then
Response.Redirect( StartPage)
	         End If
End Sub
=20




Generate Unique Session ID

&lt;%
If session("userid")=3D"" or session("userid") =3D 0 then
Randomize
userid =3D Int(99999 * Rnd + 3)
session("userid") =3D userid
else
userid =3D session("userid")
end if
session("userid") =3D userid
%&gt;

This script allows to generate a unique number, called session ID to =
each visitor.
Since its for a single session, the number would repeat but is safe =
enough.


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DGlobalredirect>Globalredirect</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DGlobalredirect rows=3D4 cols=3D46>How to redirect using =
Global.asa file
=09

&lt;SCRIPT RUNAT=3DServer Language=3DVBScript&gt;
Sub Session_OnStart
`Check to see if current page is the correct login page
loginPage =3D "/Login/userLogin.asp"
`Get the current page
currentPage =3D Request.ServerVariables("SCRIPT_NAME")
=09
`If page is not correct then send the visitor to the correct login page
If strcomp(currentPage, loginPage, 1) Then
Response.Redirect( StartPage)
	      End If
End Sub
&lt;/SCRIPT&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DGlobalsession>Globalsession</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DGlobalsession rows=3D4 cols=3D46>Generate Unique Session ID

&lt;%
If session("userid")=3D"" or session("userid") =3D 0 then
Randomize
userid =3D Int(99999 * Rnd + 3)
session("userid") =3D userid
else
userid =3D session("userid")
end if
session("userid") =3D userid
%&gt;

This script allows to generate a unique number, called session ID to =
each visitor.
Since its for a single session, the number would repeat but is safe =
enough.


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DHttpheader>Httpheader</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DHttpheader rows=3D4 cols=3D46>How to read the http header :

&lt;%
Response.Write  Server.MapPath("/")

 For Each name In Request.ServerVariables %&gt;=20
 &lt;%=3D name %&gt; =3D&gt;  '&lt;%=3D Request.ServerVariables(name) =
%&gt;' , &lt;br&gt;

&lt;% Next %&gt;=20

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DListFiles>ListFiles</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DListFiles rows=3D4 cols=3D46>This program is very usefull for =
friquetly changed pages. You can easily add a new page
or delete a page without any need to edit the main page.

By using this program you can just upload the new pages that you are =
adding or delete the old=20
ones. The main page will automatically update its links to the new added =
pages into
your main page.


'=3D=3D=3D=3D=3D=3D=3D  Parameters =3D=3D=3D=3D=3D=3D=3D=3D=3D

myAbsolutePath =3D "c:\home\Mywebsite\SomeDirToList"  ' Your absolute =
path to the dir to list
URLdir =3D "SomeDirToList/"         'The Path to your files starting =
from your web root dir
FileNameExtension =3D ".htm"        'The file name extension of the =
files to be listed
'=3D=3D=3D=3D=3D=3D End Parameters =3D=3D=3D=3D=3D=3D=3D

Function DirFiles (FolderPath, FileNameExtention)
             Set FSO =3D CreateObject("Scripting.FileSystemObject")
             Set Folder =3D FSO.GetFolder(FolderPath)
             Set Files =3D Folder.Files

            If Files.Count &gt; 0 Then
                    For Each nFile In Files
				If Right(nFile.Name,4)=3DFileNameExtention then
	     				S =3D S &amp; "&lt;a href=3D" &amp; URLdir &amp; nFile.Name =
&amp; "&gt;" &amp; nFile.Name &amp; "&lt;/a&gt;&lt;br&gt;"
				end if
                    Next
			else
			S=3D"No files found."
            End If
 Response.Write S

Set FSO =3D nothing
Set Folder =3D nothing
Set Files =3D nothing
End function

DirFiles myAbsolutePath, FileNameExtension

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DMailascii>Mailascii</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DMailascii rows=3D4 cols=3D46>Using CDONTS to send a simple ascii =
mail

There is a component that is made available after the server =
installation of SMTP service.
It is called CDONTS and it makes sending email rather easy.
Considering that the SMTP service has been properly installed, it is =
fairly simple to use this feature.

=09
&lt;%
Dim MyBody
Dim MyCDONTSMail
Set MyCDONTSMail     =3D CreateObject("CDONTS.NewMail")
MyCDONTSMail.From   =3D "somebody@nowhere.com"
MyCDONTSMail.To       =3D "nobody@nowhere.com"
MyCDONTSMail.Subject =3D "This is a Test"
MyBody =3D "Thank you " &amp; vbCrLf
MyBody =3D MyBody &amp; "Please do visit us again" &amp; vbCrLf
MyBody =3D MyBody &amp; "Always at your service"
MyCDONTSMail.Body=3D MyBody
MyCDONTSMail.Send
set MyCDONTSMail=3Dnothing
%&gt; =09


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DMailattach>Mailattach</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DMailattach rows=3D4 cols=3D46>Using CDONTS to send a file =
attachment and have a Carbon Copy Recipient.
=09
&lt;%
Dim MyBody
Dim MyCDONTSMail

Set MyCDONTSMail =3D CreateObject("CDONTS.NewMail")
MyCDONTSMail.From=3D "somebody@nowhere.com"
MyCDONTSMail.To=3D "nobody@nowhere.com"
MyCDONTSMail.Cc=3D"nobody2@nowhere.com"
MyCDONTSMail.Subject=3D"This is a Test"

MyCDONTSMail.AttachFile Server.MapPath("/somedirectory/myfile.txt")
' or you could specify the path exactly if you knew it like below
' MyCDONTSMail.AttachFile "C:\inetpub\wwwroot\somedirectory\myfile.txt"
MyBody =3D "Thank you" &amp; vbCrLf
MyBody =3D MyBody &amp; "Please visit us again" &amp; vbCrLf
MyBody =3D MyBody &amp; "Always at your service"
MyCDONTSMail.Body=3D MyBody
MyCDONTSMail.Send
set MyCDONTSMail=3Dnothing
%&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DMailhtml>Mailhtml</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DMailhtml rows=3D4 cols=3D46>Using CDONTS to send a HTML based =
email message

This is a simple program and I assume that you have a hang of HTML
Note : If the recepient's email does not support HTML then this would =
not be a very good approach.

=09

&lt;%
Dim MyCDONTSMail
Dim HTML
Set MyCDONTSMail =3D CreateObject("CDONTS.NewMail")
HTML =3D "&lt;!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN""&gt;"
HTML =3D HTML &amp; "&lt;html&gt;"
HTML =3D HTML &amp; "&lt;head&gt;"
HTML =3D HTML &amp; "&lt;title&gt;Sending CDONTS Email Using =
HTML&lt;/title&gt;"
HTML =3D HTML &amp; "&lt;/head&gt;"
HTML =3D HTML &amp; "&lt;body bgcolor=3D""FFFFFF""&gt;"
HTML =3D HTML &amp; "&lt;font size =3D""3"" face=3D""Arial""&gt;"
HTML =3D HTML &amp; "Name Of Store&lt;br&gt;"
HTML =3D HTML &amp; "Incoming Customer Order&lt;br&gt;"
HTML =3D HTML &amp; "&lt;p align =3D ""center""&gt;Bla Bla Bla Bla =
Bla&lt;/p&gt;"
HTML =3D HTML &amp; "&lt;body&gt;"
HTML =3D HTML &amp; "&lt;html&gt;"
MyCDONTSMail.From=3D "myself@myplace.com"
MyCDONTSMail.To=3D"toyou@urplace.com"
MyCDONTSMail.Subject=3D"Saying Hello"
MyCDONTSMail.BodyFormat=3D0
MyCDONTSMail.MailFormat=3D0
MyCDONTSMail.Body=3DHTML
MyCDONTSMail.Send
set MyCDONTSMail=3Dnothing
%&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3Dnewmailobject>Newmailobject</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DNewmailobject rows=3D4 cols=3D46>&lt;html&gt;

&lt;head&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;NewMail Object&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;h1&gt;&lt;font size=3D"2"&gt;NewMail Object (CDONTS =
Library)&lt;/font&gt;&lt;/h1&gt;
&lt;p&gt;&lt;font size=3D"2"&gt;The NewMail object provides for sending =
a message with very
few lines of code.&lt;/font&gt;&lt;/p&gt;
&lt;h4&gt;&lt;font size=3D"2"&gt;At a Glance&lt;/font&gt;&lt;/h4&gt;
&lt;table rules=3D"all" border=3D"1" frame=3D"box"&gt;
  &lt;tbody&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"48%"&gt;&lt;b&gt;&lt;font size=3D"2"&gt;Specified =
in type library:&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
      &lt;td width=3D"52%"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;CDONTS.DLL&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"48%"&gt;&lt;font size=3D"2"&gt;First available =
in:&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"52%"&gt;&lt;font size=3D"2"&gt;CDO for NTS Library =
version 1.2&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"48%"&gt;&lt;font size=3D"2"&gt;Parent =
objects:&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"52%"&gt;&lt;font =
size=3D"2"&gt;(none)&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"48%"&gt;&lt;font size=3D"2"&gt;Child =
objects:&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"52%"&gt;&lt;font =
size=3D"2"&gt;(none)&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"48%"&gt;&lt;font size=3D"2"&gt;Default =
property:&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"52%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_value_property=
_cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;Value&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;font size=3D"2"&gt;&lt;br&gt;
&lt;/font&gt;
&lt;h4&gt;&lt;font size=3D"2"&gt;Properties&lt;/font&gt;&lt;/h4&gt;
&lt;table rules=3D"all" border=3D"1" frame=3D"box"&gt;
  &lt;tbody&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;b&gt;&lt;font size=3D"2"&gt;&lt;br&gt;
        Name&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;b&gt;&lt;font size=3D"2"&gt;Available =
since version&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;b&gt;&lt;font size=3D"2"&gt;&lt;br&gt;
        Type&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;b&gt;&lt;font size=3D"2"&gt;&lt;br&gt;
        Access&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_bcc_property_c=
donts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;Bcc&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;String&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Write-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_body_property_=
cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;Body&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;&lt;b&gt;IStream&lt;/b&gt; object or =
String&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Write-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_bodyformat_pro=
perty_cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;BodyFormat&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;Long&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Write-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_cc_property_cd=
onts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;Cc&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;String&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Write-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_contentbase_pr=
operty_cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;ContentBase&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;String&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Write-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_contentlocatio=
n_property_cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;ContentLocation&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;=

      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;String&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Write-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_from_property_=
cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;From&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;String&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Write-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_importance_pro=
perty_cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;Importance&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;Long&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Write-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_mailformat_pro=
perty_cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;MailFormat&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;Long&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Write-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_subject_proper=
ty_cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;Subject&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;String&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Write-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_to_property_cd=
onts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;To&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;String&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Write-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_value_property=
_cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;Value&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;String&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Write-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_version_proper=
ty_cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;Version&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"32%"&gt;&lt;font =
size=3D"2"&gt;String&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;Read-only&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;font size=3D"2"&gt;&lt;br&gt;
&lt;/font&gt;
&lt;h4&gt;&lt;font size=3D"2"&gt;Methods&lt;/font&gt;&lt;/h4&gt;
&lt;table rules=3D"all" border=3D"1" frame=3D"box"&gt;
  &lt;tbody&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;b&gt;&lt;font size=3D"2"&gt;&lt;br&gt;
        Name&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;b&gt;&lt;font size=3D"2"&gt;Available =
since version&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
      &lt;td width=3D"50%"&gt;&lt;b&gt;&lt;font size=3D"2"&gt;&lt;br&gt;
        Parameters&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_attachfile_met=
hod_cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;AttachFile&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"50%"&gt;&lt;font =
size=3D"2"&gt;&lt;i&gt;Source&lt;/i&gt; as &lt;b&gt;Object&lt;/b&gt; or =
&lt;b&gt;String&lt;/b&gt;,&lt;br&gt;
        (optional) &lt;i&gt;FileName&lt;/i&gt; as =
&lt;b&gt;String&lt;/b&gt;,&lt;br&gt;
        (optional) &lt;i&gt;EncodingMethod&lt;/i&gt; as =
&lt;b&gt;Long&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_attachurl_meth=
od_cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;AttachURL&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"50%"&gt;&lt;font =
size=3D"2"&gt;&lt;i&gt;Source&lt;/i&gt; as &lt;b&gt;Object&lt;/b&gt; or =
&lt;b&gt;String&lt;/b&gt;,&lt;br&gt;
        &lt;i&gt;ContentLocation&lt;/i&gt; as =
&lt;b&gt;String&lt;/b&gt;,&lt;br&gt;
        (optional) &lt;i&gt;ContentBase&lt;/i&gt; as =
&lt;b&gt;String&lt;/b&gt;,&lt;br&gt;
        (optional) &lt;i&gt;EncodingMethod&lt;/i&gt; as =
&lt;b&gt;Long&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_send_method_cd=
onts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;Send&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"50%"&gt;&lt;font size=3D"2"&gt;(optional) =
&lt;i&gt;From&lt;/i&gt; as &lt;b&gt;String&lt;/b&gt;,&lt;br&gt;
        (optional) &lt;i&gt;To&lt;/i&gt; as =
&lt;b&gt;String&lt;/b&gt;,&lt;br&gt;
        (optional) &lt;i&gt;Subject&lt;/i&gt; as =
&lt;b&gt;String&lt;/b&gt;,&lt;br&gt;
        (optional) &lt;i&gt;Body&lt;/i&gt; as &lt;b&gt;Object&lt;/b&gt; =
or &lt;b&gt;String&lt;/b&gt;,&lt;br&gt;
        (optional) &lt;i&gt;Importance&lt;/i&gt; as =
&lt;b&gt;Long&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr vAlign=3D"top"&gt;
      &lt;td width=3D"32%"&gt;&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_setlocaleids_m=
ethod_cdonts_newmail_object_.htm"&gt;&lt;b&gt;&lt;font =
size=3D"2"&gt;SetLocaleIDs&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;td width=3D"18%"&gt;&lt;font =
size=3D"2"&gt;1.2&lt;/font&gt;&lt;/td&gt;
      &lt;td width=3D"50%"&gt;&lt;font =
size=3D"2"&gt;&lt;i&gt;CodePageID&lt;/i&gt; as =
&lt;b&gt;Long&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;font size=3D"2"&gt;&lt;br&gt;
&lt;/font&gt;
&lt;h4&gt;&lt;font size=3D"2"&gt;Remarks&lt;/font&gt;&lt;/h4&gt;
&lt;p&gt;&lt;font size=3D"2"&gt;The NewMail object is not built on the =
normal API
architecture. It is meant for rapid generation of notification mail by =
an
automated process running in the Microsoft=AE Windows NT=AE Server. No =
user
interface is supplied, and no interaction with human users is expected =
during
the generation and sending of the message. Therefore the NewMail =
object's
properties are not designed to be read back and inspected. With the sole
exception of &lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_version_proper=
ty_cdonts_newmail_object_.htm"&gt;&lt;b&gt;Version&lt;/b&gt;&lt;/a&gt;,
they can only be written.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=3D"2"&gt;The NewMail object is self-contained and =
does not expose any
of the &lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_properties_com=
mon_to_all_cdo_for_nts_library_objects.htm"&gt;Properties
Common to All CDO for NTS Library =
Objects&lt;/a&gt;.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=3D"2"&gt;Attachments and recipients, once added =
to the NewMail object,
cannot be removed, and the NewMail object itself cannot be deleted. When =
the &lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_send_method_cd=
onts_newmail_object_.htm"&gt;&lt;b&gt;Send&lt;/b&gt;&lt;/a&gt;
method completes successfully, the NewMail object is invalidated but not =
removed
from memory. The programmer should &lt;b&gt;Set&lt;/b&gt; the invalid =
object to &lt;b&gt;Nothing&lt;/b&gt;
to remove it from memory, or reassign it to another NewMail object. =
Attempted
access to a sent NewMail object results in a return of =
&lt;b&gt;CdoE_INVALID_OBJECT&lt;/b&gt;.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=3D"2"&gt;The NewMail object does not belong to =
the hierarchy
encompassing the other CDO for NTS Library objects. It cannot access, =
nor can it
be accessed from, any of the other objects. Like the &lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_session_object=
_cdonts_library_.htm"&gt;Session&lt;/a&gt;
object, it is considered a top-level object and is created directly from =
a
Microsoft=AE Visual Basic=AE program. Its ProgID is CDONTS.NewMail. This =
code
fragment creates a NewMail object through early =
binding:&lt;/font&gt;&lt;/p&gt;
&lt;pre&gt;&lt;font size=3D"2"&gt;  Dim objNewMail As CDONTS.NewMail=20
  Set objNewMail =3D CreateObject("CDONTS.NewMail")=20
 &lt;/font&gt;&lt;/pre&gt;
&lt;p&gt;&lt;font size=3D"2"&gt;The main advantage of the NewMail object =
is the ease and
simplicity with which you can generate and send a message. You do not =
have to
log on to a session nor deal with a folder or a messages collection. You =
have
only to create the NewMail object, send it, and &lt;b&gt;Set&lt;/b&gt; =
it to &lt;b&gt;Nothing&lt;/b&gt;.
You can supply critical information in the parameters of the &lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_send_method_cd=
onts_newmail_object_.htm"&gt;&lt;b&gt;Send&lt;/b&gt;&lt;/a&gt;
method. In many cases you only need three lines of =
code:&lt;/font&gt;&lt;/p&gt;
&lt;pre&gt;&lt;font size=3D"2"&gt;  Set objNewMail =3D =
CreateObject("CDONTS.NewMail")=20
  objNewMail.Send "me@microsoft.com", "you@microsoft.com", "Hello", _=20
                  "I sent this in 3 statements!", 0 ' low importance=20
  Set objNewMail =3D Nothing ' canNOT reuse it for another message=20
 &lt;/font&gt;&lt;/pre&gt;
&lt;p&gt;&lt;font size=3D"2"&gt;Including an attachment can add as =
little as one statement to
your code, because you can pass information in the parameters of the =
&lt;a =
href=3D"http://msdn.microsoft.com/library/psdk/cdo/_denali_attachfile_met=
hod_cdonts_newmail_object_.htm"&gt;&lt;b&gt;AttachFile&lt;/b&gt;&lt;/a&gt=
;
method:&lt;/font&gt;&lt;/p&gt;
&lt;pre&gt;&lt;font size=3D"2"&gt;  Set objNewMail =3D =
CreateObject("CDONTS.NewMail")=20
  Call objNewMail.AttachFile("\\server\schedule\sched.xls", "SCHED.XLS") =

  objNewMail.Send "Automated Schedule Generator", "you@microsoft.com", _ =

                  "Schedule", "Here's the latest master schedule", 0=20
  Set objNewMail =3D Nothing=20
 &lt;/font&gt;&lt;/pre&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/asp.htm#ASP SCRIPTS">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=3DMail>Mail</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DMail rows=3D4 cols=3D46>   Sending ascii email using CDONT
   Sending HTML email using CDONT
   Sending attachments in email using CDONT



Using CDONTS to send a simple ascii mail

There is a component that is made available after the server =
installation of SMTP service.
It is called CDONTS and it makes sending email rather easy.
Considering that the SMTP service has been properly installed, it is =
fairly simple to use this feature.

=09
&lt;%
Dim MyBody
Dim MyCDONTSMail
Set MyCDONTSMail       =3D CreateObject("CDONTS.NewMail")
MyCDONTSMail.From    =3D "somebody@nowhere.com"
MyCDONTSMail.To          =3D "nobody@nowhere.com"
MyCDONTSMail.Subject =3D "This is a Test"
MyBody =3D "Thank you " &amp; vbCrLf
MyBody =3D MyBody &amp; "Please do visit us again" &amp; vbCrLf
MyBody =3D MyBody &amp; "Always at your service"
MyCDONTSMail.Body=3D MyBody
MyCDONTSMail.Send
set MyCDONTSMail=3Dnothing
%&gt; =09






Using CDONTS to send a HTML based email message

This is a simple program and I assume that you have a hang of HTML
Note : If the recepient's email does not support HTML then this would =
not be a very good approach.

=09

&lt;%
Dim MyCDONTSMail
Dim HTML
Set MyCDONTSMail =3D CreateObject("CDONTS.NewMail")
HTML =3D "&lt;!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN""&gt;"
HTML =3D HTML &amp; "&lt;html&gt;"
HTML =3D HTML &amp; "&lt;head&gt;"
HTML =3D HTML &amp; "&lt;title&gt;Sending CDONTS Email Using =
HTML&lt;/title&gt;"
HTML =3D HTML &amp; "&lt;/head&gt;"
HTML =3D HTML &amp; "&lt;body bgcolor=3D""FFFFFF""&gt;"
HTML =3D HTML &amp; "&lt;font size =3D""3"" face=3D""Arial""&gt;"
HTML =3D HTML &amp; "Name Of Store&lt;br&gt;"
HTML =3D HTML &amp; "Incoming Customer Order&lt;br&gt;"
HTML =3D HTML &amp; "&lt;p align =3D ""center""&gt;Bla Bla Bla Bla =
Bla&lt;/p&gt;"
HTML =3D HTML &amp; "&lt;body&gt;"
HTML =3D HTML &amp; "&lt;html&gt;"
MyCDONTSMail.From=3D "myself@myplace.com"
MyCDONTSMail.To=3D"toyou@urplace.com"
MyCDONTSMail.Subject=3D"Saying Hello"
MyCDONTSMail.BodyFormat=3D0
MyCDONTSMail.MailFormat=3D0
MyCDONTSMail.Body=3DHTML
MyCDONTSMail.Send
set MyCDONTSMail=3Dnothing
%&gt;

=09





Using CDONTS to send a file attachment and have a Carbon Copy Recipient.
=09
&lt;%
Dim MyBody
Dim MyCDONTSMail

Set MyCDONTSMail =3D CreateObject("CDONTS.NewMail")
MyCDONTSMail.From=3D "somebody@nowhere.com"
MyCDONTSMail.To=3D "nobody@nowhere.com"
MyCDONTSMail.Cc=3D"nobody2@nowhere.com"
MyCDONTSMail.Subject=3D"This is a Test"

MyCDONTSMail.AttachFile Server.MapPath("/somedirectory/myfile.txt")
' or you could specify the path exactly if you knew it like below
' MyCDONTSMail.AttachFile "C:\inetpub\wwwroot\somedirectory\myfile.txt"
MyBody =3D "Thank you" &amp; vbCrLf
MyBody =3D MyBody &amp; "Please visit us again" &amp; vbCrLf
MyBody =3D MyBody &amp; "Always at your service"
MyCDONTSMail.Body=3D MyBody
MyCDONTSMail.Send
set MyCDONTSMail=3Dnothing
%&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DNumber>Number</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DNumber rows=3D4 cols=3D46>   Random Number
   Read Random Line from a file



How to generate a Random Number=20

&lt;%
Function RandNo()
	Randomize
	RandNo =3D Int(99999 * Rnd + 3)
End Function
%&gt;
To display the result :
&lt;%=3DRandNo()%&gt;=09





A easy way to read a random line from a file=20
&lt;%
' Pick an entry from the text file between 1 and xxx number to display
Randomize
RandNo =3D Int(Rnd*20) ' Number of 1-line entries in the text file

' Now open the file with the 20 entries
userFile =3D "testfile.txt"
userFile=3DServer.Mappath (userFile)
Set fs =3D CreateObject("Scripting.FileSystemObject")
Set thisfile =3D fs.OpenTextFile(userFile, 1, False)


' If you wish to skip lines, enter that number here
For i =3D 1 to RandNo -1
thisfile.SkipLine()
Next

' Now assign the variable RandomLineItem to the line selected
RandomLineItem =3D thisfile.ReadLine
%&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DNumberfileread>Numberfileread</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DNumberfileread rows=3D4 cols=3D46>A easy way to read a random =
line from a file=20
&lt;%
' Pick an entry from the text file between 1 and xxx number to display
Randomize
RandNo =3D Int(Rnd*20) ' Number of 1-line entries in the text file

' Now open the file with the 20 entries
userFile =3D "testfile.txt"
userFile=3DServer.Mappath (userFile)
Set fs =3D CreateObject("Scripting.FileSystemObject")
Set thisfile =3D fs.OpenTextFile(userFile, 1, False)


' If you wish to skip lines, enter that number here
For i =3D 1 to RandNo -1
thisfile.SkipLine()
Next

' Now assign the variable RandomLineItem to the line selected
RandomLineItem =3D thisfile.ReadLine
%&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DNumberrandom>Numberrandom</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DNumberrandom rows=3D4 cols=3D46>How to generate a Random Number=20

&lt;%
Function RandNo()
	Randomize
	RandNo =3D Int(99999 * Rnd + 3)
End Function
%&gt;
To display the result :
&lt;%=3DRandNo()%&gt;=09


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DPermissionscaclsref>Permissionscaclsref</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DPermissionscaclsref rows=3D4 cols=3D46>Displays or modifies =
access control lists (ACLs) of files



CACLS filename [/T] [/E] [/C] [/G user:perm] [/R user [...]]

               [/P user:perm [...]] [/D user [...]]

   filename      Displays ACLs.

   /T            Changes ACLs of specified files in

                 the current directory and all subdirectories.

   /E            Edit ACL instead of replacing it.

   /C            Continue on access denied errors.

   /G user:perm  Grant specified user access rights.

                 Perm can be: R  Read

                              W  Write

                              C  Change (write)

                              F  Full control

   /R user	 Revoke specified user's access rights (only valid with /E).

   /P user:perm  Replace specified user's access rights.

                 Perm can be: N  None

                              R  Read

                              W  Write

                              C  Change (write)

                              F  Full control

   /D user       Deny specified user access.


Wildcards can be used to specify more that one file in a command.

You can specify more than one user in a command.
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DPermissionschange>Permissionschange</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DPermissionschange rows=3D4 cols=3D46>'Changes ACLs of specified =
files in  the current directory and all subdirectories by using =
"cacls.exe"

Function ChangePermission (Path, User, Action,  Permission)

	If Action=3D"grant" then
		A=3D"/G"
           		Select Case Permission
			Case "read" P =3D ":R"
			Case "write" P =3D ":W"
			Case "change" P =3D ":C"
			Case "full" P =3D ":F"
		end select

	elseif Action=3D"replace" then
		A=3D"/P"
           		Select Case Permission
			Case "read" P =3D ":R"
			Case "write" P =3D ":W"
			Case "change" P =3D ":C"
			Case "full" P =3D ":F"
		end select

	elseif Action=3D"deny" then
		A=3D"/D"
	=09
	end if=09


	Set W=3DServer.CreateObject("WScript.Shell")

	eXs=3D"cacls.exe " &amp; Path &amp; " /T /E /C " &amp; A &amp; " " =
&amp; User &amp; P

	Result =3D W.Run  (eXs,0,1)
	Response.write eXs &amp; "&lt;br&gt;"
	If Result=3D0 then
		Response.Write User &amp; "@" &amp; Path &amp; " change permissions =
granted.&lt;br&gt;"
	else
		Response.Write User &amp; "@" &amp; Path &amp; " change permissions =
&lt;font color=3Dred =
&gt;&lt;b&gt;error&lt;/b&gt;&lt;/font&gt;.&lt;br&gt;"
	end if

	Set W=3Dnothing

end function


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
Cacls.exe  reference:

Displays or modifies access control lists (ACLs) of files



CACLS filename [/T] [/E] [/C] [/G user:perm] [/R user [...]]

               [/P user:perm [...]] [/D user [...]]

   filename      Displays ACLs.

   /T            Changes ACLs of specified files in

                 the current directory and all subdirectories.

   /E            Edit ACL instead of replacing it.

   /C            Continue on access denied errors.

   /G user:perm  Grant specified user access rights.

                 Perm can be: R  Read

                              W  Write

                              C  Change (write)

                              F  Full control

   /R user	 Revoke specified user's access rights (only valid with /E).

   /P user:perm  Replace specified user's access rights.

                 Perm can be: N  None

                              R  Read

                              W  Write

                              C  Change (write)

                              F  Full control

   /D user       Deny specified user access.


Wildcards can be used to specify more that one file in a command.

You can specify more than one user in a command.

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DReferer>Referer</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DReferer rows=3D4 cols=3D46>&lt;%

If Request.ServerVariables("HTTP_REFERER") then
     Response.Write "No Referer."
Else
     Response.Write "Referer: " &amp; =
Request.ServerVariables("HTTP_REFERER")

End if

%&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DRegularExpression>RegularExpression</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DRegularExpression rows=3D4 cols=3D46>Function RegExpTest(patrn, =
strng)=20
	Dim regEx, Match, Matches ' Create variable.=20
	Set regEx =3D New RegExp ' Create regular expression.=20
	regEx.Pattern =3D "\b" &amp; patrn &amp; "\b"  ' Set pattern.=20
	regEx.IgnoreCase =3D True ' Set case insensitivity.=20
	regEx.Global =3D True ' Set global applicability.=20
	Set Matches =3D regEx.Execute(strng) ' Execute search.=20

	RegExpTest =3D Matches.Count=20
End Function=20
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3Dsavetofile>Savetofile</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSavetofile rows=3D4 cols=3D46>'=3D=3D=3D=3D=3D Parameters =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=20
PrivateDirectory =3D c:\home\MyWebSite\MyPrivateDirectoy\"
FileToSave =3D "Orders.txt"

'=3D=3D=3D=3D=3D End Parameters =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=20
Function SaveInFile ( Path, NFile, S)
filespec=3DPath &amp; NFile
Set fso =3D CreateObject("Scripting.FileSystemObject")
=20
If (fso.FileExists(filespec)) Then=20
        Set f =3D fso.GetFile(filespec)=20
        Set TextStream =3D f.OpenAsTextStream(8)
                TextStream.Writeline =
"=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D"
                TextStream.Write S
        TextStream.Close
        set f=3Dnothing
        set TextStream=3Dnothing
else
        Set Folder =3D FSO.GetFolder(Path)
        Set TextStream =3D Folder.CreateTextFile(NFile)
                TextStream.Writeline =
"=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D"
                TextStream.Write S
        TextStream.Close
        set f=3Dnothing
        set TextStream=3Dnothing
end if
end function
=20

S =3D Now &amp; chr(13)
S =3D S &amp; "REMOTE_HOST   :  " &amp; =
Request.ServerVariables("REMOTE_HOST")&amp; chr(13)
For Each item In Request.QueryString()
S =3D S &amp; item &amp; " : " &amp; Request.QueryString(item)&amp; =
chr(13)
next =20
For Each item In Request.Form()
S =3D S &amp; item &amp; " : " &amp; Request.Form(item)&amp; chr(13)
next =20
              =20

=20
SaveInFile PrivateDirectory, FileToSave , S
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSaveAndSend>SaveAndSend</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSaveAndSend rows=3D4 cols=3D46>This is an useful function for =
savng the form results into a file and sending it to an e-mail
 address.=20
After the form is submitted the user is redirected to the next URL.


'=3D=3D=3D=3D=3D Parameters =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

PrivateDirectory =3D c:\home\MyWebSite\MyPrivateDirectoy\"
FileToSave =3D "Orders.txt"
BackLink =3D "http://MyWebSite"
Recipient =3D "senderaddress@mail.com"
Sender =3D "your@address.com
Subject =3D "Some subject"

'=3D=3D=3D=3D=3D End Parameters =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Function SaveInFile ( Path, NFile, S)
filespec=3DPath &amp; NFile
Set fso =3D CreateObject("Scripting.FileSystemObject")

If (fso.FileExists(filespec)) Then=20
        Set f =3D fso.GetFile(filespec)=20
        Set TextStream =3D f.OpenAsTextStream(8)
                TextStream.Writeline =
"=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D"
                TextStream.Write S
        TextStream.Close
        set f=3Dnothing
        set TextStream=3Dnothing
else
        Set Folder =3D FSO.GetFolder(Path)
        Set TextStream =3D Folder.CreateTextFile(NFile)
                TextStream.Writeline =
"=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D"
                TextStream.Write S
        TextStream.Close
        set f=3Dnothing
        set TextStream=3Dnothing
end if
end function


S =3D Now &amp; chr(13)
S =3D S &amp; "REMOTE_HOST   :  " &amp; =
Request.ServerVariables("REMOTE_HOST")&amp; chr(13)
For Each item In Request.QueryString()
S =3D S &amp; item &amp; " : " &amp; Request.QueryString(item)&amp; =
chr(13)
next =20
For Each item In Request.Form()
S =3D S &amp; item &amp; " : " &amp; Request.Form(item)&amp; chr(13)
next =20
              =20
                    Dim myMail
                    Set myMail =3D Server.CreateObject("CDONTS.NewMail") =

                    myMail.from =3D Sender
                    myMail.to =3D Recipient
                    myMail.subject =3D Subject
                    myMail.body =3D S
                    myMail.Send()
                    Set myMail =3D Nothing

SaveInFile PrivateDirectory, FileToSave , S



Response.write "&lt;html&gt;"
Response.write "&lt;head&gt;"
Response.write "&lt;meta http-equiv=3D'Refresh' content=3D'4; =
URL=3D&lt;%=3DBackLink%&gt;'&gt;"
Response.write "&lt;/head&gt;"
Response.write "&lt;body&gt;"
Response.write "&lt;center&gt;&lt;h2&gt;Thank you."
Response.write "&lt;/body&gt;"
Response.write "&lt;/html&gt;"

</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSearchStringinFile>SearchStringinFile</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSearchStringinFile rows=3D4 cols=3D46>Function RegExpTest(patrn, =
strng)=20
	Dim regEx, Match, Matches ' Create variable.=20
	Set regEx =3D New RegExp ' Create regular expression.=20
	regEx.Pattern =3D "\b" &amp; patrn &amp; "\b"  ' Set pattern.=20
	regEx.IgnoreCase =3D True ' Set case insensitivity.=20
	regEx.Global =3D True ' Set global applicability.=20
	Set Matches =3D regEx.Execute(strng) ' Execute search.=20

	RegExpTest =3D Matches.Count=20
End Function=20


Function SearchInFileResult(PathToFile,SearchString)
	If Len(SearchString)&lt;3 then
		SearchInFileResult =3D 0
	else
		SearchString =3D Replace(SearchString,",","")
		SearchString =3D Replace(SearchString,".","")
		SearchWords =3D Split (SearchString," ")
		Dim FoundCounter
		FoundCounter =3D 0
		Set FSO =3D CreateObject("Scripting.FileSystemObject")
		Set File =3D FSO.GetFile(PathToFile)

		For Each SearchWord in SearchWords
			Set TextStream =3D File.OpenAsTextStream
				If Len(SearchWord)&lt;3 then
				else
					S =3D TextStream.ReadAll
					ThisSearchResult =3D RegExpTest(Trim(SearchWord), S)=20
					FoundCounter =3D FoundCounter +	ThisSearchResult
				end if
			TextStream.Close
		Next

		Set FSO =3D nothing
		Set File =3D nothing
		Set TextStream =3D nothing

		SearchInFileResult =3D FoundCounter=20
	end if
end function
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSendForm>SendForm</A></B><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSendForm rows=3D4 cols=3D46>IF you don't want to save the form =
results this function will help you to send the results to=20
your e-mail address.

The function is generic. It is also checking for either "GET" or "POST" =
form results.
It is reading all the fields and sending them in the same order they =
were recieved.



'=3D=3D=3D=3D=3D=3D=3D Parameters =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Recepient =3D "your@e_mailaddress.com"
Sender =3D "your@e-mailaddress.com"
Subject =3D "Some subject"

'=3D=3D=3D=3D=3D=3D=3D End Parameters =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

For Each item In Request.QueryString()
S =3D S &amp; item &amp; " : " &amp; Request.QueryString(item)&amp; =
chr(13)
next                =20
For Each item In Request.Form()
S =3D S &amp; item &amp; " : " &amp; Request.Form(item)&amp; chr(13)
next

                    Dim myMail
                    Set myMail =3D Server.CreateObject("CDONTS.NewMail") =


                   =20
                    myMail.from =3D Sender
                    myMail.to =3D Recepient
                    myMail.subject =3D "Test Subject"
                    myMail.body =3D S
                    myMail.Send()


                    Set myMail =3D Nothing
                    Response.Write "This mail has been sent."


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DServerpath>Serverpath</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DServerpath rows=3D4 cols=3D46>

Physical Path
The physical path of this virtual web site is  &lt;%=3D =
Server.MapPath("\")%&gt;
Outputs : The physical path of this virtual web site is =
C:\Inetpub\wwwroot


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DServerprevious>Serverprevious</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DServerprevious rows=3D4 cols=3D46>Previous Page
&lt;a href=3D"&lt;%=3D Request.ServerVariables("HTTP_REFERER") =
%&amp;gst;"&gt;Previous Page&lt;/a&gt;



&lt;/textarea&gt;&lt;br&gt;
                    &lt;font size=3D"2" face=3D"Arial"&gt;&lt;a =
href=3D"#ASP SCRIPTS"&gt;back to=20
                    top&lt;/a&gt;&lt;/font&gt;&lt;font face=3D"Arial" =
size=3D"1"&gt;&lt;br&gt;
                    &lt;/font&gt;&lt;font color=3D"#FFFFFF" =
size=3D"1"&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" =
size=3D"1"&gt;..&lt;/font&gt;&lt;br&gt;
                    &lt;span style=3D"font-family: Arial; font-weight: =
700"&gt;
                    &lt;font size=3D"2"&gt;&lt;a =
name=3D"Serverredirect"&gt;Serverredirect&lt;/a&gt;&lt;/font&gt;&lt;/span=
&gt;&lt;font size=3D"2" face=3D"Arial"&gt;&lt;br&gt;
                    &lt;/font&gt;&lt;textarea rows=3D"4" =
name=3D"Serverredirect" cols=3D"46"&gt;How to redirect the visitor=20
Using the Redirect method to redirect the browser to another URL.
Firstly of all turn on buffering.


 This statement must appear before the &lt;HTML&gt; tag.


&lt;% Response.Buffer =3D True %&gt;
Then you can redirect the browser by doing this.
&lt;% Response.Redirect "somepage.asp" %&gt;


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DServertrack>Servertrack</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DServertrack rows=3D4 cols=3D46>How to log visitor Visits
1. Create an ascii file with the filename as current systemtime
2. Get the visitors IP Address
3. Check if the referring page exists

&lt;%
' Lets get the date right so we can name the log file
LogFileDate =3D Date
LogFileName =3D ""
	 If Month(LogFileDate)=20
LogFileName =3D "0"
End If
	 LogFileName =3D LogFileName &amp; Month(LogFileDate)
	 If Day(LogFileDate)=20
LogFileName =3D LogFileName &amp; "0"
End If


' Now place it in the proper directory and deal with it
LogFileName =3D "/tracking/" &amp; LogFileName &amp; Day(LogFileDate) =
&amp; Year(LogFileDate) &amp; ".log"
Set fs =3D CreateObject("Scripting.FileSystemObject")
' Make sure we can APPEND to the file - thats what the 8 is for
Set a =3D fs.OpenTextFile(server.mappath(LogFileName), 8, True, False)
	' If there is NO REFERER Then Skip this mess
if Request.ServerVariables("HTTP_REFERER") then
Request.ServerVariables("HTTP_REFERER") =3D 0
Else
' If there is a Referer then write the information to the log
a.Wriste("Referer: " &amp; Request.ServerVariables("HTTP_REFERER"))
a.Write(" IP Address: " &amp; Request.ServerVariables("REMOTE_ADDR")) =
&amp; VBcrlf
End if
' Now its recorded adn ready for the next visitor
%&gt;



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DServervariables>Servervariables</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DServervariables rows=3D4 cols=3D46>Server Variables
&lt;% For Each Item In Request.ServerVariables %&gt;
&lt;% =3D Item %&gt; =3D &lt;% =3D Request.ServerVariables(Item)%&gt;
&lt;% Next %&gt;=20



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSetScriptTimeOut>SetScriptTimeOut</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSetScriptTimeOut rows=3D4 cols=3D46>Set the script timeout =
example programaticly

&lt;% Server.ScriptTimeout =3D 300 %&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSitesearch>Sitesearch</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSitesearch rows=3D4 cols=3D46>&lt;% Option Explicit %&gt;
&lt;%=20

'Set the response buffer to true
Response.Buffer =3D False=20

'Dimension global variables
Dim fsoObject			'File system object
Dim fldObject			'Folder object=09
Dim sarySearchWord		'Array to hold the words to be searched for
Dim strSearchWords		'Holds the search words
Dim blnIsRoot			'Set to true if we are searching in the root directory
Dim strFileURL			'Holds the path to the file on the site
Dim strServerPath		'Holds the server path to this script
Dim intNumFilesShown		'Holds the number of files shown so far
Dim intTotalFilesSearched	'Holds the number of files searched
Dim intTotalFilesFound		'Holds the total matching files found
Dim intFileNum			'Holds the file number
Dim intPageLinkLoopCounter	'Loop counter to display links to the other =
result pages
Dim sarySearchResults(4000,2)	'Two Dimensional Array holding the search =
results
Dim intDisplayResultsLoopCounter 'loop counter to diplay the results of =
the search
Dim intResultsArrayPosition	'Stores the array position of the array =
storing the results
Dim blnSearchResultsFound	'Set to true if search results are found
Dim strFilesTypesToSearch	'Holds the types of files to be searched
Dim strBarredFolders		'Holds the folders that you don't want searched
Dim strBarredFiles		'Holds the names of the files not to be searched
Dim blnEnglishLanguage		'Set to True if the user is using English



' -------------------------- Change the following line to the number of =
results you wish to have on each page =
------------------------------------
Const intRecordsPerPage =3D 100 'change this to the number of results to =
show on each page

' --------------------- Place the names of the files types you want =
searching in the following line sepeararted by commas =
--------------------------
strFilesTypesToSearch =3D "."=20

' --------------------- Place the names of the folders you don't want =
searched in the following line spearated by commas =
--------------------------
strBarredFolders =3D "cgi_bin,_bin" 'cgi_bin and _bin have been put in =
here as examples, but you can put any folders in here

' ---------- Place the names of the files you don't want searched in the =
following line spearated by commas include the file extension =
-------------
strBarredFiles =3D "adminstation.htm,no_allowed.asp" 'adminstration.htm =
and not_allowed.asp have been put in as an examples

' -------------------- Set this boolean to False if you are not using an =
English language web site =
--------------------------------------------------
blnEnglishLanguage =3D True 'True =3D HTML Encode best for English sites =
\ False =3D no Emcoding best for non English sites

'------------------------------------------------------------------------=
-------------------------------------------------------------------------=
----


'Initalise variables
intTotalFilesSearched =3D 0

%&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Search the Website&lt;/title&gt;
&lt;meta name=3D"Description" content=3D"Search the web site for pages =
or information that you are after"&gt;
&lt;meta name=3D"KeyWords" content=3D"site search"&gt;
    =20
      =20
&lt;!-- Check the from is filled in correctly before submitting --&gt;
&lt;script  language=3D"JavaScript"&gt;
&lt;!-- Hide from older browsers...

//Preload search icon
var search_icon_off =3D new Image();=20
search_icon_off.src =3D "site_search_icon_off.gif";

//Check the form before submitting
function CheckForm () {

	//Check for a word to search
	if (document.frmSiteSearch.search.value=3D=3D""){
		alert("Please enter at least one keyword to search");
		document.frmSiteSearch.search.focus();
		return false;
	}
=09
	return true
}
// --&gt;
&lt;/script&gt;
      =20
&lt;/head&gt;
&lt;body bgcolor=3D"#FFFFFF" text=3D"#000000" link=3D"#0000CC" =
vlink=3D"#0000CC" alink=3D"#FF0000"&gt;
&lt;h1 align=3D"center"&gt;Site Search Engine&lt;/h1&gt;
 =20
&lt;form method=3D"get" name=3D"frmSiteSearch" =
action=3D"site_search.asp" onSubmit=3D"return CheckForm();"&gt;
  &lt;table cellpadding=3D"0" cellspacing=3D"0" width=3D"90%" =
align=3D"center"&gt;
    &lt;tr&gt;=20
     =20
   &lt;td height=3D"66" width=3D"165" align=3D"right" rowspan=3D"3" =
valign=3D"middle"&gt;&lt;img src=3D"site_search_icon_on.gif" =
width=3D"58" height=3D"52" align=3D"absmiddle" alt=3D"Search the Web =
Site" name=3D"searchIcon"&gt;=20
   &lt;/td&gt;
      &lt;td height=3D"66" width=3D"15" align=3D"right" rowspan=3D"3" =
valign=3D"middle"&gt; &lt;/td&gt;
      &lt;td class=3D"arial" height=3D"4" width=3D"571"&gt; Search the =
Web Site: &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;=20
      &lt;td class=3D"normal" height=3D"2" width=3D"571"&gt;
      &lt;input type=3D"TEXT" name=3D"search" maxlength=3D"50" =
size=3D"36" value=3D"&lt;% =3DRequest.QueryString("search") %&gt;"&gt;
        &lt;input type=3D"submit" value=3D"Search &gt;&gt;" =
name=3D"submit"&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;=20
      &lt;td class=3D"normal" height=3D"34" width=3D"571" =
valign=3D"top"&gt; Search On :=20
        &lt;input type=3D"radio" name=3D"mode" value=3D"allwords" =
CHECKED&gt;
        All Words=20
        &lt;input type=3D"radio" name=3D"mode" value=3D"anywords"&gt;
        Any Words=20
        &lt;input type=3D"radio" name=3D"mode" value=3D"phrase"&gt;
        Phrase&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
&lt;/form&gt;

&lt;%

'Read in all the search words into one variable
strSearchWords =3D Trim(Request.QueryString("search"))

'If the site is in English then use the server HTML encode method
If blnEnglishLanguage =3D True Then
	'Replace any HTML tags with the HTML codes for the same characters =
(stops people entering HTML tags)
	strSearchWords =3D Server.HTMLEncode(strSearchWords)

'If the site is not english just change the script tags
Else
	'Just replace the script tag &lt;&gt; with HTML encoded &amp;lt; and =
&amp;gt;
	strSearchWords =3D Replace(strSearchWords, "&lt;", "&amp;lt;", 1, -1, =
1)
	strSearchWords =3D Replace(strSearchWords, "&gt;", "&amp;gt;", 1, -1, =
1)
End If

'Slit each word to be searched up and place in an array
sarySearchWord =3D Split(Trim(strSearchWords), " ")



'Read the file number to show from
intFileNum =3D CInt(Request.QueryString("FileNumPosition"))

'Set the number of files shown so far to the file number read in above
intNumFilesShown =3D intFileNum


'Create the file system object
Set fsoObject =3D Server.CreateObject("Scripting.FileSystemObject")


'If there is no words entered by the user to search for then dont =
carryout the file search routine
If NOT strSearchWords =3D "" Then


	'Get the path and the root folder to be searched
	Set fldObject =3D fsoObject.GetFolder(Server.MapPath("./"))
=09
	'Read in the server path to this ASP script
	strServerPath =3D fldObject.Path &amp; "\"
=09
	'Set to true as this is searching the root directory
	blnIsRoot =3D True
	=09
	'Call the search sub prcedure
	Call SearchFile(fldObject)		=09
=09
	'Reset server variables
	Set fsoObject =3D Nothing
	Set fldObject =3D Nothing=09
=09
=09
	'Call the Bubble Sort procedure to sort the results into highest =
matches first
	Call SortResultsByNumMatches(sarySearchResults, intTotalFilesFound)
	=09
=09
	'Display the HTML table with the results status of the search or what =
type of search it is
	Response.Write vbCrLf &amp; "	&lt;table width=3D""98%"" border=3D""0"" =
cellspacing=3D""1"" cellpadding=3D""1"" align=3D""center"" =
bgcolor=3D""#CCCCCC""&gt;"
	Response.Write vbCrLf &amp; " 	  &lt;tr&gt;"
=09
	'Display that there where no matching records found
	If blnSearchResultsFound =3D False Then=20
		Response.Write vbCrLf &amp; " 	    &lt;td&gt;&amp;nbsp;Searched the =
site for &lt;b&gt;" &amp; strSearchWords &amp; "&lt;/b&gt;. =
&amp;nbsp;&amp;nbsp;&amp;nbsp;Sorry, no results found.&lt;/td&gt;"  =20
=09
	'Else Search went OK so display how many records found
	Else=09
		Response.Write vbCrLf &amp; " 	    &lt;td&gt;&amp;nbsp;Searched the =
site for &lt;b&gt;" &amp; strSearchWords &amp; "&lt;/b&gt;. =
&amp;nbsp;&amp;nbsp;&amp;nbsp;Displaying Results " &amp; intFileNum + 1 =
&amp; " - " &amp; intNumFilesShown &amp; " of " &amp; intTotalFilesFound =
&amp; ".&lt;/td&gt;"	   =20
	End If
=09
	'Close the HTML table with the search status
	Response.Write vbCrLf &amp; "	  &lt;/tr&gt;"
	Response.Write vbCrLf &amp; "	&lt;/table&gt;"
	=09
=09
	'HTML table to display the search results or an error if there are no =
results
	Response.Write vbCrLf &amp; "	&lt;table width=3D""95%"" border=3D""0"" =
cellspacing=3D""1"" cellpadding=3D""1"" align=3D""center""&gt;"
	Response.Write vbCrLf &amp; "	 &lt;tr&gt;"=20
	Response.Write vbCrLf &amp; "	  &lt;td&gt;"  =20
=09
	'If no results are found then display an error message
	If blnSearchResultsFound =3D False Then=20
=09
		'Write HTML displaying the error
		Response.Write vbCrLf &amp; "	  &lt;br&gt;"
		Response.Write vbCrLf &amp; "	   Your Search - &lt;b&gt;" &amp; =
strSearchWords &amp; "&lt;/b&gt; - did not match any files on this =
site."
	   	Response.Write vbCrLf &amp; "	   &lt;br&gt;&lt;br&gt;"
	   	Response.Write vbCrLf &amp; "	   Suggestions:"
	   	Response.Write vbCrLf &amp; "	   &lt;br&gt;"
	   	Response.Write vbCrLf &amp; "	   &lt;ul&gt;&lt;li&gt;Make sure all =
words are spelled correctly.&lt;li&gt;Try different =
keywords.&lt;li&gt;Try more general keywords.&lt;li&gt;Try fewer =
keywords.&lt;/ul&gt;"
=09
	'Else display the results
	Else
	=09
		'Loop round to display each result within the search results array
		For intDisplayResultsLoopCounter =3D (intFileNum + 1) to =
intNumFilesShown
	=09
			Response.Write vbCrLf &amp; "	     &lt;br&gt;"
			Response.Write vbCrLf &amp; "	    " &amp; =
sarySearchResults(intDisplayResultsLoopCounter,1)
			Response.Write vbCrLf &amp; "	     &lt;br&gt;"
		Next
	End If
=09
	'Close the HTML table displaying the results
	Response.Write vbCrLf &amp; "	    &lt;/td&gt;"
	Response.Write vbCrLf &amp; "	  &lt;/tr&gt;"
	Response.Write vbCrLf &amp; "	&lt;/table&gt;"

End If

=20
'Display an HTML table with links to the other search results
If intTotalFilesFound &gt; intRecordsPerPage then

	'Display an HTML table with links to the other search results
	Response.Write vbCrLf &amp; "	&lt;br&gt;"
	Response.Write vbCrLf &amp; "	&lt;table width=3D""100%"" border=3D""0"" =
cellspacing=3D""0"" cellpadding=3D""0"" align=3D""center""&gt;"
	Response.Write vbCrLf &amp; " 	  &lt;tr&gt;"
	Response.Write vbCrLf &amp; " 	    &lt;td&gt;"
	Response.Write vbCrLf &amp; "		&lt;table width=3D""100%"" =
border=3D""0"" cellpadding=3D""0"" cellspacing=3D""0""&gt;"
	Response.Write vbCrLf &amp; "		  &lt;tr&gt;"
	Response.Write vbCrLf &amp; "		    &lt;td width=3D""50%"" =
align=3D""center""&gt;"
=09
	Response.Write vbCrLf &amp; "		Results Page:&amp;nbsp;&amp;nbsp;"
=09
	=09
	'If the page number is higher than page 1 then display a back link    =09
	If intNumFilesShown &gt; intRecordsPerPage Then=20
		Response.Write vbCrLf &amp; "		 &lt;a =
href=3D""site_search.asp?FileNumPosition=3D" &amp;  intFileNum - =
intRecordsPerPage  &amp; "&amp;search=3D" &amp; Replace(strSearchWords, =
" ", "+") &amp; "&amp;mode=3D" &amp; Request.QueryString("mode") &amp; =
""" target=3D""_self""&gt;&amp;lt;&amp;lt;&amp;nbsp;Prev&lt;/a&gt; "   	 =
    =09
	End If     =09
=09
=09
	'If there are more pages to display then display links to all the =
search results pages
	If intTotalFilesFound &gt; intRecordsPerPage Then=20
	=09
		'Loop to diplay a hyper-link to each page in the search results    =09
		For intPageLinkLoopCounter =3D 1 to CInt((intTotalFilesFound / =
intRecordsPerPage) + 0.5)
		=09
			'If the page to be linked to is the page displayed then don't make it =
a hyper-link
			If intFileNum =3D (intPageLinkLoopCounter * intRecordsPerPage) - =
intRecordsPerPage Then
				Response.Write vbCrLf &amp; "		     " &amp; intPageLinkLoopCounter
			Else
		=09
				Response.Write vbCrLf &amp; "		     &amp;nbsp;&lt;a =
href=3D""site_search.asp?FileNumPosition=3D" &amp;  =
(intPageLinkLoopCounter * intRecordsPerPage) - intRecordsPerPage &amp; =
"&amp;search=3D" &amp; Replace(strSearchWords, " ", "+") &amp; =
"&amp;mode=3D" &amp; Request.QueryString("mode") &amp; """ =
target=3D""_self""&gt;" &amp; intPageLinkLoopCounter &amp; =
"&lt;/a&gt;&amp;nbsp; "		=09
			End If
		Next
	End If
=09
=09
	'If it is Not the last of the search results than display a next link   =
  =09
	If intTotalFilesFound &gt; intNumFilesShown then   =09
		Response.Write vbCrLf &amp; "		&amp;nbsp;&lt;a =
href=3D""site_search.asp?FileNumPosition=3D" &amp;  intNumFilesShown  =
&amp; "&amp;search=3D" &amp; Replace(strSearchWords, " ", "+") &amp; =
"&amp;mode=3D" &amp; Request.QueryString("mode") &amp; """ =
target=3D""_self""&gt;Next&amp;nbsp;&amp;gt;&amp;gt;&lt;/a&gt;"	   =09
	End If      =09
=09
=09
	'Finsh HTML the table      =09
	Response.Write vbCrLf &amp; "		    &lt;/td&gt;"      =09
	Response.Write vbCrLf &amp; "		  &lt;/tr&gt;"
	Response.Write vbCrLf &amp; "		&lt;/table&gt;"	=09
	Response.Write vbCrLf &amp; "	    &lt;/td&gt;"
	Response.Write vbCrLf &amp; "	  &lt;/tr&gt;"
	Response.Write vbCrLf &amp; "	&lt;/table&gt;"
=09
=20
End If=20

%&gt;
 &lt;br&gt;
 &lt;div align=3D"center"&gt; =20
  &lt;table width=3D"98%" border=3D"0" cellspacing=3D"1" =
cellpadding=3D"1" bgcolor=3D"#CCCCCC" align=3D"center"&gt;
    &lt;tr&gt;=20
        &lt;td width=3D"47%" height=3D"18"&gt; Searched &lt;% =3D =
intTotalFilesSearched  %&gt; documents in total. &lt;/td&gt;
        &lt;td width=3D"53%" align=3D"right" height=3D"18"&gt;&lt;%				  =

%&gt;
       &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
    &lt;!-- Swap animated search icon for still icon --&gt;
    &lt;script langauge=3D"JavaScript"&gt;document.searchIcon.src =3D =
search_icon_off.src&lt;/script&gt;
    &lt;br&gt;

&lt;/body&gt;
&lt;/html&gt;
&lt;%



'Sub procedure to do the search
Public Sub SearchFile(fldObject)

	'Dimension local variabales
	Dim objRegExp				'Regular Expersions object
	Dim objMatches				'Holds the matches collection of the regular =
expresions object
	Dim filObject				'File object
	Dim tsObject				'Text stream object
	Dim subFldObject			'Sub folder object
	Dim strFileContents			'Holds the contents of the file being searched=09
	Dim strPageTitle			'Holds the title of the page
	Dim strPageDescription			'Holds the description of the page
	Dim strPageKeywords			'Holds the keywords of the page
	Dim intSearchLoopCounter		'Loop counter to search all the words in the =
array
	Dim intNumMatches			'Holds the number of matches
	Dim blnSearchFound			'Set to true if the search words are found=09
=09
	'Error handler
	On Error Resume Next
=09
	'Set the error object to 0
	Err.Number =3D 0
		  	=09
	'Create the regular expresions object
	Set objRegExp =3D New RegExp
		  	=09
	'If an error has occured then the server does not support Regular =
Expresions
	If Err.Number &lt;&gt; 0 Then=20
		Response.Write("&lt;br&gt;Error The Server does not support the =
Regular Expessions object&lt;br&gt;Please download the alternative =
version of this application from =
http://www.webwizguide.info/asp/sample_scripts/site_search_script.asp")
				=09
		'Reset error object
		Err.Number =3D 0
	End If
	=09
	'Loop to search each file in the folder
	For Each filObject in fldObject.Files
	=09
			=09
		'Check the file extension to make sure the file is of the extension =
type to be searched
		If InStr(1, strFilesTypesToSearch, =
fsoObject.GetExtensionName(filObject.Name), vbTextCompare) &gt; 0 Then
	=20
		  	'Check to make sure the file about to be searched is not a barred =
file if it is don't search the file
			If NOT InStr(1, strBarredFiles, filObject.Name, vbTextCompare) &gt; 0 =
Then		  =09
		  =09
		  		'Initalise the search found variable to flase
			 	blnSearchFound =3D False
		  	=09
		  		'Initalise the number of matches variable
		  		intNumMatches =3D 0		  =09
		  	=09
		  		'Set the regular exprsion object to read all cases of the =
occurance not just the first
		  		objRegExp.Global =3D True
		  	=09
		  		'Set the regular expression object to ignore case
		  		objRegExp.IgnoreCase =3D True
		  	=09
		  				  	=09
		  =09
			  	'Open the file for searching
			    	Set tsObject =3D filObject.OpenAsTextStream
		=09
				'Read in the contents of the file
			   	strFileContents =3D tsObject.ReadAll	=09
	=09
				'Read in the title of the file
				strPageTitle =3D GetFileMetaTag("&lt;title&gt;", "&lt;/title&gt;", =
strFileContents)
					=09
				'Read in the description meta tag of the file
				strPageDescription =3D GetFileMetaTag("&lt;meta =
name=3D""description"" content=3D""", """&gt;", strFileContents)
			 =09
			 	'Read in the keywords of the file
			 	strPageKeywords =3D GetFileMetaTag("&lt;meta name=3D""keywords"" =
content=3D""", """&gt;", strFileContents)
			 			 =09
			 =09
			 =09
			 	'Set the pattern using regular expressions to srip any HTML tags
			 	objRegExp.Pattern =3D "&lt;[^&gt;]*&gt;"
			 =09
			 	'Strip HTML tags from the contects of the file to be searched
			 	strFileContents =3D objRegExp.Replace(strFileContents,"")
			 	=09
			 	'Put the tittle, description and the keywords back into the file to =
be searched
			 	strFileContents =3D strFileContents &amp; " " &amp; strPageTitle =
&amp; " " &amp; strPageDescription &amp; " " &amp; strPageKeywords
			 =09
			=20
			 				 =09
			 	'If the user has choosen to search by phrase=20
			 	If Request.QueryString("mode") =3D "phrase" Then
			 	=09
			 		'Set the pattern to search for
			 		objRegExp.Pattern =3D "\b" &amp; strSearchWords &amp; "\b"
			 	=09
			 		'Search the file for the phrase
			 		Set objMatches =3D objRegExp.Execute(strFileContents)
			 	=09
			 		'Check to see if the phrase has been found
			 		If objMatches.Count &gt; 0 Then
			 	=09
			 			'Get the number of times the phrase is matched
			 			intNumMatches =3D objMatches.Count
			 	=09
			 			'If the search is found then set the search found variable to =
true
			 			blnSearchFound =3D True
			 		End If
			 =09
			 =09
			 	'Else the search is either by all or any words
			 	Else
			 			 =09
			 		'If the search is by all words then initialise the search found =
variable to true
				 	If Request.QueryString("mode") =3D "allwords" then blnSearchFound =
=3D True
				 =09
				 =09
				 	'Loop round to search for each word to be searched
				 	For intSearchLoopCounter =3D 0 to UBound(sarySearchWord)
				 =09
				 		'Set the pattern to search for
				 		objRegExp.Pattern =3D "\b" &amp; =
sarySearchWord(intSearchLoopCounter) &amp; "\b"
				 	=09
				 		'Search the file for the search words
				 		Set objMatches =3D objRegExp.Execute(strFileContents)
				 		    =09
					    	'Check to see if any of the words have been found
					    	If objMatches.Count &gt; 0 Then=20
					    =09
					    		'Get the number of times the search word is matched
			 				intNumMatches =3D intNumMatches + objMatches.Count
				    =09
				    			'If the search word is found and the search is for any words =
then set the search found variable to true
				    			If Request.QueryString("mode") =3D "anywords" then =
blnSearchFound =3D True
				    		=09
				    		Else
				    			'If the search word is not found and the search is for all =
words then set the search found variable back to false as one of the =
words has not been found
				    			If Request.QueryString("mode") =3D "allwords" then =
blnSearchFound =3D False
				    		=09
				    		End If
				    	Next
			    	End If
			    				    =09
			    =09
			    	'Calculate the total files searched
			    	intTotalFilesSearched =3D intTotalFilesSearched + 1
		=09
		=09
			    =09
			    	'If the page contains no title then Page Title variable the =
appropriate message to display
			    	If strPageTitle =3D "" Then strPageTitle =3D "No Title"
			    =09
			    	'If the page contains no title then Page Description variable =
the appropriate message to display
			    	If strPageDescription =3D "" Then strPageDescription =3D "No =
Description"
			    =09
			    		    				    			    =09
			    =09
			    	'If the search found variable is true then display the results
			    	If blnSearchFound =3D True Then
			    			    =09
			    					    		    =09
					'Calculate the total files found=20
					intTotalFilesFound =3D intTotalFilesFound + 1
									=09
			    			    	=09
					'Check that the file shown is between the the files shown so far =
and the maximum files to show per page
					If  intNumFilesShown &lt; (intRecordsPerPage + intFileNum) and =
intTotalFilesFound &gt; intNumFilesShown Then
=09
						'Calculate the number of results shown
						intNumFilesShown =3D intNumFilesShown + 1
					=09
					End If=09
	=09
					       	=09
				       	=09
			       		'Place the search results into the saerch results array
			       		'Calculate the array position of the results array
			       		intResultsArrayPosition =3D intResultsArrayPosition + 1
			       	=09
				       	=09
			       		'Set the search results found boolean to true
			       		blnSearchResultsFound =3D True
				       					       	=09
					'If the file is in the root directory then
					If blnIsRoot =3D True Then
					=09
					=09
						'Place the search results into the search results array
						sarySearchResults(intResultsArrayPosition,1) =3D "&lt;a =
href=3D""./" &amp;  filObject.Name &amp; """ target=3D""_self""&gt;" =
&amp; strPageTitle &amp; "&lt;/a&gt;"=20
												=09
								    						       	=09
			       		'Else it is not in the root directiory
			       		Else
			       			'Place the search results into the search results array
			       			sarySearchResults(intResultsArrayPosition,1) =3D "&lt;a =
href=3D""./" &amp; strFileURL  &amp; fldObject.Name &amp; "/" &amp; =
filObject.Name &amp; """ target=3D""_self""&gt;" &amp; strPageTitle =
&amp; "&lt;/a&gt;"			   			   							=09
					=09
					End If					=09
				=09
					'Place the rest of the search results in the search results array
					sarySearchResults(intResultsArrayPosition,1) =3D =
sarySearchResults(intResultsArrayPosition,1) &amp; vbCrLf &amp; "        =
&amp;nbsp;" &amp; strPageDescription
					sarySearchResults(intResultsArrayPosition,1) =3D =
sarySearchResults(intResultsArrayPosition,1) &amp; vbCrLf &amp; "        =
&lt;font size=3D""2"" color=3D""#0000FF""&gt;&lt;i&gt;Score " &amp; =
intNumMatches &amp; " &amp;nbsp;-&amp;nbsp; Last Updated " &amp; =
FormatDateTime(filObject.DateLastModified, VbLongDate) &amp; " =
&amp;nbsp;-&amp;nbsp; Size " &amp; CInt(filObject.Size / 1024) &amp; =
"kb&lt;/i&gt;&lt;/font&gt;"
				=09
				=09
				=09
					'Read in the number of search word matches into the second part of =
the two dimensional array
					sarySearchResults(intResultsArrayPosition,2) =3D intNumMatches
								=09
		      		End If
						=09
				'Close the text stream object
		    		tsObject.Close
			End If
		End If
	Next
=09
	'Reset the Regular Expression object
	Set objRegExp =3D Nothing
	=09
=09
	'Loop to search through the sub folders within the site
	For Each subFldObject In FldObject.SubFolders
									=09
		'Check to make sure the folder about to be searched is not a barred =
folder if it is then don't search
		If NOT InStr(1, strBarredFolders, subFldObject.Name, vbTextCompare) =
&gt; 0 Then
		=09
			'Set to false as we are searching sub directories
			blnIsRoot =3D False
					=09
				=09
			'Get the server path to the file
			strFileURL =3D fldObject.Path &amp; "\"
		=09
			'Turn the server path to the file into a URL path to the file
			strFileURL =3D Replace(strFileURL, strServerPath, "")
		=09
			'Replace the NT backslash with the internet forward slash in the URL =
to the file
			strFileURL =3D Replace(strFileURL, "\", "/")
		=09
			'Encode the file name and path into the URL code method
			strFileURL =3D Server.URLEncode(strFileURL)
		=09
			'Just incase it's encoded any backslashes
			strFileURL =3D Replace(strFileURL, "%2F", "/")
					=09
			'Call the search sub prcedure to search the web site
			Call SearchFile(subFldObject)
		End If
	Next



	'Reset server variables
	Set filObject =3D Nothing
	Set tsObject =3D Nothing
	Set subFldObject =3D Nothing
End Sub




'Sub procedure to sort the array using a Bubble Sort to place highest =
matches first
Private Sub SortResultsByNumMatches(ByRef sarySearchResults, ByRef =
intTotalFilesFound)

	'Dimension variables
	Dim intArrayGap 		'Holds the part of the array being sorted
	Dim intIndexPosition		'Holds the Array index position being sorted
	Dim intTempResultsHold		'Temperary hold for the results if they need =
swapping array positions	=09
	Dim intTempNumMatchesHold	'Temperary hold for the number of matches for =
the result if they need swapping array positions
	Dim intPassNumber		'Holds the pass number for the sort
=09
=09
	'Loop round to sort each result found
	For intPassNumber =3D 1 To intTotalFilesFound
=09
		'Shortens the number of passes
		For intIndexPosition =3D 1 To (intTotalFilesFound - intPassNumber)
	=09
			'If the Result being sorted hass less matches than the next result in =
the array then swap them
			If sarySearchResults(intIndexPosition,2) &lt; =
sarySearchResults((intIndexPosition+1),2) Then
		=09
			=09
				'Place the Result being sorted in a temporary variable
				intTempResultsHold =3D sarySearchResults(intIndexPosition,1)
			=09
				'Place the Number of Matches for the result being sorted in a =
temporary variable
				intTempNumMatchesHold =3D sarySearchResults(intIndexPosition,2)
			=09
			=09
				'Do the array position swap
			=09
				'Move the next Result with a higher match rate into the present =
array location
				sarySearchResults(intIndexPosition,1) =3D =
sarySearchResults((intIndexPosition+1),1)
								=09
				'Move the next Number of Matches for the result with a higher match =
rate into the present array location
				sarySearchResults(intIndexPosition,2) =3D =
sarySearchResults((intIndexPosition+1),2)
			=09
				'Move the Result from the teporary holding variable into the next =
array position
				sarySearchResults((intIndexPosition+1),1) =3D intTempResultsHold
			=09
				'Move the Number of Matches for the result from the teporary holding =
variable into the next array position
				sarySearchResults((intIndexPosition+1),2) =3D intTempNumMatchesHold		=
=09
			End If
		Next		=09
	Next				=09
End Sub




'Function to read in the files meta tags
Private Function GetFileMetaTag(ByRef strStartValue, ByRef strEndValue, =
ByVal strFileContents)

	'Dimension Variables
	Dim intStartPositionInFile	'Holds the start position in the file
	Dim intEndPositionInFile	'Holds the end position in the file
=09
=09
	'Get the start position in the file of the meta tag
	intStartPositionInFile =3D InStr(1, LCase(strFileContents), =
strStartValue, 1)
=09
=09
	'If no description or keywords are found then you may be using =
http-equiv=3D instead of name=3D in your meta tags
	If intStartPositionInFile =3D 0 And InStr(strStartValue, "name=3D") =
Then
	=09
		'Swap name=3D for http-equiv=3D=20
		strStartValue =3D Replace(strStartValue, "name=3D", "http-equiv=3D")
	=09
		'Check again for keywords or description
		intStartPositionInFile =3D InStr(1, LCase(strFileContents), =
strStartValue, 1)	=09
	End If
=09
				    =09
	'If there is a description then the position in file will be over 0
	If NOT intStartPositionInFile =3D 0 Then
				=09
		'Get the end position of the HTML meta tag
		intStartPositionInFile =3D intStartPositionInFile + Len(strStartValue)
					=09
		'Get the position in file of the closing tag for the meta tag
		intEndPositionInFile =3D InStr(intStartPositionInFile, =
LCase(strFileContents), strEndValue, 1)
=09
		'Read in the meta tag from the file for the function to return
		GetFileMetaTag =3D Trim(Mid(strFileContents, intStartPositionInFile, =
(intEndPositionInFile - intStartPositionInFile)))
				=09
	'If the is no meta tag then the GetFileMetaTag function returns a null =
value
	Else
		GetFileMetaTag =3D ""
		       	=09
	End If

End Function
%&gt;
 =20
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSleep>Sleep</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSleep rows=3D4 cols=3D46>WScript.Sleep 10000


msgbox "OK"
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSort2Arrays>Sort2Arrays</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSort2Arrays rows=3D4 cols=3D46>Dim  SortedArray()
Function SortTwoArrays(IndexArray1(),Array2())
	Counter =3D 0
	For Each Item in IndexArray1
		Counter =3D Counter +1
	next
	Counter =3D Counter-1

	ReDim SortedArray(Counter,2,1)
	Redim LocalArray(Counter,2,1)  =20

	i =3D 0
	For Each Item in IndexArray1
		LocalArray(i,0,0) =3D Item
		i =3D i +1
	next

	i =3D 0
	For Each Item in Array2
		LocalArray(i,1,0) =3D Item
		i =3D i +1
	next

	Buf =3D 1
	k =3D 0
	m =3D 0
	Do While  Buf&lt;&gt;0
		k =3D k+1=20
		Buf =3D 0
		For i=3D0 to Counter
			CurrentBuf =3D LocalArray(i,0,0)
			If CurrentBuf &gt; Buf then
				Buf =3D CurrentBuf
				Buf2 =3D LocalArray(i,1,0)
				IndexBuf =3D i
			end if
		next
=20

		LocalArray(IndexBuf,0,0) =3D 0

		If Buf &lt;&gt;0 then
			l =3D k - 1
			m =3D l+1
			SortedArray(l,0,0) =3D Buf
			SortedArray(l,1,0) =3D Buf2
		end if

	Loop

 SortTwoArrays =3D m
end function
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSortArray>SortArray</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSortArray rows=3D4 cols=3D46>&lt;%
Function SortArr(UnSortArray())
		Dim i, j, m, arraylenght
		arraylenght =3D UBound(UnSortArray)
		Dim SortArray(arraylenght)

		For j=3D0 to arraylenght
		n=3DUnSortArray(j)
			m=3Dj
			For i=3D0 to arraylenght
				If n&lt;UnSortArray(i) then
					n=3DUnSortArray(i)
					m=3Di
				end if
			next
			SortArray(j)=3DUnSortArray(m)
			UnSortArray(m)=3D0
		next
		ReDim SortArr(arraylenght)
		For i=3D0 arraylenght
			SortArr(i)=3DSortArray(i)=20
		next
end function
%&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSortDouble>SortDouble</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSortDouble rows=3D4 cols=3D46>Private Sub QuicksortDouble(list() =
As Double, ByVal min As Integer, ByVal max As Integer)
Dim med_value As Double
Dim hi As Integer
Dim lo As Integer
Dim i As Integer

    ' If the list has no more than CutOff elements,
    ' finish it off with SelectionSort.
    If max &lt;=3D min Then Exit Sub

    ' Pick the dividing value.
    i =3D Int((max - min + 1) * Rnd + min)
    med_value =3D list(i)

    ' Swap it to the front.
    list(i) =3D list(min)

    lo =3D min
    hi =3D max
    Do
        ' Look down from hi for a value &lt; med_value.
        Do While list(hi) &gt;=3D med_value
            hi =3D hi - 1
            If hi &lt;=3D lo Then Exit Do
        Loop
        If hi &lt;=3D lo Then
            list(lo) =3D med_value
            Exit Do
        End If

        ' Swap the lo and hi values.
        list(lo) =3D list(hi)
       =20
        ' Look up from lo for a value &gt;=3D med_value.
        lo =3D lo + 1
        Do While list(lo) &lt; med_value
            lo =3D lo + 1
            If lo &gt;=3D hi Then Exit Do
        Loop
        If lo &gt;=3D hi Then
            lo =3D hi
            list(hi) =3D med_value
            Exit Do
        End If
       =20
        ' Swap the lo and hi values.
        list(hi) =3D list(lo)
    Loop
   =20
    ' Sort the two sublists.
    QuicksortDouble list(), min, lo - 1
    QuicksortDouble list(), lo + 1, max
End Sub
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSortInteger>SortInteger</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSortInteger rows=3D4 cols=3D46>Private Sub QuicksortInt(list() As =
Integer, ByVal min As Integer, ByVal max As Integer)
Dim med_value As Integer
Dim hi As Integer
Dim lo As Integer
Dim i As Integer

    ' If the list has no more than CutOff elements,
    ' finish it off with SelectionSort.
    If max &lt;=3D min Then Exit Sub

    ' Pick the dividing value.
    i =3D Int((max - min + 1) * Rnd + min)
    med_value =3D list(i)

    ' Swap it to the front.
    list(i) =3D list(min)

    lo =3D min
    hi =3D max
    Do
        ' Look down from hi for a value &lt; med_value.
        Do While list(hi) &gt;=3D med_value
            hi =3D hi - 1
            If hi &lt;=3D lo Then Exit Do
        Loop
        If hi &lt;=3D lo Then
            list(lo) =3D med_value
            Exit Do
        End If

        ' Swap the lo and hi values.
        list(lo) =3D list(hi)
       =20
        ' Look up from lo for a value &gt;=3D med_value.
        lo =3D lo + 1
        Do While list(lo) &lt; med_value
            lo =3D lo + 1
            If lo &gt;=3D hi Then Exit Do
        Loop
        If lo &gt;=3D hi Then
            lo =3D hi
            list(hi) =3D med_value
            Exit Do
        End If
       =20
        ' Swap the lo and hi values.
        list(hi) =3D list(lo)
    Loop
   =20
    ' Sort the two sublists.
    QuicksortInt list(), min, lo - 1
    QuicksortInt list(), lo + 1, max
End Sub
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSortLong>SortLong</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSortLong rows=3D4 cols=3D46>Private Sub QuicksortLong(list() As =
Long, ByVal min As Integer, ByVal max As Integer)
Dim med_value As Long
Dim hi As Integer
Dim lo As Integer
Dim i As Integer

    ' If the list has no more than CutOff elements,
    ' finish it off with SelectionSort.
    If max &lt;=3D min Then Exit Sub

    ' Pick the dividing value.
    i =3D Int((max - min + 1) * Rnd + min)
    med_value =3D list(i)

    ' Swap it to the front.
    list(i) =3D list(min)

    lo =3D min
    hi =3D max
    Do
        ' Look down from hi for a value &lt; med_value.
        Do While list(hi) &gt;=3D med_value
            hi =3D hi - 1
            If hi &lt;=3D lo Then Exit Do
        Loop
        If hi &lt;=3D lo Then
            list(lo) =3D med_value
            Exit Do
        End If

        ' Swap the lo and hi values.
        list(lo) =3D list(hi)
       =20
        ' Look up from lo for a value &gt;=3D med_value.
        lo =3D lo + 1
        Do While list(lo) &lt; med_value
            lo =3D lo + 1
            If lo &gt;=3D hi Then Exit Do
        Loop
        If lo &gt;=3D hi Then
            lo =3D hi
            list(hi) =3D med_value
            Exit Do
        End If
       =20
        ' Swap the lo and hi values.
        list(hi) =3D list(lo)
    Loop
   =20
    ' Sort the two sublists.
    QuicksortLong list(), min, lo - 1
    QuicksortLong list(), lo + 1, max
End Sub
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSortSingle>SortSingle</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSortSingle rows=3D4 cols=3D46>Private Sub QuicksortSingle(list() =
As Single, ByVal min As Integer, ByVal max As Integer)
Dim med_value As Single
Dim hi As Integer
Dim lo As Integer
Dim i As Integer

    ' If the list has no more than CutOff elements,
    ' finish it off with SelectionSort.
    If max &lt;=3D min Then Exit Sub

    ' Pick the dividing value.
    i =3D Int((max - min + 1) * Rnd + min)
    med_value =3D list(i)

    ' Swap it to the front.
    list(i) =3D list(min)

    lo =3D min
    hi =3D max
    Do
        ' Look down from hi for a value &lt; med_value.
        Do While list(hi) &gt;=3D med_value
            hi =3D hi - 1
            If hi &lt;=3D lo Then Exit Do
        Loop
        If hi &lt;=3D lo Then
            list(lo) =3D med_value
            Exit Do
        End If

        ' Swap the lo and hi values.
        list(lo) =3D list(hi)
       =20
        ' Look up from lo for a value &gt;=3D med_value.
        lo =3D lo + 1
        Do While list(lo) &lt; med_value
            lo =3D lo + 1
            If lo &gt;=3D hi Then Exit Do
        Loop
        If lo &gt;=3D hi Then
            lo =3D hi
            list(hi) =3D med_value
            Exit Do
        End If
       =20
        ' Swap the lo and hi values.
        list(hi) =3D list(lo)
    Loop
   =20
    ' Sort the two sublists.
    QuicksortSingle list(), min, lo - 1
    QuicksortSingle list(), lo + 1, max
End Sub
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSortString>SortString</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSortString rows=3D4 cols=3D46>Private Sub QuicksortString(list() =
As String, ByVal min As Integer, ByVal max As Integer)
Dim med_value As String
Dim hi As Integer
Dim lo As Integer
Dim i As Integer

    ' If the list has no more than CutOff elements,
    ' finish it off with SelectionSort.
    If max &lt;=3D min Then Exit Sub

    ' Pick the dividing value.
    i =3D Int((max - min + 1) * Rnd + min)
    med_value =3D list(i)

    ' Swap it to the front.
    list(i) =3D list(min)

    lo =3D min
    hi =3D max
    Do
        ' Look down from hi for a value &lt; med_value.
        Do While list(hi) &gt;=3D med_value
            hi =3D hi - 1
            If hi &lt;=3D lo Then Exit Do
        Loop
        If hi &lt;=3D lo Then
            list(lo) =3D med_value
            Exit Do
        End If

        ' Swap the lo and hi values.
        list(lo) =3D list(hi)
       =20
        ' Look up from lo for a value &gt;=3D med_value.
        lo =3D lo + 1
        Do While list(lo) &lt; med_value
            lo =3D lo + 1
            If lo &gt;=3D hi Then Exit Do
        Loop
        If lo &gt;=3D hi Then
            lo =3D hi
            list(hi) =3D med_value
            Exit Do
        End If
       =20
        ' Swap the lo and hi values.
        list(hi) =3D list(lo)
    Loop
   =20
    ' Sort the two sublists.
    QuicksortString list(), min, lo - 1
    QuicksortString list(), lo + 1, max
End Sub
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSortVariant>SortVariant</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSortVariant rows=3D4 cols=3D46>Private Sub =
QuicksortVariant(list() As Variant, ByVal min As Integer, ByVal max As =
Integer)
Dim med_value As Variant
Dim hi As Integer
Dim lo As Integer
Dim i As Integer

    ' If the list has no more than CutOff elements,
    ' finish it off with SelectionSort.
    If max &lt;=3D min Then Exit Sub

    ' Pick the dividing value.
    i =3D Int((max - min + 1) * Rnd + min)
    med_value =3D list(i)

    ' Swap it to the front.
    list(i) =3D list(min)

    lo =3D min
    hi =3D max
    Do
        ' Look down from hi for a value &lt; med_value.
        Do While list(hi) &gt;=3D med_value
            hi =3D hi - 1
            If hi &lt;=3D lo Then Exit Do
        Loop
        If hi &lt;=3D lo Then
            list(lo) =3D med_value
            Exit Do
        End If

        ' Swap the lo and hi values.
        list(lo) =3D list(hi)
       =20
        ' Look up from lo for a value &gt;=3D med_value.
        lo =3D lo + 1
        Do While list(lo) &lt; med_value
            lo =3D lo + 1
            If lo &gt;=3D hi Then Exit Do
        Loop
        If lo &gt;=3D hi Then
            lo =3D hi
            list(hi) =3D med_value
            Exit Do
        End If
       =20
        ' Swap the lo and hi values.
        list(hi) =3D list(lo)
    Loop
   =20
    ' Sort the two sublists.
    QuicksortVariant list(), min, lo - 1
    QuicksortVariant list(), lo + 1, max
End Sub
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DSpecial>Special</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DSpecial rows=3D4 cols=3D46>&lt;%
For i =3D 33 to 44
	Response.write "Chr(" &amp; i &amp; ") =3D " &amp; Chr(i) &amp; ""
Next
response.write "Chr(47) =3D " &amp; Chr(47) &amp; ""
For i =3D 58 to 63
	Response.write "Chr(" &amp; i &amp; ") =3D " &amp; Chr(i) &amp; ""
Next
For i =3D 91 to 94
	Response.write "Chr(" &amp; i &amp; ") =3D " &amp; Chr(i) &amp; ""
Next
Response.write "Chr(96) =3D " &amp; Chr(96)    &amp; ""
Response.write "Chr(123) =3D " &amp; Chr(123) &amp; ""
%&gt;

Output :
Chr(33) =3D !
Chr(34) =3D "
Chr(35) =3D #
Chr(36) =3D $
Chr(37) =3D %
Chr(38) =3D &amp;
Chr(39) =3D '
Chr(40) =3D (
Chr(41) =3D )
Chr(42) =3D *
Chr(43) =3D +
Chr(44) =3D ,
Chr(47) =3D /
Chr(58) =3D :
Chr(59) =3D ;
Chr(60) =3D=20
Chr(61) =3D =3D
Chr(62) =3D &gt;
Chr(63) =3D ?
Chr(91) =3D [
Chr(92) =3D \
Chr(93) =3D ]
Chr(94) =3D ^
Chr(96) =3D `
Chr(123) =3D {


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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>    How to print the Special =
Characters

&lt;%
For i =3D 33 to 44
	Response.write "Chr(" &amp; i &amp; ") =3D " &amp; Chr(i) &amp; =
"&lt;br&gt;"
Next
response.write "Chr(47) =3D " &amp; Chr(47) &amp; "&lt;br&gt;"
      For i =3D 58 to 63
	Response.write "Chr(" &amp; i &amp; ") =3D " &amp; Chr(i) &amp; =
"&lt;br&gt;"
Next
For i =3D 91 to 94
	Response.write "Chr(" &amp; i &amp; ") =3D " &amp; Chr(i) &amp; =
"&lt;br&gt;"
Next
Response.write "Chr(96) =3D " &amp; Chr(96)   &amp; "&lt;br&gt;"
Response.write "Chr(123) =3D " &amp; Chr(123) &amp; "&lt;br&gt;"
%&gt;

Output :
Chr(33) =3D !
Chr(34) =3D "
Chr(35) =3D #
Chr(36) =3D $
Chr(37) =3D %
Chr(38) =3D &amp;
Chr(39) =3D '
Chr(40) =3D (
Chr(41) =3D )
Chr(42) =3D *
Chr(43) =3D +
Chr(44) =3D ,
Chr(47) =3D /
Chr(58) =3D :
Chr(59) =3D ;
Chr(60) =3D=20
Chr(61) =3D =3D
Chr(62) =3D &gt;
Chr(63) =3D ?
Chr(91) =3D [
Chr(92) =3D \
Chr(93) =3D ]
Chr(94) =3D ^
Chr(96) =3D `
Chr(123) =3D {


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DString>String</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DString rows=3D4 cols=3D46>   How to Split a String
   How to Match a String
   How to convert a string to lower case and UPPER case
   How to format a string.  Say a phone number





How to split a String=20
&lt;%
myString =3D "I, am, just, about, to, split, this, string"
myArray =3D Split(myString,",")
For Each myItem in myArray
Response.Write myItem &amp; ""
Next
%&gt;
Outputs :=20
I
am
just
about
to
split
this
string




How to Match a String=20
&lt;%
myString =3D "Once upon a time, in the Indian Jungles...."
If InStr(myString,"India") Then
Response.Write "String 'India' is a present" &amp; ""
Else
Response.Write "String 'India' is not a present" &amp; ""
End If
%&gt;
Outputs :  String 'India' is a present






Converting String to UPPER and lower Case
Say we have the follwoing string
&lt;%
strTemp =3D "The quick brown fox Jumps over the lazy Dog."
%&gt;
LOWER   Case String:&lt;%=3D LCase(strTemp) %&gt;
UPPER Case   String:&lt;%=3D UCase(strTemp) %&gt;=20
Output :  =20
LOWER   Case String:   the quick brown fox jumps over the lazy dog.
UPPER Case   String:   THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.







How to get various parts of a String=20
Say we have a phone number &lt;%=3DlCF%&gt;
phno               =3D "8003218684"

Code for getting string length
&lt;% phno_legnth =3D len(tele) %&gt;

Code for formatting
&lt;%=3D left(phno,3) %&gt;-&lt;%=3D mid(phno,4,3) %&gt;-&lt;%=3D =
right(phno,4) %&gt;=20
Output :  After Formatting phno :   800-321-8684

Note :

&lt;%=3D left(phno(counter),3) %&gt;   yields 800
&lt;%=3D mid(phno(counter),4,3) %&gt; yields 321
&lt;%=3D right(phno(counter),4) %&gt; yields 8684


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DStringcase>Stringcase</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStringcase rows=3D4 cols=3D46>Converting String to UPPER and =
lower Case
Say we have the follwoing string
&lt;%
strTemp =3D "The quick brown fox Jumps over the lazy Dog."
%&gt;
LOWER  Case String:&lt;%=3D LCase(strTemp) %&gt;
UPPER Case  String:&lt;%=3D UCase(strTemp) %&gt;=20
Output : =20
LOWER  Case String:  the quick brown fox jumps over the lazy dog.
UPPER Case  String:  THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DStringmatch>Stringmatch</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStringmatch rows=3D4 cols=3D46>
How to Match a String=20
&lt;%
myString =3D "Once upon a time, in the Indian Jungles...."
If InStr(myString,"India") Then
Response.Write "String 'India' is a present" &amp; "&lt;BR&gt;"
Else
Response.Write "String 'India' is not a present" &amp; "&lt;BR&gt;"
End If
%&gt;
Outputs :  String 'India' is a present



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DStringpart>Stringpart</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStringpart rows=3D4 cols=3D46>How to get various parts of a =
String=20
Say we have a phone number &lt;%=3DlCF%&gt;
phno          =3D "8003218684"

Code for getting string length
&lt;% phno_legnth =3D len(tele) %&gt;

Code for formatting
&lt;%=3D left(phno,3) %&gt;-&lt;%=3D mid(phno,4,3) %&gt;-&lt;%=3D =
right(phno,4) %&gt;=20
Output :  After Formatting phno :  800-321-8684

Note :

&lt;%=3D left(phno(counter),3) %&gt;  yields 800
&lt;%=3D mid(phno(counter),4,3) %&gt; yields 321
&lt;%=3D right(phno(counter),4) %&gt; yields 8684




</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DStringsplit>Stringsplit</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DStringsplit rows=3D4 cols=3D46>How to split a String=20
&lt;%
myString =3D "I, am, just, about, to, split, this, string"
myArray =3D Split(myString,",")
For Each myItem in myArray
Response.Write myItem &amp; "&lt;BR&gt;"
Next
%&gt;
Outputs :=20
I
am
just
about
to
split
this
string



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DTime>Time</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DTime rows=3D4 cols=3D46>   Time formats
   Time Parts
   Time Add and Subtract
   Time Difference





Time Format 	[ All output relative to time as 2/7/2000 11:52:18 AM ]


&lt;% =3DFormatDateTime(Now(),1)%&gt;
Outputs :  11:52:18 AM


&lt;%=3DFormatDateTime(Now(),2)%&gt;
Outputs :    11:52


&lt;%=3DTime()%&gt;
Outputs : 11:52:18 AM







Time Part=20

Seconds

It is &lt;%=3DSecond(Time)%&gt; seconds in time &lt;%=3DTime()%&gt;
Outputs :  It is 18 seconds in time 11:52:18 AM

It is &lt;%=3DDatePart("s",Now)%&gt; seconds in time &lt;%=3DTime()%&gt;
Outputs :  It is 18 seconds in time 11:52:18 AM



Minutes=20

It is &lt;%=3DMinute(Time)%&gt;   minutes in time &lt;%=3DTime()%&gt;
Outputs :  It is 52 minutes in time 11:52:18 AM

It is &lt;%=3DDatePart("n",Now)%&gt; minutes in time &lt;%=3DTime()%&gt;
Outputs :  It is 52 minutes in time 11:52:18 AM

Hours

It is &lt;%=3DHour(Time)%&gt;   hours in time &lt;%=3DTime()%&gt;
Outputs :  It is 11 hours in time 11:52:18 AM


It is &lt;%=3DDatePart("h",Now)%&gt; hours in time &lt;%=3DTime()%&gt;
Outputs :  It is 11 hours in time 11:52:18 AM








Time Add and Subtract

Add


Seconds

Time now is &lt;%=3DNow%&gt;
30 seconds from now it will be &lt;%=3DDateAdd("s",30,Now)%&gt;=09
Outputs as : Time now is 2/7/2000 12:08:05 PM .
30 seconds from now it will be 2/7/2000 12:10:16 PM

Minutes

Time now is &lt;%=3DNow%&gt;
30 minutes from now it will be &lt;%=3DDateAdd("n",30,Now)%&gt;	=09
Outputs as :  Time now is 2/7/2000 12:08:05 PM .
30 minutes from now it will be 2/7/2000 12:39:46 PM

Hour

Time now is &lt;%=3DNow%&gt;
2 hours from now it will be   &lt;%=3DDateAdd("h",2,Now)%&gt;	=09
Outputs as :  Time now is 2/7/2000 12:08:05 PM .
2 hours from now it will be 2/7/2000 2:09:46 PM




Subtract

Seconds

Time now is &lt;%=3DNow%&gt;
30 seconds before the time was &lt;%=3DDateAdd("s",-30,Now)%&gt;=09
Outputs as :  Time now is 2/7/2000 12:08:05 PM .
30 seconds before the time was 2/7/2000 12:09:16 PM

Minutes

Time now is &lt;%=3DNow%&gt;
30 minutesbefore time was &lt;%=3DDateAdd("n",-30,Now)%&gt;=09
Outputs as :  Time now is 2/7/2000 12:08:05 PM .
30 minutes before time was 2/7/2000 11:39:46 AM


Hours

Time now is &lt;%=3DNow%&gt;
2 hours before time was &lt;%=3DDateAdd("h",-2,Now)%&gt;=09
Outputs as :  Time now is 2/7/2000 12:08:05 PM .
2 hours before time was 2/7/2000 10:09:46 AM




Time Difference [ Relative to Time Now as 2/7/2000 12:15:13 PM ]

Seconds

Its &lt;%=3DDateDiff("s",Now,"8/15/1947")*-1 %&gt;seconds since =
'8/15/1947'
Outputs as : Its 1656245713   seconds since '8/15/1947'

Minutes

Its &lt;%=3DDateDiff("n",Now,"8/15/1947")*-1 %&gt;minutes since =
'8/15/1947'
Outputs as : Its 27604095   minutes since '8/15/1947'

Hours

Its &lt;%=3DDateDiff("h",Now,"8/15/1947")*-1 %&gt;hours since =
'8/15/1947'
Outputs as : Its 460068   hours since '8/15/1947'


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DTimeadd>Timeadd</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DTimeadd rows=3D4 cols=3D46>Add Seconds

Time now is &lt;%=3DNow%&gt;
30 seconds from now it will be &lt;%=3DDateAdd("s",30,Now)%&gt;=09
Outputs as : Time now is 2/7/2000 12:08:05 PM .
30 seconds from now it will be 2/7/2000 12:10:16 PM

Minutes

Time now is &lt;%=3DNow%&gt;
30 minutes from now it will be &lt;%=3DDateAdd("n",30,Now)%&gt;	=09
Outputs as :  Time now is 2/7/2000 12:08:05 PM .
30 minutes from now it will be 2/7/2000 12:39:46 PM

Hour

Time now is &lt;%=3DNow%&gt;
2 hours from now it will be  &lt;%=3DDateAdd("h",2,Now)%&gt;	=09
Outputs as :  Time now is 2/7/2000 12:08:05 PM .
2 hours from now it will be 2/7/2000 2:09:46 PM



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DTimediff>Timediff</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DTimediff rows=3D4 cols=3D46>Time Difference [ Relative to Time =
Now as 2/7/2000 12:15:13 PM ]

Seconds

Its &lt;%=3DDateDiff("s",Now,"8/15/1947")*-1 %&gt;seconds since =
'8/15/1947'
Outputs as : Its 1656245713  seconds since '8/15/1947'

Minutes

Its &lt;%=3DDateDiff("n",Now,"8/15/1947")*-1 %&gt;minutes since =
'8/15/1947'
Outputs as : Its 27604095  minutes since '8/15/1947'

Hours

Its &lt;%=3DDateDiff("h",Now,"8/15/1947")*-1 %&gt;hours since =
'8/15/1947'
Outputs as : Its 460068  hours since '8/15/1947'



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DTimeformat>Timeformat =
</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DTimeformat rows=3D4 cols=3D46>Time Format 	[ All output relative =
to time as 2/7/2000 11:52:18 AM ]


&lt;% =3DFormatDateTime(Now(),1)%&gt;
Outputs :  11:52:18 AM


&lt;%=3DFormatDateTime(Now(),2)%&gt;
Outputs :   11:52


&lt;%=3DTime()%&gt;
Outputs : 11:52:18 AM


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DTimepart>Timepart</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DTimepart rows=3D4 cols=3D46>Time Part 	[ All output relative to =
time as 2/7/2000 11:52:18 AM ]


Seconds

It is &lt;%=3DSecond(Time)%&gt; seconds in time &lt;%=3DTime()%&gt;
Outputs :  It is 18 seconds in time 11:52:18 AM

It is &lt;%=3DDatePart("s",Now)%&gt; seconds in time &lt;%=3DTime()%&gt;
Outputs :  It is 18 seconds in time 11:52:18 AM



Minutes=20

It is &lt;%=3DMinute(Time)%&gt;  minutes in time &lt;%=3DTime()%&gt;
Outputs :  It is 52 minutes in time 11:52:18 AM

It is &lt;%=3DDatePart("n",Now)%&gt; minutes in time &lt;%=3DTime()%&gt;
Outputs :  It is 52 minutes in time 11:52:18 AM



Hours

It is &lt;%=3DHour(Time)%&gt;  hours in time &lt;%=3DTime()%&gt;
Outputs :  It is 11 hours in time 11:52:18 AM


It is &lt;%=3DDatePart("h",Now)%&gt; hours in time &lt;%=3DTime()%&gt;
Outputs :  It is 11 hours in time 11:52:18 AM



</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DTimesub>Timesub</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DTimesub rows=3D4 cols=3D46>Time now is &lt;%=3DNow%&gt;
30 seconds before the time was &lt;%=3DDateAdd("s",-30,Now)%&gt;=09
Outputs as :  Time now is 2/7/2000 12:08:05 PM .
30 seconds before the time was 2/7/2000 12:09:16 PM

Minutes

Time now is &lt;%=3DNow%&gt;
30 minutesbefore time was &lt;%=3DDateAdd("n",-30,Now)%&gt;=09
Outputs as :  Time now is 2/7/2000 12:08:05 PM .
30 minutes before time was 2/7/2000 11:39:46 AM


Hours

Time now is &lt;%=3DNow%&gt;
2 hours before time was &lt;%=3DDateAdd("h",-2,Now)%&gt;=09
Outputs as :  Time now is 2/7/2000 12:08:05 PM .
2 hours before time was 2/7/2000 10:09:46 AM


</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DUsernameValidation>UsernameValidation</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DUsernameValidation rows=3D4 cols=3D46>function =
Is_Invalid_Username(username)
	dim re
	set re =3D new RegExp
	' list of invalid characters in a user name.
	re.Pattern =3D "[/\\""\[\]:&lt;&gt;\+=3D;,@]"
	Is_Invalid_Username =3D  re.Test(username)
end function
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DGetXMLAuth>GetXMLAuth</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DGetXMLAuth rows=3D4 cols=3D46>&lt;%
Set objHttp =3D CreateObject("MSXML2.XMLHTTP")

objHttp.Open "GET", "http://www.www.microsoft.com/login.asp", False, =
"chris", "12345"
objHttp.Send=20

Response.Write(objHttp.responseText)

Set objHttp =3D Nothing

%&gt;

it could be one of the following:

Set objHttp =3D CreateObject("MSXML2.XMLHTTP")

or

Set getPage =3D Server.CreateObject("Microsoft.XMLHTTP" )

or

Set getPage =3D Server.CreateObject("MSXML2.ServerXMLHTTP" )

Or

Set getPage =3D Server.CreateObject("MSXML2.XMLHTTP.3.0" )
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DPOSTForm>POSTForm</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DPOSTForm rows=3D4 cols=3D46>Here is how to POST a Form to other =
URL on a background process and return the result


&lt;%
WebUrl =3D "http://www.generalhosting.com"
SdHost =3D "www.generalhosting.com"

myRequest =3D Request.Form

Set objHTTP =3D Server.CreateObject("MSXML2.XMLHTTP")
objHTTP.Open "POST", WebUrl, False
objHTTP.setRequestHeader "Host", SdHost
objHTTP.setRequestHeader "Content-Type", =
"application/x-www-form-urlencoded"
objHTTP.setRequestHeader "Content-Length", Len(myRequest)
objHTTP.Send myRequest

Status =3D objHttp.Status
Result =3D objHttp.ResponseText

Response.Write ("Status: " &amp;(Status))
Response.Write ("Result: " &amp;(Result))

Set objHTTP =3D Nothing
%&gt;
</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DConnecttoMySQL>ConnecttoMySQL</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DConnecttoMySQL rows=3D4 cols=3D46>&lt;%

'Using ODBC MySQL provider
'On Error Resume Next
conString =3D =
"Driver=3D{mysql};server=3Dlocalhost;database=3Ddatabase_name;uid=3Duser_=
name;pwd=3Dpassword;"

Set objConn=3DServer.CreateObject("ADODB.Connection")
objConn.Open conString


%&gt;</TEXTAREA><BR></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><A=20
                              =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">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=3DEditTableMySQL>EditTableMySQL</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3DEditTableMySQL rows=3D4 cols=3D46>&lt;!--#INCLUDE =
FILE=3D"Connect_to_MySQL.asp" --&gt;

&lt;%
' This program show the records for specified client from a table
' It allows then to be updated
' It does not matter how many fields there are into the table and what =
type they are
' The table should have some index field to indetify the rows

If Request.QueryString("client_id")&lt;&gt;"" then
	client_id =3D Request.QueryString("client_id")
else
	client_id =3D Request.Form("client_id")
end if

If Request.QueryString("Table_Name")&lt;&gt;"" then
	Table_Name =3D Request.QueryString("Table_Name")
else
	Table_Name =3D Request.Form("Table_Name")
end if


ListSQL =3D "SELECT * FROM " &amp; Table_Name &amp; " WHERE =
`client_id`=3D'" &amp; client_id &amp; "' ORDER BY `index` ASC"=20



Function Update_Records()
	Dim i, params, param, param_name
	i=3D0
=20
	Set objRS =3D objConn.Execute(ListSQL)
	objRS.MoveFirst
	Do while not objRS.eof
		For each Item in objRS.Fields
			param_name =3D Item.Name &amp; i
			param =3D Request.Form(param_name)
			If param=3D"" then
				params =3D params &amp; "`" &amp; Item.Name &amp; "` =3DNULL, "
			else
				params =3D params &amp; "`" &amp; Item.Name &amp; "` =3D '" &amp; =
param &amp; "', "
			end if
    		Next

		params =3D Left(params, Len(params)-2) 'Remove the last comma
		UpdateSQL =3D "UPDATE `" &amp; Table_Name &amp; "` SET " &amp; params =
&amp; " WHERE `client_id`=3D'" &amp; client_id &amp; "' AND `index`=3D'" =
&amp; Request.Form("index" &amp; i) &amp; "' LIMIT 1 ;"
		'Response.Write updateSQL_str &amp; "&lt;br&gt;"
		Set update_result =3D objConn.Execute(UpdateSQL)
   		objRS.MoveNext
		params =3D ""
		i=3Di+1
  	Loop
	Update_Records =3D update_result
end function

If Request.Form("update")=3D"Update" then
	Update_Records
	Response.write "Records have been updated succefuly."
end if
%&gt;


&lt;head&gt;
&lt;meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dwindows-1252"&gt;
&lt;title&gt;Payment admin&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;form method=3Dpost action=3D"&lt;%=3DTable_Name%&gt;.asp" &gt;
&lt;input type=3Dhidden name=3Dclient_id value=3D&lt;%=3Dclient_id%&gt; =
&gt;
&lt;input type=3Dhidden name=3DTable_Name =
value=3D&lt;%=3DTable_Name%&gt; &gt;

&lt;table border=3D"0" cellspacing=3D0 cellpadding=3D0&gt;
&lt;tr&gt;
&lt;td class=3D"norm" colSpan=3D"6" &gt;
&lt;br&gt;
&lt;/td&gt;
&lt;/tr&gt;


&lt;tr&gt;
&lt;%

Set objRS =3D objConn.Execute(ListSQL)

'On Error Resume Next
objRS.MoveFirst

For each Item in objRS.Fields
	name=3DItem.Name &amp; count
	value=3DItem.Value
   old_name=3D"old_" &amp; Item.Name &amp; count
	size=3DItem.Name &amp; "_size"
%&gt;
	&lt;td  bgColor=3D"#bbffbb"  &gt;&lt;font size=3D-2 =
&gt;|&lt;%=3Dname%&gt;&lt;/font&gt;&lt;/td&gt;
&lt;%
next
%&gt;
&lt;/tr&gt;

&lt;%

count=3D0
Do while not objRS.eof
%&gt;
&lt;tr&gt;
&lt;%

For each Item in objRS.Fields
	name=3DItem.Name &amp; count
	value=3DItem.Value
   old_name=3D"old_" &amp; Item.Name &amp; count
	size=3DItem.Name &amp; "_size"
%&gt;
	&lt;td class=3D"small" bgColor=3D"#bbffbb"  &gt;&lt;input type=3Dtext =
name=3D&lt;%=3Dname%&gt; value=3D"&lt;%=3Dvalue%&gt;" =
size=3D&lt;%=3DLen(value)%&gt; &gt;&lt;/td&gt;
	&lt;input type=3Dhidden name=3D&lt;%=3Dold_name%&gt;   =
value=3D"&lt;%=3Dvalue%&gt;"  &gt;
&lt;%
next


objRS.MoveNext
count=3Dcount+1
%&gt;
&lt;/tr&gt;
&lt;%
Loop


=09
%&gt;

&lt;/table&gt;
&lt;input type=3Dsubmit name=3Dupdate value=3DUpdate &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/asp.htm#ASP SCRIPTS">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=3DListTablesMySQL>ListTablesMySQL</A></FONT></SPAN><FONT=20
                              style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                              style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3Dlistmysql rows=3D4 cols=3D46>&lt;!--#INCLUDE =
FILE=3D"Connect_to_MySQL.asp" --&gt;

&lt;%

TablesSQL =3D "SHOW TABLES"
Set Tables =3D objConn.Execute(TablesSQL)

%&gt;

&lt;html&gt;
&lt;head&gt;
&lt;STYLE type=3Dtext/css&gt;.small {FONT-SIZE: 11px; FONT-FAMILY: =
helvetica,arial,verdana,sans serif}&lt;/STYLE&gt;
&lt;/head&gt;

&lt;body bgColor=3D#EFEFEF &gt;


&lt;table cellspacing=3D1 cellpadding=3D1 &gt;



&lt;%
Do while not Tables.eof
%&gt;
  &lt;tr&gt;
    &lt;td width=3D"25%"&gt; &lt;/td&gt;
    &lt;td width=3D"25%"&gt;&lt;a =
href=3D"&lt;%=3DTables.Fields(0)%&gt;.asp?client_id=3D&lt;%=3Drequested_c=
lient_id%&gt;&amp;Table_Name=3D&lt;%=3DTables.Fields(0)%&gt;" =
&gt;&lt;%=3DTables.Fields(0)%&gt;&lt;/td&gt;
    &lt;td width=3D"25%"&gt; &lt;/td&gt;
    &lt;td width=3D"25%"&gt; &lt;/td&gt;
  &lt;/tr&gt;
&lt;%
Tables.MoveNext
Loop
%&gt;


&lt;/table&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/asp.htm#ASP SCRIPTS">back=20
                              to top</A><BR></FONT><FONT =
style=3D"FONT-SIZE: 9pt"=20
                              =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TA=
BLE>
                  <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%"><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 =
style=3D"FONT-SIZE: 9pt"><A=20
                        name=3DAuthSMTP>AuthSMTP</A></FONT></SPAN><FONT=20
                        style=3D"FONT-SIZE: 9pt"><BR></FONT><SPAN=20
                        style=3D"FONT-SIZE: 9pt"><TEXTAREA =
name=3Dauthsmtp rows=3D4 cols=3D60>&lt;%
sch =3D "http://schemas.microsoft.com/cdo/configuration/"
' Script to send email via authenticated SMTP
Set cdoConfig =3D Server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(sch &amp; "sendusing") =3D 2
cdoConfig.Fields.Item(sch &amp; "smtpserver") =3D =
"outgoingsmtpserver.yourdomain.com"
		=09
'Does this require a user login or password?
cdoConfig.Fields.Item(sch &amp; "smtpauthenticate") =3D 1
cdoConfig.Fields.Item(sch &amp; "sendusername") =3D "userID"
cdoConfig.Fields.Item(sch &amp; "sendpassword") =3D "password"
cdoConfig.Fields.Item(sch &amp; "smtpserverport") =3D 25		=09

cdoConfig.fields.update
		=09
Set cdoMessage =3D Server.CreateObject("CDO.Message")
Set cdoMessage.Configuration =3D cdoConfig
cdoMessage.From =3D "yourname@yourdomain.com"
cdoMessage.To =3D "somemail@somedomain.com"
cdoMessage.Subject =3D "Test Message"
						   =20
msgString =3D "Test message body"=20
=09
cdoMessage.TextBody =3D msgString
			   =20
on error resume next
cdoMessage.Send

%&gt;



</TEXTAREA><BR></SPAN><FONT style=3D"FONT-SIZE: 9pt"><A=20
                        =
href=3D"http://www.generalhosting.com/scripts/asp.htm#ASP SCRIPTS">back=20
                        to top</A><BR></FONT><FONT style=3D"FONT-SIZE: =
9pt"=20
                        =
color=3D#ffffff>..</FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TA=
BLE></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 =
border=3D0></TD>
    <TD width=3D2 =
background=3Dhttp://www.generalhosting.com/htm/dotline.gif><IMG=20
      height=3D1 alt=3D"" =
src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D2=20
      border=3D0></TD>
    <TD width=3D5><IMG height=3D1 alt=3D""=20
      src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D3 =
border=3D0></TD>
    <TD class=3Dtan style=3D"BACKGROUND-COLOR: #ffcc39" width=3D10><IMG =
height=3D1=20
      alt=3D"" src=3D"http://www.generalhosting.com/htm/spacer.gif" =
width=3D3=20
    border=3D0></TD></TR></TBODY></TABLE></TD></TR><TR><TD =
colspan=3D"2"><IMG height=3D2=20
alt=3D"" src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D1=20
border=3D0></TD></TR> <TR><TD colspan=3D"2"=20
background=3D"http://www.generalhosting.com/htm/dotline.gif"><IMG =
height=3D1 alt=3D""=20
src=3D"http://www.generalhosting.com/htm/spacer.gif" width=3D1 =
border=3D0></TD></TR>=20
<TR><TD colspan=3D"2"><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 colspan=3D"2" height=3D"16" =

align=3D"center"><A class=3Dfooter=20
href=3D"http://www.generalhosting.com/htm/terms-conditions.htm">30-Day =
Money Back=20
Guarantee</A> | <A class=3Dfooter=20
href=3D"http://www.generalhosting.com/htm/terms-conditions.htm" =
target=3Dterms>Terms=20
&amp; Conditions</A> | =A9 GeneralHosting.com/Winweb LLC., Official =
Microsoft=20
Windows 2003 Hosting</TD> </TR></TABLE></CENTER></DIV></BODY></HTML>

------=_NextPart_000_0000_01C97FA1.0299DCF0
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_0000_01C97FA1.0299DCF0
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_0000_01C97FA1.0299DCF0
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_0000_01C97FA1.0299DCF0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://www.generalhosting.com/htm/icon_house.gif

R0lGODlhDwAPAIABAP///zMzMyH5BAEAAAEALAAAAAAPAA8AAAIajI+py73gDphx2mbzy1pR83kQ
OIpSGaXqGhUAOw==

------=_NextPart_000_0000_01C97FA1.0299DCF0
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_0000_01C97FA1.0299DCF0
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_0000_01C97FA1.0299DCF0
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_0000_01C97FA1.0299DCF0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://www.generalhosting.com/htm/dotline.gif

R0lGODlhAwACAJEAAAAAAP///2ZmZv///yH5BAEAAAMALAAAAAADAAIAAAIDjIJRADs=

------=_NextPart_000_0000_01C97FA1.0299DCF0
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_0000_01C97FA1.0299DCF0--

