From: <Saved by Windows Internet Explorer 7>
Subject: Shiv Kumar's Tutorials - Building your First WebService in Delphi
Date: Mon, 15 Sep 2008 13:49:33 -0700
MIME-Version: 1.0
Content-Type: multipart/related;
	type="text/html";
	boundary="----=_NextPart_000_0000_01C91739.E25473D0"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://exposureroom.com/members/skumar.aspx/tutorials/post/1

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" =
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns=3D"http://www.w3.org/1999/xhtml"><HEAD><TITLE>Shiv Kumar's =
Tutorials - Building your First WebService in Delphi</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dutf-8"><LINK=20
href=3D"/images/favicon.png" type=3Dimage/png rel=3Dicon><LINK=20
href=3D"/images/favicon.png" type=3Dimage/png rel=3D"Shortcut Icon">
<META content=3D"MSHTML 6.00.6000.16705" name=3DGENERATOR>
<META http-equiv=3DWindow-target content=3D_top>
<META content=3DProgramming,Delphi,SOAP,WebServices name=3Dkeywords>
<META=20
content=3D"If you've been reading the Webservice articles on this site =
in the order that they are listed, then this is your first Webservice. =
As WebServices go, this is not the simplest of WebServices, but my th"=20
name=3Ddescription>
<META content=3D"Shiv Kumar" name=3Dauthor><LINK=20
href=3D"http://exposureroom.com/Stylesheets/Themes/Earth_Arial_100.css"=20
type=3Dtext/css rel=3Dstylesheet><LINK=20
href=3D"http://exposureroom.com/stylesheets/exrMenus.css" =
type=3Dtext/css=20
rel=3Dstylesheet><LINK=20
href=3D"http://exposureroom.com/stylesheets/exrContainers.css" =
type=3Dtext/css=20
rel=3Dstylesheet>
<SCRIPT language=3Djavascript =
src=3D"http://exposureroom.com/JavaScripts/Hsi.js"=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT language=3Djavascript=20
src=3D"http://exposureroom.com/JavaScripts/HsiObjects.js"=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT =
src=3D"http://exposureroom.com/JavaScripts/SwapAssetDivVisibility.js"=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT language=3Djavascript type=3Dtext/javascript>
      if (top.frames.length!=3D0)
        top.location=3Dself.document.location;

      function showPopupWindow(url, windowName, width, height) {
        var features =3D =
"toolbar=3D0,location=3D0,status=3D0,menubar=3D0,scrollbars=3D1,resizable=
=3D1,height=3D" + height + ",width=3D" + width;
        if (url.indexOf("?") =3D=3D -1)
          url +=3D "?tz=3D" + getTimeString();
        else
          url +=3D "&tz=3D" + getTimeString();
        popupWin =3D window.open(url, windowName, features, 0);
        popupWin.focus();
        return popupWin;
      }
     =20
      function getTimeString() {
        var d =3D new Date();
        return d.getHours().toString() + d.getMinutes().toString() + =
d.getSeconds().toString() + d.getMilliseconds().toString();
      }

      function urlEncode(url) {
        var encodedUrl =3D escape(url);
        encodedUrl =3D encodedUrl.replace(/\//g,"%2F");
        encodedUrl =3D encodedUrl.replace(/\?/g,"%3F");
        encodedUrl =3D encodedUrl.replace(/=3D/g,"%3D");
        encodedUrl =3D encodedUrl.replace(/&/g,"%26");
        encodedUrl =3D encodedUrl.replace(/@/g,"%40");
        return encodedUrl;
      }   =20
    </SCRIPT>

<SCRIPT src=3D"http://exposureroom.com/JavaScripts/Validation.js"=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT src=3D"http://exposureroom.com/JavaScripts/JournalPostEntry.js"=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT language=3Djavascript type=3Dtext/javascript>
    hsiFolder =3D "/Hsi/";
    hostMemberJournalHomePageUrl =3D "/members/skumar.aspx/tutorials/"
    itemId =3D "1"
    jtype =3D "Tutorials"
    var popUpWin;
  </SCRIPT>
</HEAD>
<BODY>
<TABLE id=3Dmaincontainer cellSpacing=3D0 cellPadding=3D0 border=3D0>
  <TBODY>
  <TR>
    <TD=20
    style=3D"BACKGROUND-IMAGE: url(/Images/xrBanner.jpg); =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 100px; TEXT-ALIGN: left"=20
    colSpan=3D2><A=20
      style=3D"BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; =
BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none"=20
      href=3D"http://exposureroom.com/"><IMG title=3D"ExposureRoom Home" =

      style=3D"LEFT: 14px; CURSOR: pointer; POSITION: relative; TOP: =
9px"=20
      alt=3D"ExposureRoom Home"=20
      src=3D"http://exposureroom.com/Images/xrBannerLogo.jpg"></A>=20
      <DIV style=3D"MARGIN: 0px"><SPAN=20
      style=3D"MARGIN: 0px 0px 0px 880px">&nbsp;</SPAN> <SPAN=20
      class=3D"xrSectionMenu brighter"=20
      onmouseover=3D"this.className=3D'xrSectionMenuSelected brighter'"=20
      style=3D"MARGIN: 0px"=20
      onclick=3D"javascript:window.location.href =3D =
'/login.aspx?redirectUrl=3D' + urlEncode(window.location.href);"=20
      onmouseout=3D"this.className=3D'xrSectionMenu brighter'">Log =
in</SPAN> <SPAN=20
      class=3D"xrSectionMenu brighter"=20
      onmouseover=3D"this.className=3D'xrSectionMenuSelected brighter'"=20
      style=3D"DISPLAY: none; VISIBILITY: hidden; MARGIN: 0px"=20
      onclick=3D"javascript:window.location.href =3D '/logout.aspx'"=20
      onmouseout=3D"this.className=3D'xrSectionMenu brighter'">Log =
Out</SPAN> <SPAN=20
      class=3D"xrSectionMenu brighter"=20
      onmouseover=3D"this.className=3D'xrSectionMenuSelected brighter'"=20
      style=3D"MARGIN: 0px 0px 0px 10px"=20
      onclick=3D"javascript:window.location.href =3D '/r.aspx';"=20
      onmouseout=3D"this.className=3D'xrSectionMenu brighter'">Sign =
Up</SPAN>=20
      <DIV class=3D"small bright"=20
      style=3D"PADDING-RIGHT: 12px; MARGIN-TOP: 0px; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px; HEIGHT: 13px; TEXT-ALIGN: =
right"></DIV></DIV></TD></TR>
  <TR>
    <TD id=3Dcontentcontainer>
      <SCRIPT type=3Dtext/javascript>
  var localPopupWin =3D null;
  function sendMessageDone(){
    if (localPopupWin){
      localPopupWin.close();
      localPopupWin =3D null;
    }
  }
</SCRIPT>

      <DIV id=3Dhmfn style=3D"DISPLAY: none; VISIBILITY: hidden">Shiv =
Kumar</DIV>
      <DIV=20
      style=3D"MARGIN-TOP: 5px; BACKGROUND-IMAGE: =
url(/GetMemberBannerOrFooterImage.aspx?un=3Dskumar&type=3Dbanner); =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 200px">
      <TABLE=20
      style=3D"BACKGROUND-IMAGE: url(/Images/hmMenuBackground.png); =
MARGIN: -3px 0px 5px; WIDTH: 680px; BACKGROUND-REPEAT: no-repeat"=20
      cellSpacing=3D0 cellPadding=3D0 border=3D0>
        <TBODY>
        <TR>
          <TD=20
          style=3D"PADDING-RIGHT: 5px; PADDING-LEFT: 15px; =
PADDING-BOTTOM: 0px; VERTICAL-ALIGN: top; WIDTH: 60px; PADDING-TOP: =
15px; HEIGHT: 63px"><IMG=20
            title=3D"Shiv's Website"=20
            style=3D"BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; =
BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none"=20
            alt=3D"Shiv's Website"=20
            =
src=3D"http://exposureroom.com/Hsi/GetMemberPortrait.aspx?username=3Dskum=
ar&amp;size=3Dmi">=20
          </TD>
          <TD=20
          style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 0px; VERTICAL-ALIGN: top; WIDTH: 135px; PADDING-TOP: =
5px; TEXT-ALIGN: left">
            <DIV class=3D"desc brighter">Shiv Kumar</DIV>
            <DIV class=3Dsmaller>United States</DIV>
            <DIV style=3D"MARGIN-TOP: -5px"><SPAN=20
            class=3Dsmaller>Friends:</SPAN>&nbsp;<A class=3Dsmall=20
            title=3D"See this Member's Friends"=20
            =
href=3D"http://exposureroom.com/members/skumar.aspx/friends/">71</A></DIV=
>
            <DIV style=3D"MARGIN-TOP: -5px"><SPAN=20
            class=3Dsmaller>Focused&nbsp;on&nbsp;:</SPAN>&nbsp;<A =
class=3Dsmall=20
            title=3D"See who has focused on this Member"=20
            =
href=3D"http://exposureroom.com/members/skumar.aspx/friends/">2</A></DIV>=
</TD>
          <TD style=3D"VERTICAL-ALIGN: top; WIDTH: 440px" colSpan=3D3>
            <DIV id=3Dmenutabs=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 10px; =
PADDING-BOTTOM: 10px; MARGIN: 0px; PADDING-TOP: 3px"><A=20
            class=3Dhmmenu id=3DmnHome=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
            =
href=3D"http://exposureroom.com/members/skumar.aspx/">Home</A>&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;<A=20
            class=3Dhmmenu id=3DmnAssets=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
            =
href=3D"http://exposureroom.com/members/skumar.aspx/assets/">Assets</A>&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;<A=20
            class=3D"hmmenu hmselectedmenu" id=3DmnJournals=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
            =
href=3D"http://exposureroom.com/members/skumar.aspx/journals/">Journals</=
A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A=20
            class=3Dhmmenu id=3DmnFavorites=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
            =
href=3D"http://exposureroom.com/members/skumar.aspx/favorites/">Favorites=
</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A=20
            class=3Dhmmenu id=3DmnFriends=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
            =
href=3D"http://exposureroom.com/members/skumar.aspx/friends/">Friends</A>=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A=20
            class=3Dhmmenu id=3DmnProfile=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
            =
href=3D"http://exposureroom.com/members/skumar.aspx/profile/">Profile</A>=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
            </DIV>
            <DIV id=3Dsubmenucontainer style=3D"MARGIN: 0px">
            <DIV id=3Dsubmenus=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 10px; =
PADDING-BOTTOM: 10px; MARGIN: 0px; PADDING-TOP: 8px"><A=20
            class=3Dhmmenu id=3DmnBlogs=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
            =
href=3D"http://exposureroom.com/members/skumar.aspx/blogs/">Blogs</A>&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;<A=20
            class=3Dhmmenu id=3DmnTutorials=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
            =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/">Tutorials=
</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A=20
            class=3Dhmmenu id=3DmnArticles=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
            =
href=3D"http://exposureroom.com/members/skumar.aspx/articles/">Articles</=
A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A=20
            class=3Dhmmenu id=3DmnReviews=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
            =
href=3D"http://exposureroom.com/members/skumar.aspx/reviews/">Reviews</A>=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
            </DIV></DIV></TD></TR>
        <TR>
          <TD=20
          style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 15px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
          colSpan=3D3>
            <DIV style=3D"PADDING-BOTTOM: 2px"><A class=3Dsmall =
title=3D"Contact Shiv"=20
            onclick=3D"localPopupWin =3D =
showPopupWindow('/members/messages/PrivateMessage.aspx/',  'msgWin', =
750, 660);"=20
            href=3D"javascript:void(0);"=20
          rel=3Dnofollow>Contact&nbsp;Member</A></DIV></TD></TR>
        <TR>
          <TD=20
          style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 15px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
          colSpan=3D5>&nbsp;</TD></TR>
        <TR style=3D"HEIGHT: 30px">
          <TD>&nbsp;</TD>
          <TD>&nbsp;</TD>
          <TD style=3D"VERTICAL-ALIGN: top; WIDTH: 70px">&nbsp;</TD>
          <TD style=3D"VERTICAL-ALIGN: top"></TD>
          <TD>&nbsp;</TD></TR>
        <TR style=3D"HEIGHT: 40px">
          <TD=20
          style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 15px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px"=20
          colSpan=3D5><A=20
            style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 400px; =
PADDING-BOTTOM: 0px; PADDING-TOP: 15px; BORDER-BOTTOM-STYLE: none"=20
            href=3D"http://exposureroom.com/"=20
            =
target=3D_blank>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;</A></TD></TR></TBODY></TABLE></DIV>
      <FORM id=3DaspnetForm name=3DaspnetForm=20
      =
action=3Djournals/PostView.aspx?un=3Dskumar&amp;j=3Dtutorials&amp;id=3D1 =

      method=3Dpost>
      <DIV><INPUT id=3D__VIEWSTATE type=3Dhidden=20
      value=3D/wEPDwUKMTQxODQ0NDYyMWRkdJKUswnNhCWogNCJX/VRcyp9xiQ=3D=20
      name=3D__VIEWSTATE> </DIV>
      <TABLE id=3Dctl00_ctl00_ctl00_content_content_content_jTbl=20
      style=3D"WIDTH: 100%; BACKGROUND-COLOR: #1a1a1a; TEXT-ALIGN: =
justify"=20
      cellSpacing=3D0 cellPadding=3D0>
        <TBODY>
        <TR>
          <TD class=3DrndTbl_grey_tl noWrap></TD>
          <TD class=3DrndTbl_grey_t>
            <TABLE style=3D"WIDTH: 100%" cellSpacing=3D0 cellPadding=3D0 =
border=3D0>
              <TBODY>
              <TR>
                <TD>
                  <H4>Building your First WebService in Delphi</H4></TD>
                <TD style=3D"TEXT-ALIGN: right">
                  <DIV><IMG title=3D"Not Rated Yet" alt=3D"Not Rated =
Yet"=20
                  =
src=3D"http://exposureroom.com/Images/StarOff.png"><IMG=20
                  title=3D"Not Rated Yet" alt=3D"Not Rated Yet"=20
                  =
src=3D"http://exposureroom.com/Images/StarOff.png"><IMG=20
                  title=3D"Not Rated Yet" alt=3D"Not Rated Yet"=20
                  =
src=3D"http://exposureroom.com/Images/StarOff.png"><IMG=20
                  title=3D"Not Rated Yet" alt=3D"Not Rated Yet"=20
                  =
src=3D"http://exposureroom.com/Images/StarOff.png"><IMG=20
                  title=3D"Not Rated Yet" alt=3D"Not Rated Yet"=20
                  =
src=3D"http://exposureroom.com/Images/StarOff.png">0<SPAN=20
                  class=3Dsmaller=20
                  style=3D"PADDING-LEFT: 5px; VERTICAL-ALIGN: =
top">votes</SPAN></DIV></TD></TR>
              <TR>
                <TD class=3Dsmaller style=3D"PADDING-LEFT: 2px" =
vAlign=3Dtop><SPAN=20
                  =
id=3Dctl00_ctl00_ctl00_content_content_content_jTbl_ctl00_ITEM_PUBDATE>Ja=
nuary=20
                  23, 2008 10:10 AM</SPAN> </TD>
                <TD class=3Dsmall style=3D"TEXT-ALIGN: =
right">&nbsp;<SPAN=20
                  class=3Dsmaller>Views:</SPAN><SPAN=20
                  =
id=3Dctl00_ctl00_ctl00_content_content_content_jTbl_ctl00_ITEM_VIEW_CNT><=
A=20
                  title=3D"See View Summary"=20
                  onclick=3D"showPopupWindow(this.href, 'Views', 580, =
730)"=20
                  =
href=3D"http://exposureroom.com/members/views/ViewSummaryPopup.aspx?w=3D5=
80&amp;h=3D730&amp;t=3DTutorials&amp;i=3D1"=20
                  target=3DViews=20
                  rel=3Dnofollow>1075</A></SPAN>&nbsp;&nbsp;&nbsp;<SPAN=20
                  class=3Dsmaller>Favorited:</SPAN><SPAN=20
                  =
id=3Dctl00_ctl00_ctl00_content_content_content_jTbl_ctl00_ITEM_FAVORITE_C=
NT>0</SPAN>=20
                  <A class=3Dsmall style=3D"DISPLAY: none; VISIBILITY: =
hidden"=20
                  =
onclick=3D"showPopupWindow('/members/favorites/favoritedialog.aspx?f=3DTu=
torials&amp;i=3D1&amp;r=3D/members/skumar.aspx/tutorials/post/1', =
'favoriteItWin', 600, 600);"=20
                  href=3D"javascript:void(0);" rel=3Dnofollow><IMG=20
                  title=3D"Favorite It"=20
                  style=3D"VERTICAL-ALIGN: middle; BORDER-TOP-STYLE: =
none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; =
BORDER-BOTTOM-STYLE: none"=20
                  alt=3D"Favorite It"=20
                  =
src=3D"http://exposureroom.com/Images/FavoriteIt.png"></A> <SPAN=20
                  class=3Dsmaller>Comments:<SPAN></SPAN><A=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/post/1#comm=
ents"=20
                  =
rel=3DBookmark>4</A></SPAN></TD></TR></TBODY></TABLE></TD>
          <TD class=3DrndTbl_grey_tr noWrap></TD></TR>
        <TR>
          <TD class=3DrndTbl_grey_l></TD>
          <TD>
            <DIV style=3D"BACKGROUND-COLOR: #1a1a1a">
            <TABLE style=3D"WIDTH: 100%" cellSpacing=3D0 cellPadding=3D0 =
border=3D0>
              <TBODY>
              <TR>
                <TD class=3Dsmall></TD>
                <TD style=3D"TEXT-ALIGN: right"><SPAN =
class=3Dsmaller>Filed=20
                  Under:</SPAN>&nbsp; <SPAN =
class=3Dsmall>Programming</SPAN>=20
</TD></TR>
              <TR>
                <TD style=3D"TEXT-ALIGN: right" colSpan=3D2><SPAN=20
                  class=3Dsmaller>Tags:</SPAN>&nbsp; <SPAN=20
                  class=3Dsmall>Delphi</SPAN>, <SPAN =
class=3Dsmall>SOAP</SPAN>,=20
                  <SPAN class=3Dsmall>WebServices</SPAN> </TD></TR>
              <TR>
                <TD colSpan=3D2></TD></TR>
              <TR>
                <TD vAlign=3Dtop =
colSpan=3D2></TD></TR></TBODY></TABLE></DIV></TD>
          <TD class=3DrndTbl_grey_r></TD></TR>
        <TR>
          <TD class=3DrndTbl_grey_bl></TD>
          <TD class=3DrndTbl_grey_b></TD>
          <TD class=3DrndTbl_grey_br></TD></TR></TBODY></TABLE>
      <TABLE style=3D"WIDTH: 100%" cellSpacing=3D0 cellPadding=3D0 =
border=3D0>
        <TBODY>
        <TR>
          <TD></TD></TR>
        <TR>
          <TD colSpan=3D2>&nbsp;</TD></TR>
        <TR>
          <TD colSpan=3D2><SPAN class=3Ddesc=20
            id=3Dctl00_ctl00_ctl00_content_content_content_ITEM_DESC>If =
you've=20
            been reading the Webservice articles on this site in the =
order that=20
            they are listed, then this is your first Webservice. As =
WebServices=20
            go, this is not the simplest of WebServices, but my thinking =
was=20
            that I could take you through the paces of building a =
Webservice=20
            that addresses some of things you'll need to know when =
building=20
            "real world" WebServices while at the same time not =
overwhelm you=20
            with all these new things. If you haven't read the previous=20
            articles, I strongly suggest you do. This tutorial assumes =
you have=20
            read those articles or know about the things that were =
discussed=20
            there.=20
            <P>In this tutorial, we'll start with building a WebService =
client=20
            for an existing WebService. Then we'll build the WebService =
itself.=20
            This way, you don't have to get both projects up and running =
before=20
            you can have any fun at all. </P>
            <H2>Building the WebService Client</H2>
            <P>So lets start by building a WebService client for an =
existing=20
            Webservice. Just to get our feet wet as it were. If you go =
to <A=20
            title=3Dxmethods =
href=3D"http://www.xmethods.com/ve2/index.po"=20
            rel=3Dnofollow>Xmethods.com</A> you'll see there are a =
number of=20
            WebServices people have posted links for. We'll use one of =
these=20
            services for starters. </P>
            <P>You might notice that I'm being partial here. I've chosen =
the <A=20
            title=3D"Send an Email WebService"=20
            href=3D"http://www.xmethods.com/ve2/ViewListing.po?" =
rel=3Dnofollow=20
            key=3D"uuid:E7B84967-6183-4746-2B3D-E04259314FF5">Send an=20
            Email</A>&nbsp;WebService. We'll write a simple client for =
this=20
            WebService. Before we can begin to use any WebService, we =
need to=20
            have the WSDL file. With Delphi, you simply need the URL to =
a WSDL=20
            file. You could use a physical WSDL file as well, but the =
Expert=20
            available to us, allows us to supply the URL to a WSDL file =
so we'll=20
            use this capability. The expert will generate the Interface =
files=20
            for us. </P>
            <H2>WSDL File</H2>
            <P>Let's take a brief look at the WSDL file. The URL for the =
WSDL=20
            file is <A title=3DIemailService=20
            =
href=3D"http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/Ie=
mailService"=20
            =
rel=3Dnofollow>http://webservices.matlus.com/scripts/emailwebservice.dll/=
wsdl/IemailService</A>.=20
            If you're using I.E, you can click on this link to see the =
WSDL file=20
            inside your browser. Without going into too many details =
(the WSDL=20
            spec. can be quite complex for the faint hearted), lets take =
a look=20
            at some of the elements you should be aware of. </P>
            <P>
            <OL>
              <LI>The <B>&lt;message&gt;</B> element. The =
<CODE>name</CODE>=20
              attribute contains the name of the method with the word=20
              <CODE>Request</CODE> added to it. This is part of the =
spec. This=20
              is not the element that really tells you the name of the =
method=20
              however. That comes later=20
              <LI>the <B>&lt;part&gt;</B> element's <CODE>name</CODE> =
attribute=20
              tells you the name of the parameters while the =
<CODE>type</CODE>=20
              attribute tells you the type of the parameters.=20
              <LI>Next, take a look at the next <B>&lt;message&gt; =
</B>element.=20
              The <CODE>name</CODE> attribute has the name of the method =
with=20
              the word <CODE>Response</CODE> at the end of it. Once =
again, this=20
              is as per spec.=20
              <LI>Under this element the <B>&lt;part&gt; </B>element's=20
              <CODE>name</CODE> attribute tells you what is being =
returned and=20
              the <CODE>type</CODE> attribute tells you the type of this =
return=20
              value.=20
              <LI>The next important element is the <B>&lt;operation&gt; =

              </B>element. This is the element that really gives you the =
remote=20
              method name. In this case <CODE>SendMail</CODE>.=20
              <LI>The <B>&lt;soap:operation&gt; </B>element has an =
attribute=20
              called <CODE>soapAction</CODE>. You'll see this mentioned =
once=20
              again later in this tutorial. The <CODE>value</CODE> of =
this=20
              attribute is generated for you automatically by the Delphi =
6 SOAP=20
              framework. In particular by the =
<CODE>TWSDLHTMLPublish</CODE>=20
              component at the server end. This is the component that =
actually=20
              generated this WSDL file in the first place.(if you =
examine the=20
              URL for this WSDL file, you'll notice that it points to an =
action=20
              in the ISAPI.)=20
              <LI>The <B>&lt;service&gt;</B> element and it's =
<CODE>name</CODE>=20
              attribute are the next elements to look at. We'll see =
these again=20
              when building the client later. In particular, when =
populating the=20
              <CODE>THTTPRIO</CODE> component's <CODE>Service</CODE> and =

              <CODE>Port</CODE> properties. </LI></OL>
            <P>That's probably some of the more important things to look =
for in=20
            a WSDL file when building a Webservice client. Of course, =
things can=20
            get a bit funky when you run into problems with namespaces =
etc. when=20
            dealing with services that were either built according to an =
older=20
            or newer SOAP specification, or different development tool. =
These=20
            are some of the issues you're going to have to live with =
when living=20
            on the bleeding edge of technology. </P>
            <P>I'd also like to take this opportunity to highlight =
another=20
            aspect that relates to XML. Now you don't need to get too =
involved=20
            with this at this point in time. It'll all come together =
soon=20
            enough. So if you don't understand it now, it's ok. For the =
moment=20
            there is no real need to <B>have</B> to understand it. I'm =
talking=20
            about <B>Namespaces</B>. Any good book on XML will give you =
a more=20
            detailed explanation. However, I'll explain things as they =
relate to=20
            SOAP and in particular the WSDL file in question. Right at =
the start=20
            of this WSDL file, you'll see some namespaces being =
declared. In=20
            I.E. they will be highlighted in red (You must have wondered =
about=20
            this when you first show the WSDL file right?). Namespaces =
are=20
            declared as attributes of an element. In this case the=20
            <B>&lt;definitions&gt;</B> element =
like</P><PRE><CODE>xmlns:soap=3D"http://schemas.xmlsoap.org/wsdl/soap/" =
</CODE></PRE>
            <P>
            <P>This declaration now gives us a namespace called=20
            <B><CODE>soap</CODE></B>. Further down in the WSDL file =
there are a=20
            few elements that start with the word <CODE>soap</CODE>. For =

            example, <B>&lt;soap:operation&gt;</B>. This is really the=20
            <B>&lt;operation&gt;</B> element in the =
<B><CODE>soap</CODE></B>=20
            namespace. You can tell this by the virtue of the fact that =
there is=20
            a <B>:</B> (colon) between the word <CODE>soap</CODE> and=20
            <CODE>operation</CODE>. Hope that makes some sense at this =
point.=20
            </P>
            <H2>WebService Client Project</H2>
            <OL>
              <LI>Start a new project=20
              <LI>Then <CODE>File | New | Other</CODE>=20
              <LI>In the New Items dialog, choose the =
<CODE>WebServices</CODE>=20
              tab=20
              <LI>Choose the <CODE>WebServices Importer</CODE>=20
              <LI>Click OK </LI></OL>
            <P><A =
href=3D"http://www.matlus.com/images/FirstWebService1.jpg"=20
            target=3D_blank rel=3Dnofollow><IMG src=3D"" border=3D0></A> =
<BR><B>Figure=20
            1: Selecting the WebServices Importer</B> </P>
            <P>This should show you the Wizard. </P>
            <P><A =
href=3D"http://www.matlus.com/images/FirstWebService4.jpg"=20
            target=3D_blank rel=3Dnofollow><IMG src=3D"" border=3D0></A> =
<BR><B>Figure=20
            2: Showing the WebService Importer Wizard</B> </P>
            <P>In the <CODE>WSDL Location</CODE> field, type in the URL =
for the=20
            WSDL File for the Send an Email WebService. This should be=20
            =
<CODE>http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IEma=
ilService</CODE>.=20
            Once you've done that (make sure the URL you type in is =
exactly as=20
            shown), click on the <CODE>Generate</CODE> button. Delphi =
will now=20
            create a new unit for you and the Interface declaration for =
the Send=20
            an Email WebService. This unit will look like this: </P>
            <P></P>
            <DIV class=3Dcodeblockouter>
            <DIV class=3DcodeblockInner><CODE></CODE><PRE><FONT =
face=3D"Courier New"><FONT color=3D#0000ff><B>Unit</B></FONT> <FONT =
color=3D#000080>Unit2</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>interface</B></FONT>

<FONT color=3D#0000ff><B>uses</B></FONT> <FONT =
color=3D#000080>Types</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>XSBuiltIns</FONT><FONT color=3D#ff0000>;</FONT>
<FONT color=3D#0000ff><B>type</B></FONT>

  <FONT color=3D#000080>IEmailService</FONT> <FONT =
color=3D#ff0000>=3D</FONT> <FONT =
color=3D#0000ff><B>interface</B></FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>IInvokable</FONT><FONT =
color=3D#ff0000>)</FONT>
    <FONT color=3D#ff0000>[</FONT><FONT =
color=3D#008000>'{C355CCC3-4CD4-4577-A0D2-88FBB9B2801E}'</FONT><FONT =
color=3D#ff0000>]</FONT>
    <FONT color=3D#0000ff><B>function</B></FONT> <FONT =
color=3D#000080>SendMail</FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#0000ff><B>const</B></FONT> <FONT =
color=3D#000080>ToAddress</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>WideString</FONT><FONT color=3D#ff0000>;</FONT> <FONT =
color=3D#0000ff><B>const</B></FONT> <FONT =
color=3D#000080>FromAddress</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>WideString</FONT><FONT color=3D#ff0000>;</FONT> <FONT =
color=3D#0000ff><B>const</B></FONT> <FONT =
color=3D#000080>ASubject</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>WideString</FONT><FONT color=3D#ff0000>;</FONT> <FONT =
color=3D#0000ff><B>const</B></FONT> <FONT =
color=3D#000080>MsgBody</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>WideString</FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>:</FONT> <FONT color=3D#000080>Integer</FONT><FONT =
color=3D#ff0000>;</FONT>  <FONT =
color=3D#0000ff><B>stdcall</B></FONT><FONT color=3D#ff0000>;</FONT>
  <FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>


<FONT color=3D#0000ff><B>implementation</B></FONT>

<FONT color=3D#0000ff><B>uses</B></FONT> <FONT =
color=3D#000080>InvokeRegistry</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>initialization</B></FONT>
  <FONT color=3D#000080>InvRegistry</FONT><FONT =
color=3D#ff0000>.</FONT><FONT =
color=3D#000080>RegisterInterface</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>TypeInfo</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>IEmailService</FONT><FONT =
color=3D#ff0000>)</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#008000>'urn:EmailIPortTypeInft-IEmailService'</FONT><FONT =
color=3D#ff0000>,</FONT> <FONT color=3D#008000>''</FONT><FONT =
color=3D#ff0000>)</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>end</B></FONT><FONT =
color=3D#ff0000>.</FONT></FONT>
</PRE></DIV></DIV><PRE></PRE>
            <P>From the code listing above, you should see that the =
interface is=20
            called <CODE>IEmailService</CODE> and that is has one method =
(a=20
            function in this case) called <CODE>SendMail</CODE>. This =
method,=20
            expects to see the parameters required to send an email. =
What is=20
            interesting to note is that this <CODE>Interface</CODE> is =
derived=20
            from an interface called <CODE>IInvokable</CODE>. This is =
new to=20
            Delphi 6. <CODE>IInvokable</CODE> is almost exactly the same =
as=20
            <CODE>IInterface</CODE> (or <CODE>IUnknown</CODE>) which is =
the base=20
            type for all Delphi Interfaces. The key difference is that =
it is=20
            compiled with Run time Type information using the <CODE>{$M =
}</CODE>=20
            compiler directive. I mentioned in the previous articles, =
the Delphi=20
            SOAP implementation uses RTTI and Interfaces. This is one =
part of=20
            that equation. </P>
            <P>The next thing to note is the <CODE>initialization</CODE> =
section=20
            of the unit that was generated. The invocation registry is =
again new=20
            to Delphi 6. The Delphi 6 SOAP framework uses this =
"registry" to be=20
            able to automatically instantiate instances of Invokable =
classes=20
            (classes that implement interfaces derived from IInvokable) =
and=20
            Remoteable classes (we'll get to these in a later tutorial). =

            Needless to say, that if you don't register things that need =
to be=20
            registered, your WebServices will not work. The Online help =
has a=20
            decent explanation of the <CODE>RegisterInterface</CODE> =
method and=20
            the parameters expected (most of them are optional). Also =
notice the=20
            <CODE>stdcall</CODE> directive. Currently, the Delphi =
default=20
            calling convention (register) is not yet supported. You =
could use=20
            any other calling convention that Delphi supports, such as=20
            <CODE>cdecl, pascal, or safecall</CODE>. It is not =
recommended that=20
            you use <CODE>safecall</CODE> since <CODE>safecall</CODE> =
calls are=20
            wrapped with an exception handler by the compiler and this =
may=20
            swallow more exceptions than you'd want to. The default is =
to use=20
            <CODE>stdcall</CODE> so I suggest you stick with this.</P>
            <P>Lets switch to the main form of the application and drop =
down a=20
            <CODE>THTTPRIO</CODE> component on the form. You'll find =
this=20
            component in the WebServices palette. This component has 4 =
key=20
            properties. </P>
            <OL>
              <LI><CODE>WSDLLocation</CODE>=20
              <LI><CODE>Service</CODE>=20
              <LI><CODE>Port</CODE>=20
              <LI><CODE>URL</CODE> </LI></OL>
            <P>You either use the <CODE>WSDLLocation, Service and =
Port</CODE>=20
            properties or just the <CODE>URL</CODE> property. </P>
            <P>
            <P>Given a WSDLLocation (URL) the <CODE>THTTPRIO</CODE> =
component is=20
            capable of parsing out the WSDL file and populating the=20
            <CODE>Service</CODE> and <CODE>Port</CODE> property dropdown =
lists.=20
            So lets fill in the WSDLLocation with the same URL we used =
earlier.=20
            Now drop down the <CODE>Service</CODE> property's combo box =
and=20
            select <CODE>IEmailServiceservice</CODE>. Do the same for =
the=20
            <CODE>Port</CODE> property and select=20
            <CODE>IEmailServicePort</CODE>. </P>
            <P><A =
href=3D"http://www.matlus.com/images/FirstWebService2.jpg"=20
            target=3D_blank rel=3Dnofollow><IMG src=3D"" border=3D0></A> =
<BR><B>Figure=20
            3: Showing the Object Inspector with the THTTPRIO =
component's=20
            properties populated.</B> </P>
            <P>Looking at the parameters required by the =
<CODE>SendMail</CODE>=20
            method of the <CODE>IEmailService</CODE>, I've built a =
simple GUI=20
            with the required fields as show in <B>Figure 3</B> below. =
</P>
            <P><A =
href=3D"http://www.matlus.com/images/FirstWebService3.jpg"=20
            target=3D_blank rel=3Dnofollow><IMG src=3D"" border=3D0></A> =
<BR><B>Figure=20
            4: Showing the simple GUI for the Send an Email =
WebService</B> </P>
            <H2>The Code</H2>
            <P>I've named the unit that Delphi created as=20
            <CODE>EmailIPortTypeInft</CODE>. You don't need to name it =
the same,=20
            but you do need to add this unit to the <CODE>uses</CODE> =
clause of=20
            the <CODE>implementation</CODE> section of your form's unit. =
Once=20
            you do this, in the <CODE>OnClick</CODE> event of the=20
            <CODE>Send</CODE> button you need to write some code. </P>
            <DIV class=3Dcodeblockouter>
            <DIV class=3DcodeblockInner><CODE></CODE><PRE><FONT =
face=3D"Courier New"><FONT color=3D#0000ff><B>unit</B></FONT> <FONT =
color=3D#000080>uClientMain</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>interface</B></FONT>

<FONT color=3D#0000ff><B>uses</B></FONT>
  <FONT color=3D#000080>Windows</FONT><FONT color=3D#ff0000>,</FONT> =
<FONT color=3D#000080>Messages</FONT><FONT color=3D#ff0000>,</FONT> =
<FONT color=3D#000080>SysUtils</FONT><FONT color=3D#ff0000>,</FONT> =
<FONT color=3D#000080>Variants</FONT><FONT color=3D#ff0000>,</FONT> =
<FONT color=3D#000080>Classes</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>Graphics</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>Controls</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>Forms</FONT><FONT color=3D#ff0000>,</FONT>
  <FONT color=3D#000080>Dialogs</FONT><FONT color=3D#ff0000>,</FONT> =
<FONT color=3D#000080>StdCtrls</FONT><FONT color=3D#ff0000>,</FONT> =
<FONT color=3D#000080>Rio</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>SoapHTTPClient</FONT><FONT color=3D#ff0000>,</FONT> =
<FONT color=3D#000080>ComCtrls</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>type</B></FONT>
  <FONT color=3D#000080>TForm1</FONT> <FONT color=3D#ff0000>=3D</FONT> =
<FONT color=3D#0000ff><B>class</B></FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>TForm</FONT><FONT =
color=3D#ff0000>)</FONT>
    <FONT color=3D#000080>HTTPRIO1</FONT><FONT color=3D#ff0000>:</FONT> =
<FONT color=3D#000080>THTTPRIO</FONT><FONT color=3D#ff0000>;</FONT>
    <FONT color=3D#000080>Label1</FONT><FONT color=3D#ff0000>:</FONT> =
<FONT color=3D#000080>TLabel</FONT><FONT color=3D#ff0000>;</FONT>
    <FONT color=3D#000080>Button1</FONT><FONT color=3D#ff0000>:</FONT> =
<FONT color=3D#000080>TButton</FONT><FONT color=3D#ff0000>;</FONT>
    <FONT color=3D#000080>txtToAddress</FONT><FONT =
color=3D#ff0000>:</FONT> <FONT color=3D#000080>TEdit</FONT><FONT =
color=3D#ff0000>;</FONT>
    <FONT color=3D#000080>Label2</FONT><FONT color=3D#ff0000>:</FONT> =
<FONT color=3D#000080>TLabel</FONT><FONT color=3D#ff0000>;</FONT>
    <FONT color=3D#000080>txtFromAddress</FONT><FONT =
color=3D#ff0000>:</FONT> <FONT color=3D#000080>TEdit</FONT><FONT =
color=3D#ff0000>;</FONT>
    <FONT color=3D#000080>Label3</FONT><FONT color=3D#ff0000>:</FONT> =
<FONT color=3D#000080>TLabel</FONT><FONT color=3D#ff0000>;</FONT>
    <FONT color=3D#000080>txtSubject</FONT><FONT =
color=3D#ff0000>:</FONT> <FONT color=3D#000080>TEdit</FONT><FONT =
color=3D#ff0000>;</FONT>
    <FONT color=3D#000080>MemMessageBody</FONT><FONT =
color=3D#ff0000>:</FONT> <FONT color=3D#000080>TMemo</FONT><FONT =
color=3D#ff0000>;</FONT>
    <FONT color=3D#000080>Label4</FONT><FONT color=3D#ff0000>:</FONT> =
<FONT color=3D#000080>TLabel</FONT><FONT color=3D#ff0000>;</FONT>
    <FONT color=3D#000080>StatusBar1</FONT><FONT =
color=3D#ff0000>:</FONT> <FONT color=3D#000080>TStatusBar</FONT><FONT =
color=3D#ff0000>;</FONT>
    <FONT color=3D#0000ff><B>procedure</B></FONT> <FONT =
color=3D#000080>Button1Click</FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#000080>Sender</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>TObject</FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>;</FONT>
  <FONT color=3D#0000ff><B>private</B></FONT>
    <FONT color=3D#808080>{ Private declarations }</FONT>
  <FONT color=3D#0000ff><B>public</B></FONT>
    <FONT color=3D#808080>{ Public declarations }</FONT>
  <FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>var</B></FONT>
  <FONT color=3D#000080>Form1</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>TForm1</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>implementation</B></FONT>

<FONT color=3D#808080>{$R *.dfm}</FONT>

<FONT color=3D#0000ff><B>uses</B></FONT>
 <FONT color=3D#000080>EmailIPortTypeInft</FONT><FONT =
color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>procedure</B></FONT> <FONT =
color=3D#000080>TForm1</FONT><FONT color=3D#ff0000>.</FONT><FONT =
color=3D#000080>Button1Click</FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#000080>Sender</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>TObject</FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>;</FONT>
<FONT color=3D#0000ff><B>begin</B></FONT>
  <FONT color=3D#000080>Screen</FONT><FONT color=3D#ff0000>.</FONT><FONT =
color=3D#000080>Cursor</FONT> <FONT color=3D#ff0000>:=3D</FONT> <FONT =
color=3D#000080>crHourGlass</FONT><FONT color=3D#ff0000>;</FONT>
  <FONT color=3D#000080>StatusBar1</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>SimpleText</FONT> <FONT =
color=3D#ff0000>:=3D</FONT> <FONT color=3D#008000>'Sending =
Email....'</FONT><FONT color=3D#ff0000>;</FONT>
  <FONT color=3D#000080>StatusBar1</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Refresh</FONT><FONT =
color=3D#ff0000>;</FONT>
  <FONT color=3D#0000ff><B>try</B></FONT>
    <FONT color=3D#0000ff><B>if</B></FONT> <FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>HTTPRIO1</FONT> <FONT =
color=3D#0000ff><B>as</B></FONT> <FONT =
color=3D#000080>IEmailService</FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>SendMail</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>txtToAddress</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Text</FONT><FONT =
color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>txtFromAddress</FONT><FONT color=3D#ff0000>.</FONT><FONT =
color=3D#000080>Text</FONT><FONT color=3D#ff0000>,</FONT>
      <FONT color=3D#000080>txtSubject</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Text</FONT><FONT =
color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>MemMessageBody</FONT><FONT color=3D#ff0000>.</FONT><FONT =
color=3D#000080>Lines</FONT><FONT color=3D#ff0000>.</FONT><FONT =
color=3D#000080>Text</FONT><FONT color=3D#ff0000>)</FONT> <FONT =
color=3D#ff0000>&lt;&gt;</FONT> <FONT color=3D#800080>0</FONT> <FONT =
color=3D#0000ff><B>then</B></FONT>
      <FONT color=3D#000080>StatusBar1</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>SimpleText</FONT> <FONT =
color=3D#ff0000>:=3D</FONT> <FONT color=3D#008000>'Error Sending =
Email.'</FONT>
    <FONT color=3D#0000ff><B>else</B></FONT>
      <FONT color=3D#000080>StatusBar1</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>SimpleText</FONT> <FONT =
color=3D#ff0000>:=3D</FONT> <FONT color=3D#008000>'Email =
Sent.'</FONT><FONT color=3D#ff0000>;</FONT>
    <FONT color=3D#000080>StatusBar1</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Refresh</FONT><FONT =
color=3D#ff0000>;</FONT>
  <FONT color=3D#0000ff><B>finally</B></FONT>
    <FONT color=3D#000080>Screen</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Cursor</FONT> <FONT =
color=3D#ff0000>:=3D</FONT> <FONT color=3D#000080>crDefault</FONT><FONT =
color=3D#ff0000>;</FONT>
  <FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>
<FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>


<FONT color=3D#0000ff><B>end</B></FONT><FONT =
color=3D#ff0000>.</FONT></FONT>
</PRE></DIV></DIV><PRE></PRE>
            <P>
            <P>Basically, you really need just one line of code. Most of =
the=20
            code you see in the OnClick event is really related to GUI =
frills.=20
            The one line of code that really does the work is: </P>
            <DIV class=3Dcodeblockouter>
            <DIV class=3DcodeblockInner><CODE></CODE><PRE><FONT =
face=3D"Courier New">    <FONT color=3D#0000ff><B>if</B></FONT> <FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>HTTPRIO1</FONT> <FONT =
color=3D#0000ff><B>as</B></FONT> <FONT =
color=3D#000080>IEmailService</FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>SendMail</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>txtToAddress</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Text</FONT><FONT =
color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>txtFromAddress</FONT><FONT color=3D#ff0000>.</FONT><FONT =
color=3D#000080>Text</FONT><FONT color=3D#ff0000>,</FONT>
      <FONT color=3D#000080>txtSubject</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Text</FONT><FONT =
color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>MemMessageBody</FONT><FONT color=3D#ff0000>.</FONT><FONT =
color=3D#000080>Lines</FONT><FONT color=3D#ff0000>.</FONT><FONT =
color=3D#000080>Text</FONT><FONT color=3D#ff0000>)</FONT> <FONT =
color=3D#ff0000>&lt;&gt;</FONT> <FONT color=3D#800080>0</FONT> <FONT =
color=3D#0000ff><B>then</B></FONT></FONT>
</PRE></DIV></DIV><PRE></PRE>
            <P>If you run this application and fill in the values to =
send=20
            yourself an email and hit the send button, you'll receive =
and email=20
            if all goes well.</P>
            <H2>Behind the Scenes</H2>So what's happening? First of all, =
you're=20
            using a WebService that is already there for you to use. =
Because the=20
            service exists, you can use it without the need to build it=20
            yourself. This is one the reasons that SOAP is so exciting. =
SOAP has=20
            added another dimension to the word "re-usability".=20
            <P>Behind the scenes, the <CODE>THTTPRIO</CODE> component =
has built=20
            a SOAP envelope for you and sent it over to the WebService =
server.=20
            The server knows what to do with this SOAP envelop. This =
SOAP=20
            envelope (for those interested) looks like this: </P>
            <DIV class=3Dcodeblockouter>
            <DIV class=3DcodeblockInner><CODE></CODE><PRE>POST =
http://matlus.matlus.com/scripts/emailwebservice.dll/soap/IEmailservice =
HTTP/1.0<BR>Accept: application/octet-stream, text/xml<BR>SOAPAction: =
"urn:EmailIPortTypeInft-IEmailService"<BR>Content-Type: =
text/xml<BR>User-Agent: Borland SOAP 1.1<BR>Host: =
matlus.matlus.com<BR>Content-Length: 759<BR>Proxy-Connection: =
Keep-Alive<BR>Pragma: no-cache<BR><BR>&lt;?xml version=3D"1.0" =
encoding=3D'UTF-8'?&gt;<BR>  &lt;SOAP-ENV:Envelope =
xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/"<BR>    =
xmlns:xsd=3D"http://www.w3.org/1999/XMLSchema"<BR>    =
xmlns:xsi=3D"http://www.w3.org/1999/XMLSchema-instance"<BR>    =
xmlns:SOAP-ENC=3D"http://schemas.xmlsoap.org/soap/encoding/"&gt; <BR>    =
&lt;SOAP-ENV:Body&gt; <BR>      &lt;NS1:SendMail =
xmlns:NS1=3D"urn:EmailIPortTypeInft-IEmailService" =
SOAP-ENV:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/"&gt; =
<BR>        &lt;NS1:ToAddress =
xsi:type=3D"xsd:string"&gt;shivk@erols.com&lt;/NS1:ToAddress&gt; <BR>    =
    &lt;NS1:FromAddress xsi:type=3D"xsd:string"&gt;Shiv =
Kumar&lt;shiv@matlus.com&gt;&lt;/NS1:FromAddress&gt; <BR>        =
&lt;NS1:ASubject xsi:type=3D"xsd:string"&gt; =
Testing&lt;/NS1:ASubject&gt; <BR>        &lt;NS1:MsgBody =
xsi:type=3D"xsd:string"&gt;This is a TEST MESSAGE&lt;/NS1:MsgBody&gt; =
<BR>      &lt;/NS1:SendMail&gt; <BR>    &lt;/SOAP-ENV:Body&gt; <BR>  =
&lt;/SOAP-ENV:Envelope&gt;<BR></PRE></DIV></DIV>Let=20
            me highlight some of the things you might want/need to know. =
<BR>
            <OL>
              <LI>In the HTTP header take a look at the URL that was =
constructed=20
              -=20
              =
<CODE>http://matlus.matlus.com/scripts/emailwebservice.dll/soap/Iemailser=
vice</CODE>.=20
              What is key here is the part after the=20
              <CODE>emailwebservice.dll</CODE>. On the server side, when =
the=20
              Service receives this Request a component called=20
              <CODE>THTTPSOAPDispatcher</CODE> fields this request =
(because it=20
              has PathInfo <CODE>/soap</CODE>). It then hands it over to =
another=20
              component called <CODE>THTTPPascalInvoker</CODE>. This =
component=20
              looks up the Invocation Registry and tries to match the =
name of=20
              the interface (<CODE>IEmailService</CODE>). If it finds a =
match,=20
              it instantiates an instance of the class that implements =
this=20
              interface. We'll get to this when we build the server =
side. But=20
              you should know, that this is done for you automatically =
by the=20
              Delphi 6 SOAP framework.=20
              <LI>The <CODE>SOAPAction</CODE> HTTP header. This is a new =
HTTP=20
              header required for SOAP calls. This is one of the headers =
that a=20
              firewall/proxy can look for to either allow/disallow SOAP =
calls=20
              past it for security reasons. Of course, the SOAP spec. =
does not=20
              make this mandatory. I would guess that in time this =
header will=20
              be mandatory.=20
              <LI>Next, within the XML Document (SOAP envelope) you =
should see=20
              the name of the method.=20
              <LI>You should also see the parameters and values to these =

              parameters that are being sent to the server. </LI></OL>
            <P>The server processed this packet and responded with =
another SOAP=20
            packet that looks like this </P><CODE></CODE>
            <DIV class=3Dcodeblockouter>
            <DIV class=3DcodeblockInner><PRE>HTTP/1.1 200 OK<BR>Server: =
Microsoft-IIS/5.0<BR>Date: Sat, 14 Jul 2001 07:35:44 =
GMT<BR>Content-Type: text/xml<BR>Content-Length: =
531<BR>Content:<BR><BR>&lt;?xml version=3D"1.0" =
encoding=3D'UTF-8'?&gt;<BR>  &lt;SOAP-ENV:Envelope =
xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/"<BR>    =
xmlns:xsd=3D"http://www.w3.org/1999/XMLSchema"<BR>    =
xmlns:xsi=3D"http://www.w3.org/1999/XMLSchema-instance"<BR>    =
xmlns:SOAP-ENC=3Dhttp://schemas.xmlsoap.org/soap/encoding/&gt;<BR>    =
&lt;SOAP-ENV:Body&gt;<BR>      &lt;NS1:SendMailResponse =
xmlns:NS1=3D"urn:EmailIPortTypeInft-IEmailService" =
SOAP-ENV:encodingStyle=3Dhttp://schemas.xmlsoap.org/soap/encoding/&gt;<BR=
>        &lt;NS1:return xsi:type=3D"xsd:int"&gt;0&lt;/NS1:return&gt;<BR> =
     &lt;/NS1:SendMailResponse&gt;<BR>    &lt;/SOAP-ENV:Body&gt;<BR>  =
&lt;/SOAP-ENV:Envelope&gt;<BR></PRE></DIV></DIV>After=20
            looking at all of this, I'm sure you'll appreciate the fact =
that the=20
            Delphi 6 SOAP framework hides the HTTP and XML details from =
you and=20
            does all of the hard work while you wrote a simple line of =
code!=20
            <P>If you really want to know what all the XML stuff is =
you'll need=20
            to go deeper into the SOAP spec and XML. If you want to be a =
good=20
            SOAP programmer you can't avoid this. For now however, we =
don't=20
            <B>need </B>to know. </P>
            <P>What if this WebService was written in Java or C ? How =
would they=20
            know what to do with such as request? In particular, how do =
they=20
            treat <CODE>IEmailService</CODE>? As I mentioned in the =
previous=20
            articles, Delphi 6's SOAP implementation uses Interfaces. =
Other SOAP=20
            tool kits don't have to. So they will understand this =
request the=20
            way <B>They</B> need to. SOAP is an implementation and =
platform=20
            agnostic protocol. With WebServices it doesn't matter what =
tool the=20
            service is written in or what platform its running on. Well, =
this is=20
            the ideal scenario. Currently, there are interoperability =
issues,=20
            but we'll get there one day I'm sure. For the most part, =
things=20
            should work just fine. </P>
            <P>With the knowledge you've gained so far, you should be =
able to=20
            experiment with other WebServices listed on the XMethods web =
site. I=20
            suggest you do this and then come back here to learn how to =
build=20
            the server for this WebService. </P>
            <H2>THTTPRIO Explained</H2>When building a WebService =
client, the=20
            <CODE>THTTPRIO</CODE> component is the key component. =
Therefore, I'd=20
            like to explain some of the properties of this component, =
while=20
            we're still playing with the client side. Take a look at =
<B>Figure=20
            5</B>=20
            <P>
            <P><A =
href=3D"http://www.matlus.com/images/FirstWebService5.jpg"=20
            target=3D_blank rel=3Dnofollow><IMG height=3D125 hspace=3D0 =
src=3D"" width=3D78=20
            border=3D0></A> <BR><B>Figure 5: Showing the Properties of=20
            THTTPRIO</B> </P>
            <P>We've used the <CODE>WSDLLocation</CODE> property, the=20
            <CODE>Service</CODE> property and the <CODE>Port</CODE>. =
Keep in=20
            mind, that for you to be able to use the =
<CODE>WSDLLocation</CODE>=20
            in design time (or run time) you need access to the Internet =
if your=20
            <CODE>WSDLLocation</CODE> is a URL. Also, you use the=20
            <CODE>Service</CODE> and <CODE>Port</CODE> properties only =
when=20
            using the <CODE>WSDLLocation</CODE> property. Instead of =
using the=20
            <CODE>WSDLLocation</CODE> property, you could use the=20
            <CODE>URL</CODE> property. When using the <CODE>URL</CODE> =
property,=20
            you don't need (and shouldn't) use the <CODE>Service</CODE> =
and=20
            <CODE>Port</CODE> properties. The value of the =
<CODE>URL</CODE>=20
            property will not be the same as the =
<CODE>WSDLLocation</CODE>. You=20
            need to use the proper value in this case. This is the =
<B><CODE>SOAP=20
            Endpoint URL</CODE></B>. When looking at SOAP services that =
listed=20
            at sites such as XMethods or SALCentral, you will see the =
<CODE>SOAP=20
            Endpoint URL</CODE> listed along with the WSDL file. The=20
            <CODE>THTTPRIO</CODE> component gets the WSDL file at run =
time,=20
            parses it out and finds the <CODE>SOAP Endpoint URL</CODE> =
in the=20
            WSDL File. So it goes without saying, that using the=20
            <CODE>URL</CODE> property will be slightly faster than using =
the=20
            <CODE>WSDLLocation</CODE> property since some round trips =
are saved.=20
            Keep this in mind, if you are making repeated calls to a =
certain=20
            WebService in your applications. Another interesting point =
to note=20
            is that the URL for the WSDL file and the SOAP Endpoint =
(only for=20
            Delphi 6 build WebServices) have a very small difference. =
The word=20
            <CODE>wsdl</CODE> is replaced with the word =
<CODE>soap</CODE>. Note=20
            that this is by default and that you have the option to =
change this.=20
            </P>
            <P>What if you are behind a proxy/firewall either at home or =
work?=20
            Well, then you're going to have some issues that you'll need =
to=20
            circumvent. You won't be able to use the <B>WebService =
Importer</B>=20
            as I explained earlier. What you'll have to do is use your =
browser=20
            to get to the WSDL File. Save it locally, and then use this =
file=20
            (you can use the Browse button) to fill in the=20
            <CODE>WSDLLocation</CODE> field in the wizard. Once you've =
done this=20
            and the interface file(s) is created for you, your next =
issue will=20
            be when you attempt to fill in the properties of the=20
            <CODE>THTTPRIO</CODE> component. First, if you look at the=20
            properties shown in <B>Figure 5</B>, you'll see that the=20
            <CODE>THTTPRIO</CODE> component has a <CODE>Proxy</CODE> =
property as=20
            well as <CODE>UserName</CODE> and <CODE>Password</CODE> =
properties.=20
            You'll need to get the details from your Network =
administrator if=20
            you don't know what to fill in here. As an example, if you =
have a=20
            proxy server called <CODE>MyProxy</CODE> that uses port =
8080, then=20
            the <CODE>Proxy</CODE> property needs to be filled in as=20
            <CODE>MyProxy:8080</CODE>. As explained earlier, I suggest =
you use=20
            the <CODE>URL</CODE> property instead of the=20
            <CODE>WSDLLocation</CODE>. If you do plan to use the=20
            <CODE>WSDLLocation</CODE> property, you need to use the file =
path=20
            and name instead of the URL to this file and most probably, =
when you=20
            deploy your client application, it's going to then need to =
find this=20
            WSDL file as well. </P>
            <P>The <CODE>Agent</CODE> property is another interesting =
property.=20
            If you look at the HTTP header that was shown earlier, =
you'll see=20
            that the <CODE>User-Agent</CODE> HTTP header was =
<CODE>Borland SOAP=20
            1.1</CODE>. Now you're free to change this to whatever else =
you'd=20
            like. I normally use the <CODE>User-Agent</CODE> HTTP header =
to=20
            distinguish my client applications from others. If you have =
to deal=20
            with security (proxies/firewalls), the =
<CODE>User-Agent</CODE> HTTP=20
            header can come in handy to allow for further filtering. For =

            example, you can tell you network security guys, to allow =
HTTP=20
            requests that have a <CODE>Content-Type</CODE> of text/xml=20
            <B>ONLY</B> if the <CODE>User-Agent</CODE> is xyz and the=20
            <CODE>SOAPAction</CODE> header is abc. Etc. </P>
            <P>The <CODE>THTTPRIO</CODE> component can be lifetime =
managed as a=20
            component or as an Interfaced object. It is managed, as a =
component=20
            when its owner is not nil. If you drop it on a form, its =
owner is=20
            the form and so it is managed as a component. This becomes =
important=20
            to know in the following case: </P>
            <P>In the <CODE>OnClick</CODE> event of code listed above, =
you'll=20
            notice that we've not declared a variable of the type=20
            <CODE>IEmailService</CODE>. But what if we needed to do =
this? What=20
            if we needed a global variable of this type in our =
application?=20
            Well, we declare a variable of this type in the =
<CODE>private</CODE>=20
            section and use it in the <CODE>OnClick</CODE> event and =
elsewhere=20
            in our code. When we do this, we need to be sure to nil out =
this=20
            variable in the <CODE>destructor</CODE> of the form (or some =
other=20
            appropriate place). The code below shows and example of =
this. </P>
            <DIV class=3Dcodeblockouter>
            <DIV class=3DcodeblockInner><CODE><PRE><FONT face=3D"Courier =
New"><FONT color=3D#0000ff><B>type</B></FONT>
  <FONT color=3D#000080>TForm1</FONT> <FONT color=3D#ff0000>=3D</FONT> =
<FONT color=3D#0000ff><B>class</B></FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>TForm</FONT><FONT =
color=3D#ff0000>)</FONT>
    <FONT color=3D#000080>Button1</FONT><FONT color=3D#ff0000>:</FONT> =
<FONT color=3D#000080>TButton</FONT><FONT color=3D#ff0000>;</FONT>
    <FONT color=3D#0000ff><B>procedure</B></FONT> <FONT =
color=3D#000080>Button1Click</FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#000080>Sender</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>TObject</FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>;</FONT>
    <FONT color=3D#0000ff><B>procedure</B></FONT> <FONT =
color=3D#000080>FormDestroy</FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#000080>Sender</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>TObject</FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>;</FONT>
  <FONT color=3D#0000ff><B>private</B></FONT>
    <FONT color=3D#000080>EmailService</FONT><FONT =
color=3D#ff0000>:</FONT> <FONT color=3D#000080>IEmailService</FONT><FONT =
color=3D#ff0000>;</FONT>
    <FONT color=3D#808080>{ Private declarations }</FONT>
  <FONT color=3D#0000ff><B>public</B></FONT>
    <FONT color=3D#808080>{ Public declarations }</FONT>
  <FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>var</B></FONT>
  <FONT color=3D#000080>Form1</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>TForm1</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>implementation</B></FONT>

<FONT color=3D#808080>{$R *.dfm}</FONT>

<FONT color=3D#0000ff><B>procedure</B></FONT> <FONT =
color=3D#000080>TForm1</FONT><FONT color=3D#ff0000>.</FONT><FONT =
color=3D#000080>Button1Click</FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#000080>Sender</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>TObject</FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>;</FONT>
<FONT color=3D#0000ff><B>begin</B></FONT>
  <FONT color=3D#000080>EmailService</FONT> <FONT =
color=3D#ff0000>:=3D</FONT> <FONT color=3D#000080>HTTPRIO1</FONT> <FONT =
color=3D#0000ff><B>as</B></FONT> <FONT =
color=3D#000080>IEmailService</FONT><FONT color=3D#ff0000>;</FONT>
<FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>procedure</B></FONT> <FONT =
color=3D#000080>TForm1</FONT><FONT color=3D#ff0000>.</FONT><FONT =
color=3D#000080>FormDestroy</FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#000080>Sender</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>TObject</FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>;</FONT>
<FONT color=3D#0000ff><B>begin</B></FONT>
  <FONT color=3D#000080>EmailService</FONT> <FONT =
color=3D#ff0000>:=3D</FONT> <FONT color=3D#0000ff><B>nil</B></FONT><FONT =
color=3D#ff0000>;</FONT>
<FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>end</B></FONT><FONT =
color=3D#ff0000>.</FONT></FONT>
</PRE></CODE></DIV></DIV><PRE></PRE>
            <H2>Building the Send an EMail WebService Server</H2>
            <P>Before we begin with building the Send an Email =
Webservice, let=20
            me take you through the paces of what we will be doing. </P>
            <P>We're going to start a new SOAP Server Application using =
the=20
            Wizard. This essentially produces a Web server extension =
(CGI, ISAPI=20
            etc.) that contains a Web Module and some components on it. =
This is=20
            really very similar to a Web Broker application. We'll =
choose the=20
            ISAPI option. </P>
            <DIV class=3Dnote><IMG alt=3Dexclamation.gif src=3D"" =
border=3D0> If you're=20
            not familiar with ISAPI applications, I suggest you look at =
the=20
            tutorials on my web site related to ISAPI applications. The=20
            WebServices you'll build with the help of tutorials on this =
web site=20
            will mostly be ISAPI applications. Your knowledge of ISAPI=20
            Applications/debuggin etc. will be leveraged here. If you =
don't have=20
            experience building ISAPI applications, debugging etc. I =
strongly=20
            suggest you read the tutorials on my web site for this =
before you=20
            attempt to build WebServices. This way you'll have a firmer =
grasp of=20
            what is going on and this will save you (and me <G>) endless =
hours=20
            of frustration.=20
            <P>
            <P>I assume you know ISAPI application development and as a =
result,=20
            you will find that I do not explain ISAPI related concepts =
in any of=20
            the WebService tutorials. </P></G></DIV>
            <P>The standard SOAP Server application has three components =
on it.=20
            </P>
            <OL>
              <LI><CODE>THTTPSOAPDispatcher</CODE>=20
              <LI><CODE>THTTPSOAPPascalInvoker</CODE>=20
              <LI><CODE>TWSDLHTMLPublish</CODE> </LI></OL>
            <P>The <CODE>THTTPSOAPDispatcher</CODE> dispatches all =
requests that=20
            have <CODE>/soap</CODE> in the PathInfo. It then hands the =
request=20
            over to <CODE>THTTPSOAPPascalInvoker</CODE>. This component =
really=20
            handles the bulk of the process. What is this process? Well, =
If you=20
            take a look at the HTTP request header from earlier, you =
see, that=20
            the full request looks like this: </P><PRE><CODE>
http://matlus.matlus.com/scripts/emailwebservice.dll/soap/IEmailservice
</CODE>
</PRE>
            <P>The PathInfo part of this request is: =
</P><PRE>/soap/IEmailservice

</PRE>
            <P>You learned earlier, that the =
<CODE>THTTPSOAPDispatcher</CODE>=20
            handles all requests, with <CODE>/soap</CODE> in it and =
hands it=20
            over to the <CODE>THTTPSOAPPascalInvoker</CODE>. So the=20
            <CODE>THTTPSOAPPascalInvoker</CODE> has to do something with =

            <CODE>/IEMailservice</CODE>. So what does it do? It looks up =
the=20
            Invocation Registry for any registered Interfaces that match =
the=20
            name IEMailservice. It also parses out the content of the =
web=20
            request (this is the SOAP Packet from earlier) and finds the =
name of=20
            the method and the parameters. Once it has done that, it=20
            instantiates an instance of the class that implements this =
interface=20
            and calls the required method handing it the parameters it =
received.=20
            Remember that it's able to do all this using RTTI for =
interfaces=20
            (new to Delphi 6) and some old RTTI magic. Since it receives =
all=20
            this information in the form of a string, it is converting =
these=20
            strings into method calls that instantiate an instance of a =
class=20
            and call the required methods (very much like a scripting =
engine).=20
            When you build a WebService, it is your job to: </P>
            <OL>
              <LI>Define an Interface.=20
              <LI>Implement this interface in a class.=20
              <LI>Register the interface and class with the invocation =
registry.=20
              </LI></OL>
            <P>That's it. The Delphi 6 SOAP framework handles the rest =
of it for=20
            you. What's the rest of it you might ask? </P>
            <OL>
              <LI>Parsing the SOAP envelope.=20
              <LI>Instantiating the required class.=20
              <LI>Calling the required method and passing the received =
(parsed)=20
              parameters to it=20
              <LI>Getting back a result from the method.=20
              <LI>Putting the result back in a SOAP response envelope =
and=20
              sending it back out.=20
              <LI>If there is an exception it constructs a SOAP Fault =
packet=20
              instead </LI></OL>
            <P>To put it in really simple terms! </P>
            <P>I hope this short explanation has cleared things up a =
bit. If it=20
            has, then we're ready to move on and start with building our =
first=20
            Delphi 6 WebService. </P>
            <H2>The SOAP Server Application</H2>
            <OL>
              <LI>From the Delphi main menu, choose File | New | Other=20
              <LI>Choose the WebServices tab and choose the SOAP server=20
              Application Expert=20
              <LI>In the next dialog, leave the ISAPI/NSAPI (this is the =

              default) Dynamic Link Library option selected and Click =
OK.=20
            </LI></OL>
            <P>
            <TABLE>
              <TBODY>
              <TR>
                <TD><A=20
                  =
href=3D"http://www.matlus.com/images/FirstWebService6.jpg"=20
                  target=3D_blank rel=3Dnofollow><IMG src=3D"" =
border=3D0></A></TD>
                <TD><A=20
                  =
href=3D"http://www.matlus.com/images/FirstWebService7.jpg"=20
                  target=3D_blank rel=3Dnofollow><IMG src=3D"" =
border=3D0></A></TD>
                <TD><A=20
                  =
href=3D"http://www.matlus.com/images/FirstWebService8.jpg"=20
                  target=3D_blank rel=3Dnofollow><IMG src=3D"" =
border=3D0></A></TD></TR>
              <TR>
                <TD colSpan=3D3><B>Figure 6: Showing the Steps involved =
in=20
                  Creating a New SOAP Server=20
            Application</B></TD></TR></TBODY></TABLE>After doing these =
steps,=20
            you should see something like the last image in <B>Figure =
6</B>. I=20
            suggest you save this project as EmailWebService and the =
WebModule=20
            unit as MainU.pas. </P>
            <DIV class=3Dnote><IMG alt=3Dexclamation.gif src=3D"" =
border=3D0> Note: I=20
            assume at this point that you know about building ISAPI =
Applications=20
            and debugging them etc. I keep stressing this because I =
don't want=20
            to be flooded with emails asking me questions about =
WebServices that=20
            really pertain to ISAPI applications. I believe the =
information=20
            available on my web site related to ISAPI is more than =
enough to=20
            help you get started with ISAPI applications and get to the =
point=20
            where you can now build WebServices. </DIV>
            <P>
            <H2>Defining the Interface</H2>
            <P>If you've registered Delphi 6, you should then have =
access to=20
            some of the power toys that will be made available to you. =
At the=20
            time of this writing, I believe they are not yet available. =
Anyhow,=20
            I'll use (one of these toys) the Invokable Wizard that will =
help in=20
            building the WebService. Don't worry, if you don't have this =
wizard.=20
            What it does is it creates two new units for you, one that =
defines=20
            the Interface and the other that defines a class that =
implements=20
            this interface. I'll show you the full units, so you can =
create them=20
            by hand if required. Why have the interface defined in one =
unit and=20
            the implementation in another? Technically, there is =
obviously no=20
            need for this. But if you're building a client for the =
WebService as=20
            well (and 99% of the time you will, only if it's to test the =

            WebService), you can include the unit that declares your =
interface=20
            in the client application's project as well. This will =
eliminate the=20
            need to import the WSDL file (one of the steps we went =
through while=20
            building the client). However, if you want to test your =
WebService=20
            completely, you're better off building the client as we did =
earlier.=20
            That is, treat the client as an independent part of your =
system, so=20
            you know that others attempting to use the WebService will =
be able=20
            to. </P>
            <P>The Invokable Wizard can be found in the <CODE>New =
Items</CODE>=20
            dialog (File | New | Other | WebServices) as shown in =
<B>Figure=20
            7</B> below. </P>
            <P><A =
href=3D"http://www.matlus.com/images/FirstWebService9.jpg"=20
            target=3D_blank rel=3Dnofollow><IMG src=3D"" border=3D0></A> =
<BR><B>Figure=20
            7: Showing the Invokable Wizard</B> </P>
            <P>As Shown in <B>Figure 8</B> below, the Invokable Wizard =
presents=20
            you with another dialog.=20
            <P><A =
href=3D"http://www.matlus.com/images/FirstWebService10.jpg"=20
            target=3D_blank rel=3Dnofollow><IMG src=3D"" border=3D0></A> =
<BR><B>Figure=20
            8: Showing the dialog the Invokable Wizard presents you =
with.</B>=20
            </P>
            <P>I've filled in the values as shown there. You'll notice =
that the=20
            <CODE>InvokableClass</CODE> field has a combo box. I've =
chosen=20
            <CODE>TInvokableClass</CODE>. The other option is=20
            <CODE>TInterfacedObject</CODE>. There is a subtle difference =
between=20
            these two. <CODE>TInvokableClass</CODE> is derived from=20
            <CODE>TInterfacedObject</CODE> so it implements =
QueryInterface,=20
            AddRef and ReleaseRef. But it also has a virtual =
constructor. The=20
            fact that it has a virtual constructor allows the compiler =
to create=20
            an instance of the class using RTTI. If you need to derive =
from=20
            <CODE>TInterfacedObject</CODE> for some reason, you'll have =
to=20
            implement one extra step in your code (Ill show you that =
later) and=20
            register the class differently (I'll show you that too). All =
this,=20
            so the compiler can instantiate an instance of your class on =
the fly=20
            (That is <CODE>THTTPSOAPPascalInvoker</CODE> can instantiate =
an=20
            instance as was described earlier). </P>
            <P>The two units thus created are shown below. The first one =
is the=20
            unit that declares the Interface - =
<CODE>IEmailService</CODE> and=20
            the next one declares the class that will implement this =
interface -=20
            <CODE>TEmailService</CODE>. </P>
            <DIV class=3Dcodeblockouter>The unit that declares the=20
            <CODE>IEMailService</CODE> Interface=20
            <DIV class=3DcodeblockInner><CODE><PRE><FONT face=3D"Courier =
New"><FONT color=3D#0000ff><B>unit</B></FONT> <FONT =
color=3D#000080>EMailServiceIntf</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>interface</B></FONT>

<FONT color=3D#0000ff><B>uses</B></FONT>
  <FONT color=3D#000080>Types</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>XSBuiltIns</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>type</B></FONT>
  <FONT color=3D#000080>IEMailService</FONT> <FONT =
color=3D#ff0000>=3D</FONT> <FONT =
color=3D#0000ff><B>interface</B></FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>IInvokable</FONT><FONT =
color=3D#ff0000>)</FONT>
    <FONT color=3D#ff0000>[</FONT><FONT =
color=3D#008000>'{A987FE00-E596-4733-83BB-E75ACA5FF363}'</FONT><FONT =
color=3D#ff0000>]</FONT>
  <FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>implementation</B></FONT>

<FONT color=3D#0000ff><B>uses</B></FONT>
  <FONT color=3D#000080>InvokeRegistry</FONT><FONT =
color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>initialization</B></FONT>
  <FONT color=3D#000080>InvRegistry</FONT><FONT =
color=3D#ff0000>.</FONT><FONT =
color=3D#000080>RegisterInterface</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>TypeInfo</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>IEMailService</FONT><FONT =
color=3D#ff0000>)</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#008000>''</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#008000>''</FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>end</B></FONT><FONT =
color=3D#ff0000>.</FONT></FONT>
</PRE></CODE></DIV></DIV><PRE></PRE>
            <P></P>
            <DIV class=3Dcodeblockouter>The unit that declares the=20
            <CODE>TEMailService</CODE> class=20
            <DIV class=3DcodeblockInner><CODE><PRE><FONT face=3D"Courier =
New"><FONT color=3D#0000ff><B>unit</B></FONT> <FONT =
color=3D#000080>EMailServiceImpl</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>interface</B></FONT>

<FONT color=3D#0000ff><B>uses</B></FONT>
  <FONT color=3D#000080>EMailServiceIntf</FONT><FONT =
color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>InvokeRegistry</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>type</B></FONT>
  <FONT color=3D#000080>TEMailService</FONT> <FONT =
color=3D#ff0000>=3D</FONT> <FONT =
color=3D#0000ff><B>class</B></FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#000080>TInvokableClass</FONT><FONT color=3D#ff0000>,</FONT> =
<FONT color=3D#000080>IEMailService</FONT><FONT color=3D#ff0000>)</FONT>
  <FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>implementation</B></FONT>

<FONT color=3D#0000ff><B>initialization</B></FONT>
  <FONT color=3D#000080>InvRegistry</FONT><FONT =
color=3D#ff0000>.</FONT><FONT =
color=3D#000080>RegisterInvokableClass</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>TEMailService</FONT><FONT =
color=3D#ff0000>)</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>end</B></FONT><FONT =
color=3D#ff0000>.</FONT></FONT>
</PRE></CODE></DIV></DIV><PRE></PRE>
            <P>Make a note of the units in the uses clause of both these =
units=20
            and the <CODE><B>initialization</B></CODE> section as well. =
If=20
            you're building these units, by hand, I suggest you do so at =
this=20
            point looking at the above listings. </P>
            <P>To understand the "Registration" need, I suggest you look =
at the=20
            on-line help for more information. Notice also, that the =
unit that=20
            declares the Interface is very similar to the one that was =
generated=20
            for us using the <CODE>WebService Importer</CODE> wizard =
back when=20
            we started with building the client application. Minus the =
SendMail=20
            method and GUID obviously. </P>
            <P>Lets go ahead and define the SendMail method as shown in =
the=20
            listing below. </P>
            <DIV class=3Dcodeblockouter>
            <DIV class=3DcodeblockInner><CODE><PRE><FONT face=3D"Courier =
New"><FONT color=3D#0000ff><B>unit</B></FONT> <FONT =
color=3D#000080>EMailServiceIntf</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>interface</B></FONT>
<FONT color=3D#0000ff><B>uses</B></FONT>
  <FONT color=3D#000080>Types</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>XSBuiltIns</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>type</B></FONT>
  <FONT color=3D#000080>IEmailService</FONT> <FONT =
color=3D#ff0000>=3D</FONT> <FONT =
color=3D#0000ff><B>interface</B></FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>IInvokable</FONT><FONT =
color=3D#ff0000>)</FONT>
  <FONT color=3D#ff0000>[</FONT><FONT =
color=3D#008000>'{C56A3546-DA66-492F-9024-D78D960AB248}'</FONT><FONT =
color=3D#ff0000>]</FONT>
    <FONT color=3D#0000ff><B>function</B></FONT> <FONT =
color=3D#000080>SendMail</FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#000080>ToAddress</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>FromAddress</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>ASubject</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>MsgBody</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#0000ff><B>string</B></FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>:</FONT> <FONT color=3D#000080>Integer</FONT><FONT =
color=3D#ff0000>;</FONT> <FONT =
color=3D#0000ff><B>stdcall</B></FONT><FONT color=3D#ff0000>;</FONT>
  <FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>implementation</B></FONT>

<FONT color=3D#0000ff><B>uses</B></FONT>
  <FONT color=3D#000080>InvokeRegistry</FONT><FONT =
color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>initialization</B></FONT>
  <FONT color=3D#000080>InvRegistry</FONT><FONT =
color=3D#ff0000>.</FONT><FONT =
color=3D#000080>RegisterInterface</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>TypeInfo</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>IEmailService</FONT><FONT =
color=3D#ff0000>)</FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>;</FONT>


<FONT color=3D#0000ff><B>end</B></FONT><FONT =
color=3D#ff0000>.</FONT></FONT>
</PRE></CODE></DIV></DIV><PRE></PRE>
            <P>Save these units using the names shown (these are the =
names=20
            generated for you by the Wizard if you used it). New to =
Delphi 6 is=20
            the ability to use Code Insight to fill in the methods of an =

            interface in the class that implements the interface. You =
can even=20
            multi-select the methods shown to get Code Insight to write =
them all=20
            out for you as they were declared in the Interface. Note =
that the=20
            units need to be saved for this to work. </P>
            <P>So switch to the unit that declares the class the =
implements the=20
            <CODE>IEMailService</CODE>, move you cursor under the "T" of =

            <CODE>TEMailService</CODE> and hit CTRL Space. You should =
see the=20
            SendMail method listed in the code completion drop down. =
Select it=20
            and hit the Enter key and you'll see that Delphi does the =
rest for=20
            you. Now do the class completion (CTRL SHIFT C) </P>
            <P>We're using Indy to do the sending of emails. You'll =
notice that=20
            Indy is now a part of Delphi 6. Those of you who have not =
used Indy=20
            yet, will obviously need to get to know how to use them. Our =

            implementation of sending an email is nothing special, =
except for=20
            the fact that all objects are being created on the fly. You =
will=20
            also need to add the required units to the uses clause of =
your=20
            units. The listing below shows the full unit for the=20
            <CODE>TEmailService</CODE> class. Remember, this is the =
class that=20
            implements the interface <CODE>IEmailService</CODE>. </P>
            <DIV class=3Dcodeblockouter>
            <DIV class=3DcodeblockInner><CODE><PRE><FONT face=3D"Courier =
New"><FONT color=3D#0000ff><B>unit</B></FONT> <FONT =
color=3D#000080>EMailServiceImpl</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>interface</B></FONT>

<FONT color=3D#0000ff><B>uses</B></FONT>
  <FONT color=3D#000080>InvokeRegistry</FONT><FONT =
color=3D#ff0000>,</FONT> <FONT color=3D#000080>XSBuiltIns</FONT><FONT =
color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>EmailIServiceInft</FONT><FONT color=3D#ff0000>,</FONT> =
<FONT color=3D#000080>IdBaseComponent</FONT><FONT =
color=3D#ff0000>,</FONT> <FONT color=3D#000080>IdComponent</FONT><FONT =
color=3D#ff0000>,</FONT>
  <FONT color=3D#000080>IdTCPConnection</FONT><FONT =
color=3D#ff0000>,</FONT> <FONT color=3D#000080>IdTCPClient</FONT><FONT =
color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>IdMessageClient</FONT><FONT color=3D#ff0000>,</FONT> =
<FONT color=3D#000080>IdSMTP</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>IdMessage</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>type</B></FONT>
  <FONT color=3D#000080>TEmailService</FONT> <FONT =
color=3D#ff0000>=3D</FONT> <FONT =
color=3D#0000ff><B>class</B></FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#000080>TInvokableClass</FONT><FONT color=3D#ff0000>,</FONT> =
<FONT color=3D#000080>IEmailService</FONT><FONT color=3D#ff0000>)</FONT>
  <FONT color=3D#0000ff><B>public</B></FONT>
    <FONT color=3D#0000ff><B>function</B></FONT> <FONT =
color=3D#000080>SendMail</FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#000080>ToAddress</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#0000ff><B>String</B></FONT><FONT color=3D#ff0000>;</FONT> <FONT =
color=3D#000080>FromAddress</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#0000ff><B>String</B></FONT><FONT color=3D#ff0000>;</FONT>
      <FONT color=3D#000080>ASubject</FONT><FONT =
color=3D#ff0000>:</FONT> <FONT color=3D#0000ff><B>String</B></FONT><FONT =
color=3D#ff0000>;</FONT> <FONT color=3D#000080>MsgBody</FONT><FONT =
color=3D#ff0000>:</FONT> <FONT color=3D#0000ff><B>String</B></FONT><FONT =
color=3D#ff0000>)</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>Integer</FONT><FONT color=3D#ff0000>;</FONT> <FONT =
color=3D#0000ff><B>stdcall</B></FONT><FONT color=3D#ff0000>;</FONT>
  <FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>implementation</B></FONT>

<FONT color=3D#808080>{ TEmailService }</FONT>

<FONT color=3D#0000ff><B>function</B></FONT> <FONT =
color=3D#000080>TEmailService</FONT><FONT color=3D#ff0000>.</FONT><FONT =
color=3D#000080>SendMail</FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#000080>ToAddress</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>FromAddress</FONT><FONT color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>ASubject</FONT><FONT color=3D#ff0000>,</FONT>
  <FONT color=3D#000080>MsgBody</FONT><FONT color=3D#ff0000>:</FONT> =
<FONT color=3D#0000ff><B>String</B></FONT><FONT =
color=3D#ff0000>)</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>Integer</FONT><FONT color=3D#ff0000>;</FONT>
<FONT color=3D#0000ff><B>const</B></FONT>
  <FONT color=3D#000080>SMTPServer</FONT> <FONT =
color=3D#ff0000>=3D</FONT> <FONT =
color=3D#008000>'smtp-server'</FONT><FONT color=3D#ff0000>;</FONT> <FONT =
color=3D#808080>{ Change this to your SMTP server }</FONT>
<FONT color=3D#0000ff><B>var</B></FONT>
  <FONT color=3D#000080>IdSMTP</FONT><FONT color=3D#ff0000>:</FONT> =
<FONT color=3D#000080>TIdSMTP</FONT><FONT color=3D#ff0000>;</FONT>
  <FONT color=3D#000080>IdSendMsg</FONT><FONT color=3D#ff0000>:</FONT> =
<FONT color=3D#000080>TIdMessage</FONT><FONT color=3D#ff0000>;</FONT>
<FONT color=3D#0000ff><B>begin</B></FONT>
  <FONT color=3D#000080>IdSMTP</FONT> <FONT color=3D#ff0000>:=3D</FONT> =
<FONT color=3D#000080>TIdSMTP</FONT><FONT color=3D#ff0000>.</FONT><FONT =
color=3D#000080>Create</FONT><FONT color=3D#ff0000>(</FONT><FONT =
color=3D#0000ff><B>nil</B></FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>;</FONT>
  <FONT color=3D#000080>IdSendMsg</FONT> <FONT =
color=3D#ff0000>:=3D</FONT> <FONT color=3D#000080>TIdMessage</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Create</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>IdSMTP</FONT><FONT =
color=3D#ff0000>)</FONT><FONT color=3D#ff0000>;</FONT>
  <FONT color=3D#0000ff><B>try</B></FONT>
   <FONT color=3D#000080>Result</FONT> <FONT color=3D#ff0000>:=3D</FONT> =
<FONT color=3D#ff0000>-</FONT><FONT color=3D#800080>1</FONT><FONT =
color=3D#ff0000>;</FONT>
   <FONT color=3D#0000ff><B>with</B></FONT> <FONT =
color=3D#000080>IdSendMsg</FONT> <FONT color=3D#0000ff><B>do</B></FONT>
   <FONT color=3D#0000ff><B>begin</B></FONT>
     <FONT color=3D#000080>Body</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Text</FONT> <FONT =
color=3D#ff0000>:=3D</FONT> <FONT color=3D#000080>MsgBody</FONT><FONT =
color=3D#ff0000>;</FONT>
     <FONT color=3D#000080>From</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Text</FONT> <FONT =
color=3D#ff0000>:=3D</FONT> <FONT =
color=3D#000080>FromAddress</FONT><FONT color=3D#ff0000>;</FONT>
     <FONT color=3D#000080>Recipients</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>EMailAddresses</FONT> =
<FONT color=3D#ff0000>:=3D</FONT> <FONT =
color=3D#000080>ToAddress</FONT><FONT color=3D#ff0000>;</FONT>
     <FONT color=3D#000080>Subject</FONT> <FONT =
color=3D#ff0000>:=3D</FONT> <FONT color=3D#000080>ASubject</FONT><FONT =
color=3D#ff0000>;</FONT>
   <FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT> =
<FONT color=3D#808080>{ with IdSendMsg do }</FONT>

   <FONT color=3D#0000ff><B>with</B></FONT> <FONT =
color=3D#000080>IdSMTP</FONT> <FONT color=3D#0000ff><B>do</B></FONT>
   <FONT color=3D#0000ff><B>begin</B></FONT>
     <FONT color=3D#000080>Host</FONT> <FONT color=3D#ff0000>:=3D</FONT> =
<FONT color=3D#000080>SMTPServer</FONT><FONT color=3D#ff0000>;</FONT>
     <FONT color=3D#000080>Connect</FONT><FONT color=3D#ff0000>;</FONT>
     <FONT color=3D#0000ff><B>try</B></FONT>
       <FONT color=3D#000080>Send</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>IdSendMsg</FONT><FONT =
color=3D#ff0000>)</FONT><FONT color=3D#ff0000>;</FONT>
       <FONT color=3D#000080>Result</FONT> <FONT =
color=3D#ff0000>:=3D</FONT> <FONT color=3D#800080>0</FONT><FONT =
color=3D#ff0000>;</FONT>
     <FONT color=3D#0000ff><B>finally</B></FONT>
       <FONT color=3D#000080>Disconnect</FONT><FONT =
color=3D#ff0000>;</FONT>
     <FONT color=3D#0000ff><B>end</B></FONT><FONT =
color=3D#ff0000>;</FONT>
   <FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT> =
<FONT color=3D#808080>{ with IdSMTP do }</FONT>
  <FONT color=3D#0000ff><B>finally</B></FONT>
    <FONT color=3D#000080>IdSendMsg</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Free</FONT><FONT =
color=3D#ff0000>;</FONT>
    <FONT color=3D#000080>IdSMTP</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Free</FONT><FONT =
color=3D#ff0000>;</FONT>
  <FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT> =
<FONT color=3D#808080>{ try }</FONT>
<FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>initialization</B></FONT>
  <FONT color=3D#000080>InvRegistry</FONT><FONT =
color=3D#ff0000>.</FONT><FONT =
color=3D#000080>RegisterInvokableClass</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>TEmailService</FONT><FONT =
color=3D#ff0000>)</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>end</B></FONT><FONT =
color=3D#ff0000>.</FONT></FONT>
</PRE></CODE></DIV></DIV><PRE></PRE>
            <P>Add these two units to your project and we're almost done =
now.=20
            Pretty simple so far huh? The last thing that's left is =
getting the=20
            service application to respond to SOAP calls and publish the =
WSDL=20
            file. Remember, without a WSDL file, your WebService is =
practically=20
            useless to anyone else. </P>
            <H2>TWSDLPublish</H2>
            <P>What we need to do is select the =
<CODE>TWSDLPublish</CODE>=20
            component on the WebModule and set its =
<CODE>AdminEnabled</CODE>=20
            property to true. Now run your application and using a =
browser,=20
            navigate to this URL=20
            =
<CODE>http://matlus.matlus.com/scripts/EmailWebService.dll/wsdl</CODE>.=20
            Change the domain and path according to your setup. Just be =
sure you=20
            put the <CODE>/wsdl</CODE> as a path of the final URL. You =
should=20
            see a screen similar to that shown in Figure 9. </P>
            <P>
            <P><A =
href=3D"http://www.matlus.com/images/FirstWebService11.jpg"=20
            target=3D_blank rel=3Dnofollow><IMG src=3D"" border=3D0></A> =
<BR><B>Figure=20
            9: Showing the WSDL Administration Page</B> </P>
            <P>If you had not set the <CODE>AdminEnabled</CODE> property =
to=20
            True, you wouldn't see the <CODE>Administrator</CODE> =
button. Click=20
            on the <CODE>WSDL for IEmailService</CODE> link. You should =
now see=20
            a WSDL file in your browser. Scroll to the end of the =
document. You=20
            should see that the <CODE><B>&lt;service&gt;</B></CODE> =
element is=20
            an <CODE>empty tag</CODE> (as per XML definition). If you =
look at=20
            the WSDL file at the URL specified at the start of this =
tutorial,=20
            you should notice that the =
<CODE><B>&lt;service&gt;</B></CODE>=20
            element had a child element called =
<CODE><B>&lt;port&gt;</B></CODE>=20
            and the <CODE><B>&lt;port&gt;</B></CODE> element had a=20
            <CODE><B>&lt;soap:address&gt;</B></CODE> element as a child =
like so:=20
            </P>
            <DIV class=3Dcodeblockouter>
            <DIV class=3DcodeblockInner><CODE><PRE>&lt;port =
name=3D"IEmailServicePort" binding=3D"IEmailServicebinding"&gt;
  &lt;soap:address =
location=3D"http://matlus.matlus.com/scripts/EmailWebservice.dll/soap/IEm=
ailService" /&gt;
</PRE></CODE></DIV></DIV>
            <P>We need to define the <CODE>Port</CODE> for our service. =
We do=20
            that by clicking on the <CODE>Administrator</CODE> button =
and then=20
            on the <CODE>WSDL for IEMailService</CODE> link. You should =
see a=20
            screen that looks like that shown in <B>Figure 10</B>. </P>
            <P><A =
href=3D"http://www.matlus.com/images/FirstWebService12.jpg"=20
            target=3D_blank rel=3Dnofollow><IMG src=3D"" border=3D0></A> =
<BR><B>Figure=20
            10: Showing the Admin Screen that allows for registering a =
Port for=20
            the WebService</B> </P>
            <P>In the <CODE>PortName</CODE> field enter=20
            <CODE>IEmailServicePort</CODE> and in the =
<CODE>Address</CODE> field=20
            enter=20
            =
<CODE>http://matlus.matlus.com/scripts/EmailWebservice.dll/soap/IEMailser=
vice</CODE>.=20
            Change the domain name as per your set up. Click the=20
            <CODE>Add</CODE> button. You should see a screen that looks =
like=20
            that shown in <B>Figure 11</B>. </P>
            <P><A =
href=3D"http://www.matlus.com/images/FirstWebService13.jpg"=20
            target=3D_blank rel=3Dnofollow><IMG src=3D"" border=3D0></A> =
<BR><B>Figure=20
            11: Showing the Admin Screen that allows for registering a =
Port for=20
            the WebService</B> </P>
            <P>Hit the back button of your browser twice. This should =
show the=20
            URL=20
            =
<CODE>http://matlus.matlus.com/scripts/EmailWebService.dll/wsdl</CODE>=20
            in your browser. Now if you click on the <CODE>WSDL for=20
            IEMailService</CODE> link and check the WSDL file thus =
generated,=20
            the <CODE><B>&lt;service&gt;</B></CODE> and=20
            <CODE><B>&lt;port&gt;</B></CODE> elements are as they should =
be. You=20
            should note also, that this operation has generated an=20
            <CODE>.ini</CODE> file in the <CODE>/scripts</CODE> folder =
(the same=20
            folder in which your DLL is installed. This =
<CODE>.ini</CODE> file=20
            will have the same name as your ISAPI dll with the words=20
            <CODE>_WSDLADMIN.INI</CODE> appended to it. The contents of =
this=20
            file should be something like this: </P><PRE><CODE>
[IWSDLPublish]
IWSDLPublishPort=3Dhttp://matlus.matlus.com/scripts/EmailWebservice.dll/s=
oap/IWSDLPublish

[IEmailService]
IEmailServicePort=3Dhttp://matlus.matlus.com =
/scripts/EmailWebservice.dll/soap/IEmailService
</CODE>
</PRE>
            <P>When you deploy your WebService to your production =
server, you=20
            either need to go through these steps again, or simply copy =
this=20
            <CODE>.ini</CODE> file over to the production server and =
change the=20
            domain name parts in both sections to match that of your =
production=20
            server. Do not forget this step. Without this step, your =
WebService=20
            will be quite un-usable. </P>
            <H2>TInvokableClass or TInterfacedObject</H2>
            <P>Earlier, I mentioned that if you decide to use=20
            <CODE>TInterfacedObject</CODE> as the class to derive your=20
            implementation class, you'll need to do things differently. =
Here are=20
            the differences and why you need to do them.=20
            <CODE>TInterfacedObject</CODE> does not have a virtual =
constructor=20
            declared. As a result, there is no way for your application =
to=20
            instantiate an instance of your class at run time when it =
gets a=20
            SOAP request to do so. As usual, there is always an option =
with=20
            Delphi. (These guys think of everything). What you need to =
do is=20
            implement a "Factory" method for your class. This method =
needs to=20
            return an instance of your class as an =
<CODE><B>out</B></CODE>=20
            parameter. Further, for the run time to figure it out, you =
need to=20
            register this method when registering the class with the =
invocation=20
            registry so that the application can call this method to get =
back an=20
            instance of your class. This is how you should implement =
this method=20
            and register it. </P>
            <DIV class=3Dcodeblockouter>
            <DIV class=3DcodeblockInner><CODE><PRE><FONT face=3D"Courier =
New"><FONT color=3D#0000ff><B>procedure</B></FONT> <FONT =
color=3D#000080>EMailServiceFactory</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#0000ff><B>out</B></FONT> <FONT =
color=3D#000080>obj</FONT><FONT color=3D#ff0000>:</FONT> <FONT =
color=3D#000080>TObject</FONT><FONT color=3D#ff0000>)</FONT><FONT =
color=3D#ff0000>;</FONT>
<FONT color=3D#0000ff><B>begin</B></FONT>
  <FONT color=3D#000080>obj</FONT> <FONT color=3D#ff0000>:=3D</FONT> =
<FONT color=3D#000080>TEmailService</FONT><FONT =
color=3D#ff0000>.</FONT><FONT color=3D#000080>Create</FONT><FONT =
color=3D#ff0000>;</FONT>
<FONT color=3D#0000ff><B>end</B></FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>initialization</B></FONT>
  <FONT color=3D#000080>InvRegistry</FONT><FONT =
color=3D#ff0000>.</FONT><FONT =
color=3D#000080>RegisterInvokableClass</FONT><FONT =
color=3D#ff0000>(</FONT><FONT color=3D#000080>TEMailService</FONT><FONT =
color=3D#ff0000>,</FONT> <FONT =
color=3D#000080>EMailServiceFactory</FONT><FONT =
color=3D#ff0000>)</FONT><FONT color=3D#ff0000>;</FONT>

<FONT color=3D#0000ff><B>end</B></FONT><FONT =
color=3D#ff0000>.</FONT></FONT>
</PRE></CODE></DIV></DIV><PRE></PRE>
            <P>Note the change in the call to the=20
            <CODE>RegisterInvokableClass</CODE> method in the=20
            <CODE>initialization</CODE> section as well. </P>
            <P>Well, that pretty much does it. This tutorial contains =
more=20
            explanation than the actual work involved in building a =
WebService=20
            with Delphi 6. It's really very simple and I hope, after =
you've read=20
            this tutorial, you feel the same. Testing your WebService =
server is=20
            a simple task, now, since you already have a client. All you =
need to=20
            do is change the <CODE>WSDLLocation</CODE> property of the=20
            <CODE>THTTPRIO</CODE> component in your client application =
(or=20
            <CODE>URL</CODE> property as the case may be) to match that =
of your=20
            WebService (instead on mine). The projects are available for =

            download as a project group containing the WebService Client =
project=20
            and WebService server project. =
</P></SPAN></TD></TR></TBODY></TABLE>
      <H3 =
id=3Dctl00_ctl00_ctl00_content_content_content_jc_cmtHeader>Comments=20
      have been Disabled for this post</H3>
      <DIV=20
      style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: =
0px; PADDING-TOP: 10px"><INPUT class=3Dbutton id=3DbtnSubscribe =
title=3D"Subscribe to this post" disabled =
onclick=3D"journalCommentSubscribe(1, 'Tutorials');" type=3Dbutton =
value=3DSubscribe name=3DbtnSubscribe><BR><BR></DIV>
      <DIV=20
      style=3D"PADDING-RIGHT: 0px; DISPLAY: none; PADDING-LEFT: 0px; =
VISIBILITY: hidden; PADDING-BOTTOM: 0px; PADDING-TOP: 15px"><INPUT =
class=3Dbutton id=3DbtnSubscribe2 title=3D"Subscribe to this post" =
disabled onclick=3D"journalCommentSubscribe(1, 'Tutorials');" =
type=3Dbutton value=3DSubscribe =
name=3DbtnSubscribe2><BR><BR></DIV><INPUT=20
      id=3Drd type=3Dhidden =
value=3D/members/skumar.aspx/tutorials/post/1 name=3Drd>=20
      </FORM></TD>
    <TD id=3DadsTd=20
    style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; =
VERTICAL-ALIGN: top; WIDTH: 342px; PADDING-TOP: 5px">
      <TABLE style=3D"WIDTH: 100%" cellSpacing=3D0 cellPadding=3D0>
        <TBODY>
        <TR>
          <TD style=3D"VERTICAL-ALIGN: top; WIDTH: 100%" colSpan=3D2>
            <TABLE id=3Dctl00_ctl00_ctl00_navMenu_exrNavMenu=20
            style=3D"WIDTH: 100%; BACKGROUND-COLOR: #1a1a1a; TEXT-ALIGN: =
left"=20
            cellSpacing=3D0 cellPadding=3D0>
              <TBODY>
              <TR>
                <TD class=3DgrdTblDrkGreen_tl noWrap></TD>
                <TD class=3DgrdTblDrkGreen_t>
                  <TABLE style=3D"HEIGHT: 45px" cellSpacing=3D0 =
cellPadding=3D0=20
                  width=3D"100%">
                    <TBODY>
                    <TR>
                      <TD vAlign=3Dtop>
                        <H4>Menus</H4></TD>
                      <TD style=3D"PADDING-TOP: 3px; TEXT-ALIGN: right"=20
                        vAlign=3Dtop><A class=3D"small bright"=20
                        =
onclick=3D"showPopupWindow('/ThemeSelectionPopup.aspx?w=3D600&amp;h=3D400=
&amp;redirectUrl=3D' + urlEncode(window.location.href), 'ThemePopup', =
600, 400)"=20
                        href=3D"javascript:void(0);"=20
                    =
target=3DThemePopup>Theme</A></TD></TR></TBODY></TABLE></TD>
                <TD class=3DgrdTblDrkGreen_tr noWrap></TD></TR>
              <TR>
                <TD class=3DgrdTblDrkGreen_l></TD>
                <TD>
                  <TABLE style=3D"BACKGROUND-COLOR: #0f120a" =
cellSpacing=3D0=20
                  cellPadding=3D0 width=3D"100%">
                    <TBODY>
                    <TR>
                      <TD style=3D"VERTICAL-ALIGN: top; WIDTH: 50%">
                        <DIV style=3D"MARGIN-BOTTOM: 4px"><A =
class=3Dsidemenu=20
                        title=3D"ExposureRoom Home"=20
                        href=3D"http://exposureroom.com/">XR Home</A> =
</DIV>
                        <DIV style=3D"MARGIN-BOTTOM: 4px"><A =
class=3Dsidemenu=20
                        title=3D"Search Videos, Photos, Music, Blogs"=20
                        style=3D"FONT-WEIGHT: normal; MARGIN-LEFT: 15px" =

                        =
href=3D"http://exposureroom.com/search/">Search</A> </DIV>
                        <DIV style=3D"MARGIN-BOTTOM: 4px"><A =
class=3Dsidemenu=20
                        title=3D"Look at What's Now Playing"=20
                        style=3D"FONT-WEIGHT: normal; MARGIN-LEFT: 15px" =

                        =
href=3D"http://exposureroom.com/content/nowplaying/">Now=20
                        Playing</A> </DIV>
                        <DIV style=3D"MARGIN-BOTTOM: 4px"><A =
class=3Dsidemenu=20
                        title=3D"Discussion Forums"=20
                        style=3D"FONT-WEIGHT: normal; MARGIN-LEFT: 15px" =

                        =
href=3D"http://exposureroom.com/newsgroups/">Forums</A>=20
                        </DIV>
                        <DIV style=3D"MARGIN-BOTTOM: 4px"><A =
class=3Dsidemenu=20
                        title=3D"Watch the Showcase Videos"=20
                        style=3D"FONT-WEIGHT: normal; MARGIN-LEFT: 15px" =

                        =
href=3D"http://exposureroom.com/showcase/">Showcase</A>=20
                        </DIV></TD>
                      <TD=20
                      style=3D"VERTICAL-ALIGN: top; WIDTH: 50%; =
TEXT-ALIGN: right"></TD></TR>
                    <TR>
                      <TD colSpan=3D2></TD></TR></TBODY></TABLE>
                  <DIV style=3D"BACKGROUND-COLOR: #0f120a">
                  <DIV style=3D"MARGIN-BOTTOM: 5px"><A class=3Dsidemenu=20
                  title=3D"ExposureRoom News - Comming Soon, New =
Features etc."=20
                  href=3D"http://exposureroom.com/news/">News</A> =
</DIV><A=20
                  class=3Dsidemenu title=3D"Find Help On ExposureRoom"=20
                  =
href=3D"http://exposureroom.com/help/">Help/FAQ/Getting&nbsp;Started</A> =

                  </DIV></TD>
                <TD class=3DgrdTblDrkGreen_r></TD></TR>
              <TR>
                <TD class=3DgrdTblDrkGreen_bl></TD>
                <TD class=3DgrdTblDrkGreen_b></TD>
                <TD =
class=3DgrdTblDrkGreen_br></TD></TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD colSpan=3D2>
            <SCRIPT language=3Djavascript type=3Dtext/javascript>
    function logVote(radio) {
      var url =3D '/Hsi/LogPollVote.aspx';
      var data =3D 'id=3D' + radio.value;
      try {
        httpRequestPOST(url, data);
      }
      catch (e) {
        alert(e);
      }
    }
  </SCRIPT>
          </TD></TR>
        <TR>
          <TD style=3D"VERTICAL-ALIGN: top; WIDTH: 50%">
            <TABLE class=3DmenuTbl=20
            =
id=3Dctl00_ctl00_ctl00_LeftNavBar_LeftNavBar_LeftNavBar_cc_rt1=20
            style=3D"WIDTH: 100%; TEXT-ALIGN: justify" cellSpacing=3D0=20
cellPadding=3D0>
              <TBODY>
              <TR>
                <TD class=3DmenuTblOr_tl noWrap></TD>
                <TD class=3DmenuTblOr_t><SPAN class=3Dsmall>Filter By=20
                  Category</SPAN> </TD>
                <TD class=3DmenuTblOr_tr noWrap></TD></TR>
              <TR>
                <TD class=3DmenuTbl_l></TD>
                <TD>
                  <DIV><A class=3DsmallDull=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/filter/co/1=
"=20
                  rel=3Dtag>Programming<SPAN =
class=3Dbright>(23)</SPAN></A> </DIV>
                  <DIV><A class=3DsmallDull=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/filter/co/2=
"=20
                  rel=3Dtag>Work<SPAN class=3Dbright>(3)</SPAN></A> =
</DIV></TD>
                <TD class=3DmenuTbl_r></TD></TR>
              <TR>
                <TD class=3DmenuTbl_bl></TD>
                <TD class=3DmenuTbl_b></TD>
                <TD class=3DmenuTbl_br></TD></TR></TBODY></TABLE></TD>
          <TD style=3D"VERTICAL-ALIGN: top">
            <TABLE class=3DmenuTbl=20
            =
id=3Dctl00_ctl00_ctl00_RightNavBar_RightNavBar_RightNavBar_tc_rt1=20
            style=3D"WIDTH: 100%; TEXT-ALIGN: justify" cellSpacing=3D0=20
cellPadding=3D0>
              <TBODY>
              <TR>
                <TD class=3DmenuTblOr_tl noWrap></TD>
                <TD class=3DmenuTblOr_t><SPAN class=3Dsmall>Filter By =
Tag</SPAN>=20
                </TD>
                <TD class=3DmenuTblOr_tr noWrap></TD></TR>
              <TR>
                <TD class=3DmenuTbl_l></TD>
                <TD>
                  <DIV><A class=3DsmallDull=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/filter/to/4=
"=20
                  rel=3Dtag>ADO<SPAN class=3Dbright>(2)</SPAN></A> =
</DIV>
                  <DIV><A class=3DsmallDull=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/filter/to/7=
"=20
                  rel=3Dtag>ASP<SPAN class=3Dbright>(2)</SPAN></A> =
</DIV>
                  <DIV><A class=3DsmallDull=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/filter/to/8=
"=20
                  rel=3Dtag>COM<SPAN class=3Dbright>(2)</SPAN></A> =
</DIV>
                  <DIV><A class=3DsmallDull=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/filter/to/3=
"=20
                  rel=3Dtag>Database<SPAN class=3Dbright>(5)</SPAN></A> =
</DIV>
                  <DIV><A class=3DsmallDull=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/filter/to/1=
"=20
                  rel=3Dtag>Delphi<SPAN class=3Dbright>(23)</SPAN></A> =
</DIV>
                  <DIV><A class=3DsmallDull=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/filter/to/9=
"=20
                  rel=3Dtag>Html<SPAN class=3Dbright>(1)</SPAN></A> =
</DIV>
                  <DIV><A class=3DsmallDull=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/filter/to/1=
0"=20
                  rel=3Dtag>Http<SPAN class=3Dbright>(1)</SPAN></A> =
</DIV>
                  <DIV><A class=3DsmallDull=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/filter/to/2=
"=20
                  rel=3Dtag>ISAPI<SPAN class=3Dbright>(16)</SPAN></A> =
</DIV>
                  <DIV><A class=3DsmallDull=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/filter/to/6=
"=20
                  rel=3Dtag>SOAP<SPAN class=3Dbright>(3)</SPAN></A> =
</DIV>
                  <DIV><A class=3DsmallDull=20
                  =
href=3D"http://exposureroom.com/members/skumar.aspx/tutorials/filter/to/5=
"=20
                  rel=3Dtag>WebServices<SPAN =
class=3Dbright>(3)</SPAN></A> </DIV></TD>
                <TD class=3DmenuTbl_r></TD></TR>
              <TR>
                <TD class=3DmenuTbl_bl></TD>
                <TD class=3DmenuTbl_b></TD>
                <TD =
class=3DmenuTbl_br></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
      <DIV style=3D"MARGIN: 5px 0px; BACKGROUND-COLOR: #1a1a1a">
      <SCRIPT type=3Dtext/javascript><!--
          google_ad_client =3D "pub-9502245109821324";
          /* 336x280, created 5/19/08 */
          google_ad_slot =3D "0331693297";
          google_ad_width =3D 336;
          google_ad_height =3D 280;
          //-->
          </SCRIPT>

      <SCRIPT =
src=3D"http://pagead2.googlesyndication.com/pagead/show_ads.js"=20
      type=3Dtext/javascript>
          </SCRIPT>
      </DIV></TD></TR>
  <TR>
    <TD style=3D"TEXT-ALIGN: left" colSpan=3D2>
      <SCRIPT type=3Dtext/javascript><!--
google_ad_client =3D "pub-9502245109821324";
/* 728x90 HomePage Footer Unit */
google_ad_slot =3D "9702094176";
google_ad_width =3D 728;
google_ad_height =3D 90;
//-->
</SCRIPT>

      <SCRIPT =
src=3D"http://pagead2.googlesyndication.com/pagead/show_ads.js"=20
      type=3Dtext/javascript>
</SCRIPT>
    </TD></TR></TBODY></TABLE>
<HR=20
style=3D"BORDER-RIGHT: #1e1e1e 1px solid; BORDER-TOP: #1e1e1e 1px solid; =
BORDER-LEFT: #1e1e1e 1px solid; BORDER-BOTTOM: #1e1e1e 1px solid">

<TABLE style=3D"MARGIN: 50px auto 10px; TEXT-ALIGN: center">
  <TBODY>
  <TR>
    <TD><A class=3Dsmall =
href=3D"http://exposureroom.com/privacypolicy.htm"=20
      rel=3Dnofollow>Privacy Policy</A>&nbsp;&nbsp;|</TD>
    <TD>&nbsp;&nbsp;<A class=3Dsmall=20
      href=3D"http://exposureroom.com/termsofuse.htm" =
rel=3Dnofollow>Terms Of=20
      Service</A>&nbsp;&nbsp;|</TD>
    <TD>&nbsp;&nbsp;<A class=3Dsmall=20
      =
href=3D"http://exposureroom.com/contactus.aspx?w=3D800&amp;h=3D780"=20
      target=3D_blank rel=3Dnofollow>Contact Us</A>&nbsp;&nbsp;|</TD>
    <TD>&nbsp;&nbsp;<A class=3Dsmall=20
      =
href=3D"http://exposureroom.com/contactus.aspx?t=3Dsupport&amp;w=3D800&am=
p;h=3D780"=20
      target=3D_blank rel=3Dnofollow>Support</A>&nbsp;&nbsp;|</TD>
    <TD>&nbsp;&nbsp;<A class=3Dsmall=20
      =
href=3D"http://exposureroom.com/help/">Help/FAQs</A>&nbsp;&nbsp;|</TD>
    <TD>&nbsp;&nbsp;<A class=3Dsmall=20
      =
href=3D"http://exposureroom.com/news/">News</A></TD></TR></TBODY></TABLE>=

<TABLE=20
style=3D"BORDER-RIGHT: #2a2a2a 1px solid; BORDER-TOP: #2a2a2a 1px solid; =
MARGIN: 20px auto 10px; BORDER-LEFT: #2a2a2a 1px solid; BORDER-BOTTOM: =
#2a2a2a 1px solid; TEXT-ALIGN: center">
  <TBODY>
  <TR>
    <TD>
      <DIV style=3D"CLEAR: left">
      <DIV=20
      style=3D"PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FLOAT: left; =
PADDING-BOTTOM: 5px; MARGIN: 0px 10px; PADDING-TOP: 5px; TEXT-ALIGN: =
left"><SPAN=20
      class=3Dsmall><A href=3D"http://exposureroom.com/">Home</A></SPAN> =
</DIV>
      <DIV=20
      style=3D"PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FLOAT: left; =
PADDING-BOTTOM: 5px; MARGIN: 0px 10px; PADDING-TOP: 5px; TEXT-ALIGN: =
left"><SPAN=20
      class=3Dsmall><A=20
      =
href=3D"http://exposureroom.com/content/nowplaying/">Content</A></SPAN>=20
      <DIV class=3Dsmall=20
      style=3D"BORDER-RIGHT: #2a2a2a 2px solid; PADDING-RIGHT: 10px; =
PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><A=20
      href=3D"http://exposureroom.com/content/nowplaying/">Now =
Playing</A></DIV>
      <DIV class=3Dsmall=20
      style=3D"BORDER-RIGHT: #2a2a2a 2px solid; PADDING-RIGHT: 10px; =
PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><A=20
      href=3D"http://exposureroom.com/content/recent/">Recent</A></DIV>
      <DIV class=3Dsmall=20
      style=3D"BORDER-RIGHT: #2a2a2a 2px solid; PADDING-RIGHT: 10px; =
PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><A=20
      =
href=3D"http://exposureroom.com/content/showcase/">Showcase</A></DIV>
      <DIV class=3Dsmall=20
      style=3D"BORDER-RIGHT: #2a2a2a 2px solid; PADDING-RIGHT: 10px; =
PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><A=20
      =
href=3D"http://exposureroom.com/library/interviews/">Interviews</A></DIV>=

      <DIV class=3Dsmall=20
      style=3D"BORDER-RIGHT: #2a2a2a 2px solid; PADDING-RIGHT: 10px; =
PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><A=20
      =
href=3D"http://exposureroom.com/library/tutorials/">Tutorials</A></DIV>
      <DIV class=3Dsmall=20
      style=3D"BORDER-RIGHT: #2a2a2a 2px solid; PADDING-RIGHT: 10px; =
PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><A=20
      =
href=3D"http://exposureroom.com/library/articles/">Articles</A></DIV>
      <DIV class=3Dsmall=20
      style=3D"BORDER-RIGHT: #2a2a2a 2px solid; PADDING-RIGHT: 10px; =
PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><A=20
      =
href=3D"http://exposureroom.com/contests/">Contests</A></DIV></DIV>
      <DIV=20
      style=3D"PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FLOAT: left; =
PADDING-BOTTOM: 5px; MARGIN: 0px 10px; PADDING-TOP: 5px; TEXT-ALIGN: =
left"><SPAN=20
      class=3Dsmall><A =
href=3D"http://exposureroom.com/search/">Search</A></SPAN>=20
      <DIV class=3Dsmall=20
      style=3D"BORDER-RIGHT: #2a2a2a 2px solid; PADDING-RIGHT: 10px; =
PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><A=20
      href=3D"http://exposureroom.com/search/">All</A></DIV>
      <DIV class=3Dsmall=20
      style=3D"BORDER-RIGHT: #2a2a2a 2px solid; PADDING-RIGHT: 10px; =
PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><A=20
      href=3D"http://exposureroom.com/tag/">By Tag</A></DIV>
      <DIV class=3Dsmall=20
      style=3D"BORDER-RIGHT: #2a2a2a 2px solid; PADDING-RIGHT: 10px; =
PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><A=20
      href=3D"http://exposureroom.com/equipment/">By Equipment</A></DIV>
      <DIV class=3Dsmall=20
      style=3D"BORDER-RIGHT: #2a2a2a 2px solid; PADDING-RIGHT: 10px; =
PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><A=20
      href=3D"http://exposureroom.com/assettype/">By Asset =
Type</A></DIV>
      <DIV class=3Dsmall=20
      style=3D"BORDER-RIGHT: #2a2a2a 2px solid; PADDING-RIGHT: 10px; =
PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><A=20
      href=3D"http://exposureroom.com/genre/">By Genre</A></DIV></DIV>
      <DIV=20
      style=3D"PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FLOAT: left; =
PADDING-BOTTOM: 5px; MARGIN: 0px 10px; PADDING-TOP: 5px; TEXT-ALIGN: =
left"><SPAN=20
      class=3Dsmall><A=20
      href=3D"http://exposureroom.com/newsgroups/">Forums</A></SPAN>=20
    </DIV></DIV></TD></TR></TBODY></TABLE>
<SCRIPT type=3Dtext/javascript>
var gaJsHost =3D (("https:" =3D=3D document.location.protocol) ? =
"https://ssl." : "http://www.");
document.write(unescape("%3Cscript src=3D'" + gaJsHost + =
"google-analytics.com/ga.js' =
type=3D'text/javascript'%3E%3C/script%3E"));
</SCRIPT>

<SCRIPT type=3Dtext/javascript>
var pageTracker =3D _gat._getTracker("UA-831293-2");
pageTracker._initData();
pageTracker._trackPageview();
</SCRIPT>
</BODY></HTML>

------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Location: http://exposureroom.com/Images/xrBannerLogo.jpg

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

------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Location: http://exposureroom.com/Hsi/GetMemberPortrait.aspx?username=skumar&size=mi

/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsK
CwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQU
FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCABAACsDASIA
AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA
AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3
ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm
p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA
AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx
BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK
U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3
uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD6hl+F
OkLpem3L3d4hu4YpGSK7ZQpdQ2AAeBz0Fef/ALTHivw1+y58KL/xXJDLq+ozsllp9hcXpPnTNnB+
YkhVALMVBPAHfNeban8XtR8JeMNRub68a7sWf7NDbqxPlCP5AMdulfCHxu+JmsftJfGrUr/WppUt
bWV7Kxst52Wtuh2hVHQFiCzHqSfpXwuFpSxVaTlNqMW29X0ex9vir4WjCMYpykklouqNrWv20viN
4rjbfrCaQrvhbbSoVhCr2G87pPxzVrw9+0N40sppL228XatdXNuQ5glujcKQOo2S5U/Qiu++F/7E
lr4o062vTqX2beu4pKM7h6CvpHR/+CfngOLw1Oq3F5Yau0e15recSRSED0Iyuf7v619TDMMNTi0l
p6HgyyvFyab/ADN39kX9qXQPj6k/hvW9P02z8ZWkJnjMdssceowj7zouMB143KCRg5HGQPTfF0KW
viG7ihRYo12YSMbQPkB6CvzH8XeGNW/ZT+Peiavply9xHo+pW13DOG+cxs2JI29Qy71I7giv088c
FW8UXpT7h2Fc+mxcVVOMfbKpTfuyV1+BjWlL2Dp1F70ZWf3M9P0bwl4cm0bTJptLs5JntIZHdogS
WMakk+5Nfjb+0x4a/wCFQftY/EK2tLCJbOTVfttpAZNsflTgTL0yR9/GOtfrHYeIYtRt9NsPtqWc
ghWPLNj7qgf0r89f2w/Ddto/7SUGqXcUWp2PiOxhlAdussB8lz7cLGR9TXyuBkqeJqK2jv8AOzuf
QVqEpUqb5ndW/FWPSP2Vvjbr3i3xLpPga+0e1sp9Qs2vLK8RMotvGSru+eS2QRjA5r1PxZ8evirp
fjhPCNv4R0mDToImmk1SK3nnVgo3MQyjj5OeRyQQOeK+a/gL8U9F+GP7RWqTaxbXEvm6MbawktQm
2NyoZV5wF3fd/Cv0i8CeIbXxZ4NsdUtYE8y5tfNV5I1V+TnYwydpHGRXsctpcyh7rR1cs6lHkdS8
ovX/AIJ+fP7Xfwn8T+PL/Qb/AEfTkbWtUs5JTZjcBceQfOGzIzkqGABxyMV9feI55LnUxNKhilkt
7d3jPVWMKEj8DkVB4n8UJF8WvDlpGFubiW2mQg5P2c4ByCOnCsKn8TTi51y5kHRtv/oIrfBVZTlG
DWiT/M8PMqMacXNO7clf7jyX4gkEGWXW7LQZo5GEct7dLCrL/wACIzxXwp+0R8XLfxH4osrWLVRr
g0dnjj1K1H7obsbvLJ5bkDnoea7f41+ErrWfiH4ollkeVRfXBUyMW2r5jYAz0AHavm7xB4VuNPup
gEyOW/8Ar1FLLlTq+2lK7V7Lbcipmkp0nRjFJNK73emunY9O+GUJ8U68s81nqGqWcjxgxaVCWmml
z8pO5xyOT19fWvsC+upvgHa2WuDxBqkcV7EY20LUYvJmA7nAJU44yDz6Gvz1+H/jTWvBmqI2mSuk
kiYjAfbhmHUdu9fSGjeA/iL8b7u2n8YaibXT4yoULIJJSOwA6Af7R6da9Crb7crRMqNa1PlhC8u/
/B/zPTvDvxH17x9qmq+KdFvpNFttJjdYr5hzNK4x5fPGBk5znJK+tfRXgHxHqni3wfpeq61bx2uq
3EX+kRxDC7lJXI+u3P414N4wttM8O+BNP8M6FAkdolxFDGsZ/wBdOWDE5/i5C8+5r274XXUV34Hs
GhO6OKSeAEd/LnkjJ/Na1oxVublt29P61OCvOTlyuV+/r/Wh88eM/L1HxR4uYKCsV/JDn33nNeV6
94Li1LXfsgX/AF1k5U47hh/jXseqeENeaTxNcQaLfzi61y7niaO2dvMjM0hV1wOVKkEEcEGsz/hC
PES+JNJuf+Ee1MokbpI32STAzjqce1dNjjPmPwd8PhruoXFi8dtMbSVkUtN5UsZBzj3HORkHrX0v
4FsLqws47OS82wLgNbpJuYn3wBx+dcFN8M/GHhf4sXM9p4U1e50y++YyR6dJJGjDpkhcDivYrLw9
4hs7K6uBoF8jpGWEcdowLN2AAGTzWfs4t+8tjT2k0tGYi3UWs/EiG3jbNh4ft3upM9DOwIX8huNe
w/s0XLXnwb0iZjuZ7vUCSf8Ar+nrxj4d+CfE9n4V1nULzQNSi1PVJHkaKW1dZFX7qAqRkcDP417P
+zdpl54f+DmjWGqWs2m30c980ltdxmKRQ15Oykq2CMqwI9QQe9aMhH//2Q==

------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: image/png
Content-Transfer-Encoding: base64
Content-Location: http://exposureroom.com/Images/StarOff.png

iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAABGdBTUEAAK/INwWK6QAAABl0RVh0
U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKZSURBVHjahJRNTxpRFIbPDDNIUaAMqFgn
phHaRQN0Y+nCjR/pwh2LLtiYuG/SRbvrL+gPcNN0p9aFiy6arkiMdFEgqZES8QtZkCpJLRCM6CAw
cD13PDTTxuhNntyZO3Pe+55zz4wApsEYE3CyIKJp5mtdpNNDEARmijFeMIvwQCvSR7OVRHSkaeKv
EBcRew4QiYIdiAd5MDs7+0pV1aWFhYUo3g8iLuQeIlGMYUKi4P8FBiORyBu9k50Lh2VIp9P9uPYL
KSMV5BS5RNrclUiW7Yib7474C4VCZGvrx5x24YZs1gWaVngWi8Ve47PHiIp4kQHa2MIt3ccLZyaT
ebi5uRlJpVLTuVwuLMvbarGoGLUaGWlBscgaU1NTWXT4bWJi4vvMzMwePqohF1xkaH5+/sXa2qcV
RRFhbEyGoSEr7O4OwOXldcEFzNzna4PDcY5ibSiXOzA6+mjp4ODgHU+Ni4xi8T6GQvW57e0BLDLc
ObxeBjs7fzRd10O8TrwmLBqNft7YqKOD7p0CNpsAtVoZQqHQ194aF9EXFxd/Tk5Of8nlTmB4mN0i
IGKKFRgfn0xiDT/0mk+kY2qsr68vR6MvU/n8CYiicKOIojRAVZ+WEonECh1x6x8R5Ayrn1EU+Za6
yHB0dGSjU9FuEqnF43GX19tntDIfDoeERRTxdK6dtZoSVKtV3nhV5Nws0qHvoZ5MJp9g5uB0ShAI
tKBQKLHDw6rudp+Bx2OBLhOh3W7ZNE07JSfcADNOhxTPgsHg8vExy+Tzx3qz6U+srq6+x4C3Pt/z
+P7+78beXqnp9wdW7HZ7hdx3jD5C66KR7PWH1U/tbKeWlqkYXdqIB9Z5l5pqogumf4hEQVa6Fgkg
t4x+CS1Ko0337EqAAQCxNyqENqRWlgAAAABJRU5ErkJggg==

------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: image/png
Content-Transfer-Encoding: base64
Content-Location: http://exposureroom.com/Images/FavoriteIt.png

iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABGdBTUEAAK/INwWK6QAAABl0RVh0
U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAANESURBVHjajJRrSNNRGMafuTkvzTnddHhJ
mzababupZaKCl6wgEILoAn4YwSIUhWgEIt0kpMgP9SXFCAkkwk9KYFH5wRBaGX1Yot0MVLyVy6k5
b3l6z39HmoHQH36cbec9z/8557zPZNjmYYzJaQhmg/jNkclk60F10hiyjYiMhlBCRWhzc3MdNOqI
KEJJ8yH4n4cKFYSWyKDnMU7GMJPJ1Enfswg9ERbsaNPVFidCRE0YXS5XHVKUDCt2hjOxrKysrI1+
zxYvUYr6gFDQ4khCQySKNx8ym81udBgY1knoczaDUsbGxsaO05yN2CkEd3BRSYTMhIvz0CwsLOja
2tr2DwwM5D761HUaA5nAiRGgNQW4MYXDg9aneXl57srKSjed3Tit+UksQFjU2u32K9HR0V8glzHk
RDI4dQyDWQw9RkbOvuGCnmHWwqSxNIohWs5UKtWEzWZrpvUJXCi8urr6IAxhDO8zacM5ASbNkgj2
RbCGhoYWvi083MUwnPW3hm+XLoIc1nKhMCKpsLDwDuriAwXkRq1WL9KNDdXW1t6k+fLGxkaX1Wp9
rdfrZ7EnnGHJxtCVzvgOZmZmjFwolNDRIR6gPb/A5YRAEdmnW+rhIoSdKKypqbmLOEXAycsM6fAd
DsdFbkTqYEJFpPX19Z0qLS3txa1khjkr44v6+/uraK6EOJqamjokCbhNDBEhzOl03hbtoAmhdudt
v0z4ioqKvlZUVLxC9xzoMIHFDYyMjJjy8/PrqaeOyeXyMCksz+dRVlDypLW1tVvc2hK/evDskOoK
ffR7PB4NHTzwfR0qeaS/qvlcPc5q4e69X564HOnFqBLUpJiamtJwAWFiTRHU2DyUa6OjozEopuJV
hsXOhAgcUQMeP3A+DhMfV2Lhow2sbsDr9cZS/aoI8pbw8cCsjo+Px2E3OUqizPpJu2AY8eU/JpH2
AeidB6wR4I59Pl9ckNCW9HNHfq1W+w5vfgFZg0h34e2l4prr09PTzgdXW+py2uOfIdkDtM/CYDB0
Uf3iptC/iY/iWbNYLNeoCXmmLCJ3GcRe/r2jo6PcaDTea2pqyhHZ5MmALEiIu1OI/yElvwPhcl28
dXNeLpasia1J838EGAAMovGcimCucwAAAABJRU5ErkJggg==

------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: text/css;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://exposureroom.com/Stylesheets/Themes/Earth_Arial_100.css

BODY {
	FONT-SIZE: 100%; MARGIN: 3px 0px 0px; COLOR: #665d3d; FONT-FAMILY: =
Arial; BACKGROUND-COLOR: #1a1a1a; TEXT-ALIGN: center
}
#maincontainer {
	MARGIN: 0px auto; WIDTH: 1032px; TEXT-ALIGN: center
}
#contentcontainer {
	PADDING-RIGHT: 5px; PADDING-LEFT: 0px; PADDING-BOTTOM: 5px; =
VERTICAL-ALIGN: top; WIDTH: 680px; PADDING-TOP: 3px; TEXT-ALIGN: justify
}
TD {
	FONT-SIZE: 100%
}
INPUT[type=3Dtext] {
	BORDER-RIGHT: #4a4a4a 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: =
#4a4a4a 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 85%; PADDING-BOTTOM: =
2px; BORDER-LEFT: #4a4a4a 1px solid; COLOR: #998c5c; PADDING-TOP: 2px; =
BORDER-BOTTOM: #4a4a4a 1px solid; BACKGROUND-COLOR: #3a3a3a
}
INPUT[type=3Dpassword] {
	BORDER-RIGHT: #4a4a4a 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: =
#4a4a4a 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 85%; PADDING-BOTTOM: =
2px; BORDER-LEFT: #4a4a4a 1px solid; COLOR: #998c5c; PADDING-TOP: 2px; =
BORDER-BOTTOM: #4a4a4a 1px solid; BACKGROUND-COLOR: #3a3a3a
}
SELECT {
	FONT-SIZE: 85%
}
.lbl {
	COLOR: #ccba7a
}
.inst {
	FONT-SIZE: 80%
}
.desc {
	FONT-SIZE: 91%
}
.descSmall {
	FONT-SIZE: 85%
}
BUTTON {
	FONT-SIZE: 100%; CURSOR: pointer
}
H1 {
	MARGIN-TOP: 6px; FONT-WEIGHT: normal; FONT-SIZE: 150%; MARGIN-BOTTOM: =
6px; COLOR: #437f6e
}
H2 {
	MARGIN-TOP: 4px; FONT-WEIGHT: normal; FONT-SIZE: 140%; MARGIN-BOTTOM: =
4px; COLOR: #b3a836
}
H3 {
	MARGIN-TOP: 4px; FONT-WEIGHT: normal; FONT-SIZE: 130%; MARGIN-BOTTOM: =
4px; COLOR: #99984c
}
H4 {
	MARGIN-TOP: 4px; FONT-WEIGHT: normal; FONT-SIZE: 120%; MARGIN-BOTTOM: =
2px; COLOR: #b39736
}
H5 {
	MARGIN-TOP: 4px; FONT-WEIGHT: normal; FONT-SIZE: 100%; MARGIN-BOTTOM: =
2px; COLOR: #b39736
}
H4 > A:link {
	COLOR: #b39736; BORDER-BOTTOM: #5e542d 1px dotted; TEXT-DECORATION: =
none
}
H4 > A:visited {
	COLOR: #b39736; BORDER-BOTTOM: #5e542d 1px dotted; TEXT-DECORATION: =
none
}
H4 > A:hover {
	COLOR: #e5b917; BORDER-BOTTOM: #e5b917 1px solid; TEXT-DECORATION: none
}
H5 > A:link {
	COLOR: #b39736; BORDER-BOTTOM: #5e542d 1px dotted; TEXT-DECORATION: =
none
}
H5 > A:visited {
	COLOR: #b39736; BORDER-BOTTOM: #5e542d 1px dotted; TEXT-DECORATION: =
none
}
H5 > A:hover {
	COLOR: #e5b917; BORDER-BOTTOM: #e5b917 1px solid; TEXT-DECORATION: none
}
A IMG {
	BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: =
0px; BORDER-RIGHT-WIDTH: 0px
}
A:link {
	COLOR: #998c5c; BORDER-BOTTOM: #4d462e 1px dotted; TEXT-DECORATION: =
none
}
A:visited {
	COLOR: #998c5c; BORDER-BOTTOM: #4d462e 1px dotted; TEXT-DECORATION: =
none
}
A:hover {
	COLOR: #e5d28a; BORDER-BOTTOM: #e5d28a 1px solid; TEXT-DECORATION: none
}
A.smallDull:link {
	FONT-SIZE: 80%; COLOR: #595236; TEXT-DECORATION: none
}
A.smallDull:visited {
	FONT-SIZE: 80%; COLOR: #595236; TEXT-DECORATION: none
}
A.smallDull:hover {
	FONT-SIZE: 80%; COLOR: #b3a36b
}
A.mainMenu:link {
	FONT-WEIGHT: bold; FONT-SIZE: 115%; COLOR: #ccb652; TEXT-DECORATION: =
none
}
A.mainMenu:visited {
	FONT-WEIGHT: bold; FONT-SIZE: 115%; COLOR: #ccb652; TEXT-DECORATION: =
none
}
A.mainMenu:hover {
	FONT-WEIGHT: bold; FONT-SIZE: 115%; COLOR: #ffe366; BORDER-BOTTOM: =
#ffe366 1px solid; TEXT-DECORATION: none
}
A.mainMenuSelected {
	BORDER-BOTTOM: #ffe366 1px solid
}
A.submenu:link {
	COLOR: #d0d0d0; TEXT-DECORATION: none
}
A.submenu:visited {
	COLOR: #d0d0d0; TEXT-DECORATION: none
}
A.submenu:hover {
	COLOR: #ffffff; BORDER-BOTTOM: #ffffff 1px solid
}
A.submenuSelected {
	BORDER-BOTTOM: #ffffff 1px solid
}
A.hmmenu:link {
	FONT-SIZE: 85%; COLOR: #998c5b; TEXT-DECORATION: none
}
A.hmmenu:visited {
	FONT-SIZE: 85%; COLOR: #998c5b; TEXT-DECORATION: none
}
A.hmmenu:hover {
	FONT-SIZE: 85%; COLOR: #e5d28a; TEXT-DECORATION: none
}
A.hmselectedmenu {
	BORDER-BOTTOM: #d6c68a 1px solid
}
A.sidemenu:link {
	FONT-WEIGHT: bold; COLOR: #665e3d; TEXT-DECORATION: none
}
A.sidemenu:visited {
	FONT-WEIGHT: bold; COLOR: #665e3d; TEXT-DECORATION: none
}
A.sidemenu:hover {
	FONT-WEIGHT: bold; COLOR: #b3a46b; TEXT-DECORATION: none
}
A.edit:link {
	FONT-SIZE: 85%; COLOR: #ccca66; BORDER-BOTTOM: #4d462e 1px dotted; =
TEXT-DECORATION: none
}
A.edit:visited {
	FONT-SIZE: 85%; COLOR: #ccca66; BORDER-BOTTOM: #4d462e 1px dotted; =
TEXT-DECORATION: none
}
A.edit:hover {
	FONT-SIZE: 85%; COLOR: #fffd80; BORDER-BOTTOM: #fffd80 1px dotted; =
TEXT-DECORATION: none
}
A.tag:link {
	FONT-SIZE: 80%; COLOR: #b37636; BORDER-BOTTOM: #4d462e 1px dotted; =
TEXT-DECORATION: none
}
A.tag:visited {
	FONT-SIZE: 80%; COLOR: #b37636; BORDER-BOTTOM: #4d462e 1px dotted; =
TEXT-DECORATION: none
}
A.tag:hover {
	COLOR: #ffa94c; BORDER-BOTTOM: #ffa94c 1px solid; TEXT-DECORATION: none
}
A.equip:link {
	FONT-SIZE: 80%; COLOR: #3d7799; BORDER-BOTTOM: #4d462e 1px dotted; =
TEXT-DECORATION: none
}
A.equip:visited {
	FONT-SIZE: 80%; COLOR: #3d7799; BORDER-BOTTOM: #4d462e 1px dotted; =
TEXT-DECORATION: none
}
A.equip:hover {
	COLOR: #179ae5; BORDER-BOTTOM: #179ae5 1px solid; TEXT-DECORATION: none
}
A.section:link {
	BORDER-BOTTOM: #4d462e 1px dotted; TEXT-DECORATION: none
}
A.section:visited {
	BORDER-BOTTOM: #4d462e 1px dotted; TEXT-DECORATION: none
}
A.section:hover {
	COLOR: #e5d28a; BORDER-BOTTOM: #e5d28a 2px solid; TEXT-DECORATION: none
}
A.nostyle:link {
	BORDER-BOTTOM-WIDTH: 0px; COLOR: #665d3d; TEXT-DECORATION: none
}
A.nostyle:visited {
	BORDER-BOTTOM-WIDTH: 0px; COLOR: #665d3d; TEXT-DECORATION: none
}
A.nostyle:hover {
	BORDER-BOTTOM-WIDTH: 0px; COLOR: #665d3d; TEXT-DECORATION: none
}
IMG.border {
	BORDER-RIGHT: #909090 1px solid; BORDER-TOP: #909090 1px solid; =
BORDER-LEFT: #909090 1px solid; BORDER-BOTTOM: #909090 1px solid
}
.xrSectionMenu {
	CURSOR: pointer; BORDER-BOTTOM: #4d462e 1px dotted
}
.xrSectionMenuSelected {
	CURSOR: pointer; COLOR: #99853d; BORDER-BOTTOM: #99853d 2px solid
}
.xrSectionMenuOver {
	CURSOR: pointer; COLOR: #99853d; BORDER-BOTTOM: #99853d 1px dotted
}
.xrSectionMenuPadding {
	PADDING-RIGHT: 10pt
}
.nfItem {
	PADDING-RIGHT: 8px; PADDING-LEFT: 0px; FONT-SIZE: 80%; PADDING-BOTTOM: =
0px; PADDING-TOP: 0px
}
.nfImg {
	CLEAR: right; PADDING-RIGHT: 5px; PADDING-LEFT: 2px; FLOAT: left; =
PADDING-BOTTOM: 2px; PADDING-TOP: 2px
}
.nfShortItmTx {
	FONT-SIZE: 70%; WIDTH: 100%; COLOR: #80744d
}
.shortNfItem {
	BORDER-RIGHT: #353535 1px solid; BORDER-TOP: #353535 1px solid; =
BACKGROUND: #252525; MARGIN: 0px 0px 2px; BORDER-LEFT: #353535 1px =
solid; WIDTH: 100%; BORDER-BOTTOM: #353535 1px solid
}
.shortNfItemOver {
	BORDER-RIGHT: #353535 1px solid; BORDER-TOP: #353535 1px solid; =
BACKGROUND: #2c2c2c; MARGIN: 0px 0px 2px; BORDER-LEFT: #353535 1px =
solid; WIDTH: 100%; CURSOR: pointer; BORDER-BOTTOM: #353535 1px solid
}
.small {
	FONT-SIZE: 80%
}
.smallerBright {
	FONT-SIZE: 70%; COLOR: #99743d
}
.smaller {
	FONT-SIZE: 70%; COLOR: #664c25
}
.dull {
	COLOR: #595236
}
.bright {
	COLOR: #b3a36b
}
.brighter {
	COLOR: #ccba7a
}
.italic {
	FONT-STYLE: italic
}
.topAlign {
	VERTICAL-ALIGN: top
}
.leftAlign {
	TEXT-ALIGN: left
}
.centered {
	TEXT-ALIGN: center
}
.darkBackgroundStyle {
	BACKGROUND-COLOR: #1d1d1d
}
.darkBackgroundAltStyle {
	BACKGROUND-COLOR: #1a1a1a
}
.darkBackgroundHeader {
	BACKGROUND-COLOR: #2a2a2a
}
.imgnorm {
	BORDER-RIGHT: #1a1a1a 1px solid; BORDER-TOP: #1a1a1a 1px solid; =
BORDER-LEFT: #1a1a1a 1px solid; BORDER-BOTTOM: #1a1a1a 1px solid
}
.imgHlt {
	BORDER-RIGHT: #ffd700 1px solid; BORDER-TOP: #ffd700 1px solid; =
BORDER-LEFT: #ffd700 1px solid; CURSOR: pointer; BORDER-BOTTOM: #ffd700 =
1px solid
}
CODE {
=09
}
.codeblockouter {
	BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; =
PADDING-BOTTOM: 10px; OVERFLOW: auto; BORDER-LEFT: gray 1px solid; =
WIDTH: 48em; PADDING-TOP: 10px; BORDER-BOTTOM: gray 1px solid; =
BACKGROUND-COLOR: #cccccc
}
.codeblockInner {
	FONT-SIZE: 10pt
}
.erroNode {
	BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; DISPLAY: =
none; VISIBILITY: hidden; BORDER-LEFT: black 1px solid; WIDTH: 100%; =
BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: #3a3a3a
}
.errorColor {
	BORDER-RIGHT: #fff 0px solid; BORDER-TOP: #fff 0px solid; BORDER-LEFT: =
#fff 0px solid; BORDER-BOTTOM: #fff 0px solid; BACKGROUND-COLOR: #ffdead
}
.letterIndex {
	BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; =
BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid; =
TEXT-ALIGN: center
}
.selectedLetter {
	BORDER-RIGHT: #d2cca7 1px solid; BORDER-TOP: #d2cca7 1px solid; =
BACKGROUND: #eeebd8; BORDER-LEFT: #d2cca7 1px solid; BORDER-BOTTOM: =
#d2cca7 1px solid
}
.topMenuSel {
	BORDER-RIGHT: #9db85e 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: =
#414d27 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 3px; BORDER-LEFT: =
#414d27 1px solid; COLOR: #ffffff; PADDING-TOP: 3px; BORDER-BOTTOM: =
#9db85e 1px solid; BACKGROUND-COLOR: #62733b
}
.topMenuUnsel {
	BORDER-RIGHT: #62733b 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: =
#62733b 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 3px; BORDER-LEFT: =
#62733b 1px solid; CURSOR: pointer; COLOR: #fafafa; PADDING-TOP: 3px; =
BORDER-BOTTOM: #62733b 1px solid; BACKGROUND-COLOR: #88a052
}
.topMenuHover {
	BORDER-RIGHT: #576634 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: =
#a7c464 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 3px; BORDER-LEFT: =
#a7c464 1px solid; CURSOR: pointer; COLOR: #ffffff; PADDING-TOP: 3px; =
BORDER-BOTTOM: #576634 1px solid; BACKGROUND-COLOR: #9db85e
}
.selectedMenuItem {
	BORDER-RIGHT: #807b66 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: =
#807b66 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 3px; BORDER-LEFT: =
#807b66 1px solid; COLOR: #000000; PADDING-TOP: 3px; BORDER-BOTTOM: =
#807b66 1px solid; BACKGROUND-COLOR: #fef5cc
}
.unSelectedMenuItem {
	BORDER-RIGHT: #e97981 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: =
#c75760 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 3px; BORDER-LEFT: =
#c75760 1px solid; CURSOR: pointer; COLOR: #ffffff; PADDING-TOP: 3px; =
BORDER-BOTTOM: #c75760 1px solid; BACKGROUND-COLOR: #d87870
}
.unSelectedMenuItemOver {
	BORDER-RIGHT: #d86870 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: =
#fdb3a5 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 3px; BORDER-LEFT: =
#fdb3a5 1px solid; CURSOR: pointer; COLOR: #ffffff; PADDING-TOP: 3px; =
BORDER-BOTTOM: #d86870 1px solid; BACKGROUND-COLOR: #fb9183
}
.disabledMenuOption {
	BORDER-RIGHT: #e97981 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: =
#c75760 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 3px; BORDER-LEFT: =
#c75760 1px solid; COLOR: #ffffff; PADDING-TOP: 3px; BORDER-BOTTOM: =
#c75760 1px solid; BACKGROUND-COLOR: #d87870
}
.tabAreaInner {
	MARGIN: 4px; BACKGROUND-COLOR: white
}
.userMessage {
	COLOR: #ffd700
}
.outerquote {
	BORDER-RIGHT: #2a2a2a 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: =
#2a2a2a 1px solid; PADDING-LEFT: 5px; FONT-SIZE: 90%; MARGIN-BOTTOM: =
10px; PADDING-BOTTOM: 5px; BORDER-LEFT: #2a2a2a 1px solid; PADDING-TOP: =
5px; BORDER-BOTTOM: #2a2a2a 1px solid; FONT-STYLE: italic; =
BACKGROUND-COLOR: #1a1a1a
}
.innerquote {
	BORDER-RIGHT: #2f2f2f 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: =
#2f2f2f 1px solid; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; MARGIN: 0px =
0px 10px; BORDER-LEFT: #2f2f2f 1px solid; PADDING-TOP: 3px; =
BORDER-BOTTOM: #2f2f2f 1px solid; FONT-STYLE: italic; BACKGROUND-COLOR: =
#2a2a2a
}

------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: text/css;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://exposureroom.com/stylesheets/exrMenus.css

.menuTbl {
	BACKGROUND-COLOR: #2c2c2c; TEXT-ALIGN: left
}
.menuTblOr_tl {
	BACKGROUND-IMAGE: url(../images/menuTblOr_tl.jpg); WIDTH: 14px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 34px
}
.menuTblOr_t {
	BACKGROUND-IMAGE: url(../images/menuTblOr_t.jpg); COLOR: #ffffff; =
BACKGROUND-REPEAT: repeat-x
}
.menuTblOr_tr {
	BACKGROUND-IMAGE: url(../images/menuTblOr_tr.jpg); WIDTH: 18px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 34px
}
.menuTblBl_tl {
	BACKGROUND-IMAGE: url(../images/menuTblBl_tl.jpg); WIDTH: 14px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 34px
}
.menuTblBl_t {
	BACKGROUND-IMAGE: url(../images/menuTblBl_t.jpg); COLOR: #ffffff; =
BACKGROUND-REPEAT: repeat-x
}
.menuTblBl_tr {
	BACKGROUND-IMAGE: url(../images/menuTblBl_tr.jpg); WIDTH: 18px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 34px
}
.menuTbl_tl {
	BACKGROUND-IMAGE: url(../images/menuTbl_tl.jpg); WIDTH: 14px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 34px
}
.menuTbl_t {
	BACKGROUND-IMAGE: url(../images/menuTbl_t.jpg); COLOR: #ffffff; =
BACKGROUND-REPEAT: repeat-x
}
.menuTbl_tr {
	BACKGROUND-IMAGE: url(../images/menuTbl_tr.jpg); WIDTH: 18px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 34px
}
.menuTbl_l {
	BACKGROUND-IMAGE: url(../images/menuTbl_l.jpg); BACKGROUND-REPEAT: =
repeat-y
}
.menuTbl_r {
	BACKGROUND-IMAGE: url(../images/menuTbl_r.jpg); BACKGROUND-REPEAT: =
repeat-y
}
.menuTbl_bl {
	BACKGROUND-IMAGE: url(../images/menuTbl_bl.jpg); WIDTH: 14px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 20px
}
.menuTbl_b {
	BACKGROUND-IMAGE: url(../images/menuTbl_b.jpg); BACKGROUND-REPEAT: =
repeat-x
}
.menuTbl_br {
	BACKGROUND-IMAGE: url(../images/menuTbl_br.jpg); WIDTH: 18px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 20px
}

------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: text/css;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://exposureroom.com/stylesheets/exrContainers.css

.containerTbl {
	BACKGROUND-COLOR: #1a1a1a; TEXT-ALIGN: left
}
.containerTbl_tl {
	BACKGROUND-IMAGE: url(../images/containerTbl_tl.jpg); WIDTH: 10px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 10px
}
.containerTbl_t {
	BACKGROUND-IMAGE: url(../images/containerTbl_t.jpg); COLOR: #ffffff; =
BACKGROUND-REPEAT: repeat-x
}
.containerTbl_tr {
	BACKGROUND-IMAGE: url(../images/containerTbl_tr.jpg); WIDTH: 16px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 10px
}
.containerTbl_l {
	BACKGROUND-IMAGE: url(../images/containerTbl_l.jpg); BACKGROUND-REPEAT: =
repeat-y
}
.containerTbl_r {
	BACKGROUND-IMAGE: url(../images/containerTbl_r.jpg); BACKGROUND-REPEAT: =
repeat-y
}
.containerTbl_bl {
	BACKGROUND-IMAGE: url(../images/containerTbl_bl.jpg); WIDTH: 10px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 17px
}
.containerTbl_b {
	BACKGROUND-IMAGE: url(../images/containerTbl_b.jpg); BACKGROUND-REPEAT: =
repeat-x
}
.containerTbl_br {
	BACKGROUND-IMAGE: url(../images/containerTbl_br.jpg); WIDTH: 16px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 17px
}
.rndTbl {
	BACKGROUND-COLOR: #2a2a2a
}
.rndTbl_tl {
	BACKGROUND-IMAGE: url(../images/rndTbl_tl.jpg); WIDTH: 15px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.rndTbl_t {
	BACKGROUND-IMAGE: url(../images/rndTbl_t.jpg); BACKGROUND-REPEAT: =
repeat-x
}
.rndTbl_tr {
	BACKGROUND-IMAGE: url(../images/rndTbl_tr.jpg); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.rndTbl_l {
	BACKGROUND-IMAGE: url(../images/rndTbl_l.jpg); BACKGROUND-REPEAT: =
repeat-y
}
.rndTbl_r {
	BACKGROUND-IMAGE: url(../images/rndTbl_r.jpg); BACKGROUND-REPEAT: =
repeat-y
}
.rndTbl_bl {
	BACKGROUND-IMAGE: url(../images/rndTbl_bl.jpg); WIDTH: 15px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 23px
}
.rndTbl_b {
	BACKGROUND-IMAGE: url(../images/rndTbl_b.jpg); BACKGROUND-REPEAT: =
repeat-x
}
.rndTbl_br {
	BACKGROUND-IMAGE: url(../images/rndTbl_br.jpg); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 23px
}
.rndTblDrBl {
	BACKGROUND-COLOR: #1a1a1a
}
.rndTblDrBl_tl {
	BACKGROUND-IMAGE: url(../images/rndTblDrBl_tl.jpg); WIDTH: 16px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 50px
}
.rndTblDrBl_t {
	BACKGROUND-IMAGE: url(../images/rndTblDrBl_t.jpg); BACKGROUND-REPEAT: =
repeat-x
}
.rndTblDrBl_tr {
	BACKGROUND-IMAGE: url(../images/rndTblDrBl_tr.jpg); WIDTH: 14px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 50px
}
.rndTblDrBl_l {
	BACKGROUND-IMAGE: url(../images/rndTblDrBl_l.jpg); BACKGROUND-REPEAT: =
repeat-y
}
.rndTblDrBl_r {
	BACKGROUND-IMAGE: url(../images/rndTblDrBl_r.jpg); BACKGROUND-REPEAT: =
repeat-y
}
.rndTblDrBl_bl {
	BACKGROUND-IMAGE: url(../images/rndTblDrBl_bl.jpg); WIDTH: 16px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 14px
}
.rndTblDrBl_b {
	BACKGROUND-IMAGE: url(../images/rndTblDrBl_b.jpg); BACKGROUND-REPEAT: =
repeat-x
}
.rndTblDrBl_br {
	BACKGROUND-IMAGE: url(../images/rndTblDrBl_br.jpg); WIDTH: 14px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 14px
}
.probTbl_tl {
	BACKGROUND-IMAGE: url(../images/probTbl_tl.jpg); WIDTH: 45px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 38px
}
.probTbl_t {
	BACKGROUND-IMAGE: url(../images/probTbl_t.jpg); BACKGROUND-REPEAT: =
repeat-x
}
.probTbl_tr {
	BACKGROUND-IMAGE: url(../images/probTbl_tr.jpg); WIDTH: 16px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 38px
}
.probTbl_l {
	BACKGROUND-IMAGE: url(../images/probTbl_l.jpg); BACKGROUND-REPEAT: =
repeat-y
}
.probTbl_r {
	BACKGROUND-IMAGE: url(../images/probTbl_r.jpg); BACKGROUND-REPEAT: =
repeat-y
}
.probTbl_bl {
	BACKGROUND-IMAGE: url(../images/probTbl_bl.jpg); WIDTH: 45px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 17px
}
.probTbl_b {
	BACKGROUND-IMAGE: url(../images/probTbl_b.jpg); BACKGROUND-REPEAT: =
repeat-x
}
.probTbl_br {
	BACKGROUND-IMAGE: url(../images/probTbl_br.jpg); WIDTH: 16px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 17px
}
.grdTblGray {
	BACKGROUND-COLOR: #1a1a1a
}
.grdTblGray_tl {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Gray_tl.png); WIDTH: 17px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.grdTblGray_t {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Gray_t.png); =
BACKGROUND-REPEAT: repeat-x
}
.grdTblGray_tr {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Gray_tr.png); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.grdTblGray_l {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Gray_l.png); =
BACKGROUND-REPEAT: repeat-y
}
.grdTblGray_r {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Gray_r.png); =
BACKGROUND-REPEAT: repeat-y
}
.grdTblGray_bl {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Gray_bl.png); WIDTH: 17px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px
}
.grdTblGray_b {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Gray_b.png); =
BACKGROUND-REPEAT: repeat-x
}
.grdTblGray_br {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Gray_br.png); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px
}
.grdTblGreen {
	BACKGROUND-COLOR: #07300c
}
.grdTblGreen_tl {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Green_tl.png); WIDTH: 17px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.grdTblGreen_t {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Green_t.png); =
BACKGROUND-REPEAT: repeat-x
}
.grdTblGreen_tr {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Green_tr.png); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.grdTblGreen_l {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Green_l.png); =
BACKGROUND-REPEAT: repeat-y
}
.grdTblGreen_r {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Green_r.png); =
BACKGROUND-REPEAT: repeat-y
}
.grdTblGreen_bl {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Green_bl.png); WIDTH: 17px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px
}
.grdTblGreen_b {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Green_b.png); =
BACKGROUND-REPEAT: repeat-x
}
.grdTblGreen_br {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Green_br.png); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px
}
.grdTblMaroon {
	BACKGROUND-COLOR: #301107
}
.grdTblMaroon_tl {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Maroon_tl.png); WIDTH: 17px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.grdTblMaroon_t {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Maroon_t.png); =
BACKGROUND-REPEAT: repeat-x
}
.grdTblMaroon_tr {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Maroon_tr.png); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.grdTblMaroon_l {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Maroon_l.png); =
BACKGROUND-REPEAT: repeat-y
}
.grdTblMaroon_r {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Maroon_r.png); =
BACKGROUND-REPEAT: repeat-y
}
.grdTblMaroon_bl {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Maroon_bl.png); WIDTH: 17px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px
}
.grdTblMaroon_b {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Maroon_b.png); =
BACKGROUND-REPEAT: repeat-x
}
.grdTblMaroon_br {
	BACKGROUND-IMAGE: url(../images/GrdTitle_Maroon_br.png); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px
}
.grdTblDrkGreen {
	BACKGROUND-COLOR: #313e1a
}
.grdTblDrkGreen_tl {
	BACKGROUND-IMAGE: url(../images/GrdTitle_DrkGreen_tl.png); WIDTH: 17px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.grdTblDrkGreen_t {
	BACKGROUND-IMAGE: url(../images/GrdTitle_DrkGreen_t.png); =
BACKGROUND-REPEAT: repeat-x
}
.grdTblDrkGreen_tr {
	BACKGROUND-IMAGE: url(../images/GrdTitle_DrkGreen_tr.png); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.grdTblDrkGreen_l {
	BACKGROUND-IMAGE: url(../images/GrdTitle_DrkGreen_l.png); =
BACKGROUND-REPEAT: repeat-y
}
.grdTblDrkGreen_r {
	BACKGROUND-IMAGE: url(../images/GrdTitle_DrkGreen_r.png); =
BACKGROUND-REPEAT: repeat-y
}
.grdTblDrkGreen_bl {
	BACKGROUND-IMAGE: url(../images/GrdTitle_DrkGreen_bl.png); WIDTH: 17px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px
}
.grdTblDrkGreen_b {
	BACKGROUND-IMAGE: url(../images/GrdTitle_DrkGreen_b.png); =
BACKGROUND-REPEAT: repeat-x
}
.grdTblDrkGreen_br {
	BACKGROUND-IMAGE: url(../images/GrdTitle_DrkGreen_br.png); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px
}
.rndTbl_grey {
	BACKGROUND-COLOR: #1a1a1a
}
.rndTbl_grey_tl {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_tl.jpg); WIDTH: 15px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.rndTbl_grey_t {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_t.jpg); BACKGROUND-REPEAT: =
repeat-x
}
.rndTbl_grey_tr {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_tr.jpg); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.rndTbl_grey_l {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_l.jpg); BACKGROUND-REPEAT: =
repeat-y
}
.rndTbl_grey_r {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_r.jpg); BACKGROUND-REPEAT: =
repeat-y
}
.rndTbl_grey_bl {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_bl.jpg); WIDTH: 15px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 23px
}
.rndTbl_grey_b {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_b.jpg); BACKGROUND-REPEAT: =
repeat-x
}
.rndTbl_grey_br {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_br.jpg); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 23px
}
.rndTbl_grey_Flat {
	BACKGROUND-COLOR: #1f1f1f
}
.rndTbl_grey_Flat_tl {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_Flat_tl.jpg); WIDTH: 15px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.rndTbl_grey_Flat_t {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_Flat_t.jpg); =
BACKGROUND-REPEAT: repeat-x
}
.rndTbl_grey_Flat_tr {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_Flat_tr.jpg); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.rndTbl_grey_Flat_l {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_Flat_l.jpg); =
BACKGROUND-REPEAT: repeat-y
}
.rndTbl_grey_Flat_r {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_Flat_r.jpg); =
BACKGROUND-REPEAT: repeat-y
}
.rndTbl_grey_Flat_bl {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_Flat_bl.jpg); WIDTH: 15px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 23px
}
.rndTbl_grey_Flat_b {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_Flat_b.jpg); =
BACKGROUND-REPEAT: repeat-x
}
.rndTbl_grey_Flat_br {
	BACKGROUND-IMAGE: url(../images/rndTbl_grey_Flat_br.jpg); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 23px
}
.rndTbl_simple {
	BACKGROUND-COLOR: #1a1a1a
}
.rndTbl_simple_tl {
	BACKGROUND-IMAGE: url(../images/rndTbl_simple_tl.jpg); WIDTH: 15px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.rndTbl_simple_t {
	BACKGROUND-IMAGE: url(../images/rndTbl_simple_t.jpg); =
BACKGROUND-REPEAT: repeat-x
}
.rndTbl_simple_tr {
	BACKGROUND-IMAGE: url(../images/rndTbl_simple_tr.jpg); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 51px
}
.rndTbl_simple_l {
	BACKGROUND-IMAGE: url(../images/rndTbl_simple_l.jpg); =
BACKGROUND-REPEAT: repeat-y
}
.rndTbl_simple_r {
	BACKGROUND-IMAGE: url(../images/rndTbl_simple_r.jpg); =
BACKGROUND-REPEAT: repeat-y
}
.rndTbl_simple_bl {
	BACKGROUND-IMAGE: url(../images/rndTbl_simple_bl.jpg); WIDTH: 15px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 23px
}
.rndTbl_simple_b {
	BACKGROUND-IMAGE: url(../images/rndTbl_simple_b.jpg); =
BACKGROUND-REPEAT: repeat-x
}
.rndTbl_simple_br {
	BACKGROUND-IMAGE: url(../images/rndTbl_simple_br.jpg); WIDTH: 23px; =
BACKGROUND-REPEAT: no-repeat; HEIGHT: 23px
}

------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://exposureroom.com/JavaScripts/Hsi.js

=EF=BB=BF/******************************************************/
/* Core functions                                     */
/******************************************************/
  function createXmlHttp() {
    if (typeof XMLHttpRequest !=3D "undefined")
      return new XMLHttpRequest();
    else if (typeof window.ActiveXObject !=3D "undefined") {
      var progIDs =3D [ 'Msxml2.XMLHTTP.6.0', 'Msxml2.XMLHTTP.3.0'];
      for (var i =3D 0; i < progIDs.length; i++) {
        try {
          var xmlDoc =3D new ActiveXObject(progIDs[i]);
          return xmlDoc;
        }
        catch (ex) {
        }
      }
    }
  }
 =20
  function createNewXMLDoc() {
    var xmlDoc =3D null;
    if (window.ActiveXObject) {
      var progIDs =3D [ 'Msxml2.DOMDocument.6.0', =
'Msxml2.DOMDocument.3.0'];
      for (var i =3D 0; i < progIDs.length; i++) {
        try {
          var xmlDoc =3D new ActiveXObject(progIDs[i]);
          xmlDoc.setProperty("SelectionLanguage", "XPath");
          xmlDoc.async =3D false;
          break;
        }
        catch (ex) {
        }
      }
    }
    else if (document.implementation && =
document.implementation.createDocument) {
      xmlDoc =3D document.implementation.createDocument("","",null);
      xmlDoc.async =3D false;
    }
    return xmlDoc;
  }
 =20
  function getXmlDocumentFromXMLString(xmlData) {
    var xmlDoc =3D null;
    if (window.ActiveXObject) {
      xmlDoc =3D createNewXMLDoc();
      xmlDoc.loadXML(xmlData);
      return xmlDoc;
    }
    else {
      return new DOMParser().parseFromString(xmlData, "text/xml");
    }
  }

  function getUniqueUrlAddOn(url) {
    var d =3D new Date();
    addon =3D d.getHours().toString() + d.getMinutes().toString() + =
d.getSeconds().toString() + d.getMilliseconds().toString();
    if (url.indexOf('?') =3D=3D -1)
      return url + '?uua=3D' + addon;
    else
      return url + '&uua=3D' + addon;
  }
 =20
  function httpRequestGET(url, data){
    var httpObj =3D createXmlHttp();
    url =3D getUniqueUrlAddOn(url);
    httpObj.open("GET", url, false);
    httpObj.setRequestHeader("Content-Type",  =
"application/x-www-form-urlencoded");
    httpObj.send(data);
    if (httpObj.status =3D=3D 200) {
      return httpObj.responseText;
    }
    else {
      throw httpObj.responseText;
    }
  }
 =20
  function asynchHttpRequestGET(url, data, asynchCallBack, =
excepCallBack) {
    var httpObj =3D createXmlHttp();
    url =3D getUniqueUrlAddOn(url);
    var asynchState =3D null;
    if (arguments.length > 4) {
      asynchState =3D new Array();
      for (i =3D 4; i < arguments.length; i++)
        asynchState.push(arguments[i]);
    }   =20
    httpObj.onreadystatechange =3D function(){           =20
      if (httpObj.readyState =3D=3D 4) {               =20
        if (httpObj.status =3D=3D 200)
          asynchCallBack(httpObj, asynchState);
        else {
          if (excepCallBack !=3D null)
            excepCallBack(httpObj, asynchState);
          else
            alert(httpObj.responseText);
        }
      }
    }
    httpObj.open("GET", url, true);
    httpObj.setRequestHeader("Content-Type", =
"application/x-www-form-urlencoded");
    httpObj.send(data);
  } =20

  function httpRequestPOST(url, data){
    var httpObj =3D createXmlHttp();
    url =3D getUniqueUrlAddOn(url);
    httpObj.open("POST", url, false);
    httpObj.setRequestHeader("Content-Type", =
"application/x-www-form-urlencoded");
    httpObj.send(data);
    if (httpObj.status =3D=3D 200) {
      return httpObj.responseText;
    }
    else {
      throw httpObj.responseText
    }
  }
 =20
  function asynchHttpRequestPOST(url, data, asynchCallBack, =
excepCallBack) {
    var httpObj =3D createXmlHttp();
    url =3D getUniqueUrlAddOn(url);
    var asynchState =3D null;
    if (arguments.length > 4) {
      asynchState =3D new Array();
      for (i =3D 4; i < arguments.length; i++)
        asynchState.push(arguments[i]);
    }
    httpObj.onreadystatechange =3D function(){
      if (httpObj.readyState =3D=3D 4) {       =20
        if (httpObj.status =3D=3D 200)
          asynchCallBack(httpObj, asynchState);
        else {
          if (excepCallBack !=3D null)
            excepCallBack(httpObj, asynchState);
          else
            alert(httpObj.responseText);
        }
      }
    }
    httpObj.open("POST", url, true);
    httpObj.setRequestHeader("Content-Type", =
"application/x-www-form-urlencoded");
    httpObj.send(data);
  }
 =20
/* Core Functions */ =20
/******************************************************/
 =20
/******************************************************/
/*  Helper functions                                  */
/******************************************************/
  /* Given a certain element, this method will return it's parent whose =
id matches the idOfParent parameter */
  function getParentControlById(ctrl, idOfParent) {
    var node =3D ctrl.parentNode;
    while (node !=3D null) {
      if (node.id =3D=3D idOfParent)
        return node;
      node =3D node.parentNode;
    }       =20
  }
     =20
  /* this method accumulates all children having a name attribute into =
the "children" global Array */
  /*  ctrl: The parent Element whose child controls need to be found. */
  /*  children: An Array */
  /*  iterateDelegate: a delegate that is called for each child control =
found. */
  function getChildControls(ctrl, children, iterateDelegate) {
    var i =3D 0;
    var ln =3D ctrl.childNodes.length;
    for (i =3D 0; i < ln; i++) {
      var childNode =3D ctrl.childNodes[i];
      if (!iterateDelegate(childNode, children))
        return;
      if (childNode.hasChildNodes())
        getChildControls(childNode, children, iterateDelegate);
    }
  }
  /* This is a callback method used to accumulate only child controls =
that have a valid name attribute (used for submitting purposes */
  function addControlsWithNameAttributeOnly(node, children) {
    if (typeof node.name !=3D "undefined" && node.name.length > 0)
      children.push(node);
    return true;
  }
 =20
  /* Given a certain element, this method will return all children of =
the "containing" parent identified by the idOfParent parameter  */ =20
  function getChildControlsOfParent(ctrl, idOfParent, iterateDelegate) {
    var children =3D new Array();
    var parentNode =3D getParentControlById(ctrl, idOfParent);
    getChildControls(parentNode, children, iterateDelegate);
    return children;
  }
 =20
  /* It is assumed that the "parameters" in question are attributes =
whose names start with an underscore character */
  /* This method returns a name value string of all such attriutes of =
the given control */
  function getParameterAttributesOfControlAsNameValue(ctrl) {
    var paramNameValues =3D "";
    var attributes =3D ctrl.attributes;       =20
    var ln =3D attributes.length;
    var i =3D 0;
    for (i =3D 0; i < ln; i++) {
      var attrib =3D attributes[i];
      if (attrib.name.indexOf("_") =3D=3D 0)
        paramNameValues +=3D attrib.name.substring(1, =
attrib.name.length) + "=3D" + attrib.value + "&";
    }=20
    if (paramNameValues.length > 0)
      paramNameValues =3D paramNameValues.substring(0, =
paramNameValues.length -1);
    return paramNameValues;      =20
  }
 =20
  /* This method returns a POST-able string containing name=3Dvalue =
pairs of all controls in the array  */
  function getNameValuesOfControls(ctrlArray) {
    var data =3D "";
    var ln =3D ctrlArray.length;
    for (i =3D 0; i < ln; i ++ ) {
      var element =3D ctrlArray[i];
      var elementName =3D =
extractFieldNameFromASPNETStyleName(element.name);
      if (element.tagName =3D=3D "INPUT" && elementName !=3D =
"__VIEWSTATE" && elementName !=3D "__EVENTVALIDATION") {
        if (element.type =3D=3D "hidden" || element.type =3D=3D "text" =
|| element.type =3D=3D "password")
          data +=3D elementName + "=3D" + =
encodeURIComponent(element.value) + "&";
        else if ((element.type =3D=3D "radio" || element.type =3D=3D =
"checkbox") && element.checked)
          data +=3D elementName + "=3D" + element.value + "&";
      }
      else if (element.tagName =3D=3D "SELECT" && element.options.length =
!=3D 0)=20
        data +=3D elementName + "=3D" + =
element.options[element.selectedIndex].value + "&";
      else if (element.tagName =3D=3D "TEXTAREA")=20
        data +=3D elementName + "=3D" + =
encodeURIComponent(element.value) + "&";
    }
    data =3D data.substring(0, data.length-1);
    return data;
  }
  /* ASP.NET controls may have "names" that are essentially =
concatenations of their parent ASP.NET controls. */
  /* For the purposes of POSTing to the server we only need the last =
part of the name (the part after the last "$" sign OR "___") */
  function extractFieldNameFromASPNETStyleName(ctrlName) {
    var lastIndex =3D ctrlName.lastIndexOf("$");   =20
    if (lastIndex !=3D -1)
      return ctrlName.substring(lastIndex + 1, ctrlName.length);
    lastIndex =3D ctrlName.lastIndexOf("___");
    if (lastIndex !=3D -1)
      return ctrlName.substring(lastIndex + 3, ctrlName.length);
    return ctrlName;
  }
  /* This is a callback method used to find the "errorNode" (an element =
whose id =3D "err") child element of the "container" */
  function getErrElementChildOfParent(node, children) {
    if (node.id =3D=3D "err") {
      children.push(node);
      return false;
    }
    else
      return true;
  }
  /* This method return the "erroNode" (an element whose id =3D "err") =
child element of the container whose id =3D idOfParent */
  function getErrorDisplayElementOfParent(childCtrl, idOfParent) {
    var parentNode =3D getParentControlById(childCtrl, idOfParent);
    var children =3D new Array();
    getChildControls(parentNode, children, getErrElementChildOfParent);
    if (children.length =3D=3D 1)
      return children[0];
    else
      return null;
  }
 =20
  /* This is a Generic method that displays validation error messages in =
"errorNode". */
  /* Assumptions:
                  The "errorNode" is a <table> that has no row in the =
TBODY section of the table.
                  The controls in the ctrlsArray parameter
                  have the following attribute values set:
                                                           errFieldName =
- The user friendly filed name
                                                           errMsg - the =
Error Message to display in the case of an invalid field value
                                                           canSubmit - a =
boolean value indicating whether the data in teh control is valid or =
not.
  */
  function displayErrorMessages(ctrlsArray, errorNode) {
    var hasErrors =3D false;
    for(i =3D errorNode.rows.length; i > 1; i--)
      errorNode.deleteRow(errorNode.rows.length -1);
    for (var i =3D 0; i < ctrlsArray.length; i++) {
      var ctrl =3D ctrlsArray[i];
      var canSubmit =3D ctrl.getAttribute("canSubmit");
      if (canSubmit =3D=3D "false" || canSubmit =3D=3D false) {
        hasErrors =3D true;
        changeBgColor(ctrl, false);
        var row =3D errorNode.insertRow(-1);
        var cell =3D row.insertCell(-1);
        cell.innerHTML =3D "<b>" + ctrl.getAttribute("errFieldName") + =
"</b>:";
        cell =3D row.insertCell(-1);
        cell.innerHTML =3D ctrl.getAttribute("errMsg");
      }
    }
    if (hasErrors) {
      errorNode.style.visibility =3D "visible";
      errorNode.style.display =3D "block";     =20
    }
    else {
      errorNode.style.visibility =3D "hidden";
      errorNode.style.display =3D "none";     =20
    }
  }
 =20
  /* This is a Generic validation method that iterates over all the =
controls in the ctrlaArray. If all validation methods return true, this =
method returns true otherwise it returns false. */
  /* Assumptions: */
  /*              The controls that need to be validated have a =
"required" attribute.=20
                  The controls that have a required attribute also have =
a "validate" attribute whose value is set to the name of a javascript =
(validation) method.
                  The "validation" method expects the control as a =
parameter.
                  The "validation" method returns true or false to =
indicate if the data in the control is valid or not.
  */
  function validateContainerControls(ctrlsArray, errorNode) {
    var canSubmit =3D true;
    for (var i =3D 0; i < ctrlsArray.length; i++) {
      var ctrl =3D ctrlsArray[i];
      if (ctrl.getAttribute("required") && =
ctrl.getAttribute("required").length > 0 && =
(ctrl.getAttribute("required") !=3D "false" || =
ctrl.getAttribute("required") !=3D "False")) {
        if (ctrl.getAttribute("validate")) {  =20
          var isValid =3D eval(ctrl.getAttribute("validate") + =
"(ctrl);");
          if (!isValid)
            canSubmit =3D false;
        }           =20
      }
    }
    displayErrorMessages(ctrlsArray, errorNode);
    return canSubmit;
  }
 =20
  /* This method is used to "submit" a container element (such as =
<table>, <div> etc. */
  /* Essentially, this method finds all child elements of container that =
have a valid name attribute, constructs a POST packet */
  /* and POSTs the data to the url specified. If successful it returns =
response for the server (if any) otherwise displays the server side =
error and returns null */
  /*
    childCtrl         : Typically a button or hyperlink control that is =
a child of the "container" whose children need to be submitted
    idOfParent        : Given the child element (childCtrl) this method =
finds the containing "parent" whose id attribute =3D idOfParent
    validateCallback  : Before submitting the data this method will call =
the validateCallback callback method allowing for validation
                        prior to submitting the data. If this callback =
returns false, the data is not submitted.
                     =20
    validateCallback method signature:
    submitableChildren: An array of controls that will be submitted.
    errorNode         : The error node (a <table> or <div> etc.) where =
in a collection of validation errors may be displayed.
  */ =20
  function submitContainer(childCtrl, idOfParent, validateCallback, url, =
asynchCallBack, asynchState) {
    var submitableChildren =3D getChildControlsOfParent(childCtrl, =
idOfParent, addControlsWithNameAttributeOnly);
    var validationResult =3D false;
    if (validateCallback !=3D null) {
      var errNode =3D getErrorDisplayElementOfParent(childCtrl, =
idOfParent);
      validationResult =3D validateCallback(submitableChildren, =
errNode);
    }
    if (validationResult) {
      /* pf: changed from "event.srcElement" to "childCtrl", since =
submitContainer may be called=20
         after javascript callback, in which case event.srcElement is =
not available */
      var data =3D getNameValuesOfControls(submitableChildren) + "&" + =
getParameterAttributesOfControlAsNameValue(childCtrl);     =20
      try {
        var result =3D httpRequestPOST(url, data);
        if (asynchCallBack !=3D null)
            asynchCallBack(result, asynchState);
        return true;
      }
      catch (e) {
        alert(e);
        return null;
      }
    }
  }
/*  Helper functions                                  */
/******************************************************/

------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://exposureroom.com/JavaScripts/HsiObjects.js

=EF=BB=BF  function CustomObject(objectNode) {
    var attributeNodes =3D objectNode.attributes;       =20
    for (var i =3D 0; i < attributeNodes.length; i++) {
      var attributeNode =3D attributeNodes[i];
      if (attributeNode.nodeName.indexOf("xmlns:") =3D=3D 0) continue;
      this[attributeNode.nodeName] =3D attributeNode.nodeValue;
    }     =20
  }
 =20
  CustomObject.prototype.toString =3D function() {=20
    var s =3D "";
    for(p in this)
      s +=3D p + "=3D" + this[p] + "| ";
    return s;
  }
 =20
  function CustomObjectArray(xmlDocument) {
    if (xmlDocument.documentElement.nodeName.indexOf("ArrayOf") !=3D 0) =
{
      alert("The nodeName of the \"documentElement\" of the xmlDocument =
MUST be of the form \"ArrayOfxxx\"");
      return;
    }   =20
    var objectNodes =3D xmlDocument.documentElement.childNodes;
    var i =3D 0;
    var objArray =3D new Array();
    for (i =3D 0; i < objectNodes.length; i++) {
      var objectNode =3D objectNodes[i];
      if (objectNode.nodeName !=3D "#text")
        objArray.push(new CustomObject(objectNode));
    }
    return objArray;
  }
 =20
  function DataRow(dataRowNode) {
    return new CustomObject(dataRowNode);
  }
 =20
  function DataTable(dataTableNode) {       =20
    var dataRowNodes =3D dataTableNode.childNodes;
    var i =3D 0;
    this.dataRows =3D new Array();           =20
    for (i =3D 0; i < dataRowNodes.length; i++) {
      var dataRowNode =3D dataRowNodes[i];
      if (dataRowNode.nodeName =3D=3D "dataRow")
        this.dataRows.push(new DataRow(dataRowNode));              =20
    }
  }
 =20
  DataTable.prototype.toString =3D function() {
    var s =3D "";
    var i =3D 0;
    for(i =3D 0; i < this.dataRows.length; i++)
      s +=3D this.dataRows[i].toString() + "\r\n";
    return s;
  }
 =20
  function DataSet(xmlDocument) {
    var dataTableNodes =3D =
xmlDocument.documentElement.childNodes;//selectNodes("//dataSet/dataTable=
");
    this.dataTables =3D new Array();
    var i =3D 0;
    for (i =3D 0; i < dataTableNodes.length; i++) {
      var dataTableNode =3D dataTableNodes[i];
      this.dataTables.push(new DataTable(dataTableNode));
    }
  }
 =20
  DataSet.prototype.toString =3D function() {
    var s =3D "";
    var i =3D 0;
    for(i =3D 0; i < this.dataTables.length; i++)
      s +=3D this.dataTables[i].toString() + "\r\n";
    return s;
  }
 =20
  function createObjectFromXml(xmlDocument) {
    if (xmlDocument.documentElement.nodeName =3D=3D "dataSet")
      return new DataSet(xmlDocument);
    else if (xmlDocument.documentElement.nodeName.indexOf("ArrayOf") =
=3D=3D 0)
      return new CustomObjectArray(xmlDocument);
    else
      return new CustomObject(xmlDocument.documentElement);   =20
  }



------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://exposureroom.com/JavaScripts/SwapAssetDivVisibility.js

=EF=BB=BF  function swapTabDivVisibility (span) {
    var pNode =3D span.parentNode;   =20
    for (var i=3D0; i < pNode.childNodes.length; i++) {
      if (pNode.childNodes[i].tagName =3D=3D "SPAN"){
        var tempSpan =3D pNode.childNodes[i];
        var divId =3D tempSpan.getAttribute("tab");
        var div =3D document.getElementById(divId);
        if (tempSpan.id =3D=3D span.id) {
          tempSpan.className =3D "xrSectionMenuSelected";
          div.style.display =3D "block";
          opacity(div.id, 0, 100, 200);
          tempSpan.state=3D"on"
        }
        else {
          tempSpan.className =3D "xrSectionMenu";
          div.style.display =3D "none";
          changeOpac(0, div.id);
          tempSpan.state=3D"off"
        }
      }
    }
  }
 =20
 =20
  function swapAssetDivVisibility (img, tabConDov, tabSheetConDiv) {
    var duration =3D 800;
    if (navigator.appName.indexOf("Microsoft") > -1)
      duration =3D 200;
     =20
    var tabContainerDiv =3D document.getElementById(tabConDov);
    for(var i =3D 0; i < tabContainerDiv.childNodes.length; i++)
      if (tabContainerDiv.childNodes[i].tagName !=3D undefined && =
tabContainerDiv.childNodes[i].tagName =3D=3D "IMG") {
        if (tabContainerDiv.childNodes[i].id =3D=3D img.id) {
          img.src =3D imageFolder + =
tabContainerDiv.childNodes[i].getAttribute("onImg");
        }
        else
          tabContainerDiv.childNodes[i].src =3D imageFolder + =
tabContainerDiv.childNodes[i].getAttribute("offImg");
      }
   =20
     =20
    var assocTabSheetDivId =3D img.getAttribute("tabSheet");
    var tabSheetContainerDiv =3D =
document.getElementById(tabSheetConDiv);
   =20
    for(var i =3D 0; i < tabSheetContainerDiv.childNodes.length; i++)
      if (tabSheetContainerDiv.childNodes[i].tagName !=3D undefined && =
tabSheetContainerDiv.childNodes[i].tagName =3D=3D "DIV")
        tabSheetContainerDiv.childNodes[i].style.display =3D "none";
     =20
    for(var i =3D 0; i < tabSheetContainerDiv.childNodes.length; i++) {
      if (tabSheetContainerDiv.childNodes[i].id =3D=3D =
assocTabSheetDivId) {
        if (tabSheetContainerDiv.childNodes[i].tagName !=3D undefined && =
tabSheetContainerDiv.childNodes[i].tagName =3D=3D "DIV") {
          tabSheetContainerDiv.childNodes[i].style.display =3D "block";
          opacity(assocTabSheetDivId, 0, 100, duration);
        }
      }
      else {
        if (tabSheetContainerDiv.childNodes[i].tagName !=3D undefined && =
tabSheetContainerDiv.childNodes[i].tagName =3D=3D "DIV")
          changeOpac(0, tabSheetContainerDiv.childNodes[i].id);
      }     =20
    }
  }
 =20
  function swapPrimaryTabs(item) {
    var duration =3D 800;
    if (navigator.appName.indexOf("Microsoft") > -1)
      duration =3D 200;
   =20
    var itemType =3D item.getAttribute("type");
    if (itemType =3D=3D "tab") {
      var parentNode =3D item.parentNode;
      for (i =3D 0; i < parentNode.childNodes.length; i++) {
        if (parentNode.childNodes[i].tagName !=3D undefined) {
          if (parentNode.childNodes[i].getAttribute("type") =3D=3D =
"tab") {
            if (parentNode.childNodes[i] =3D=3D item) {
              parentNode.childNodes[i].className =3D =
parentNode.getAttribute("onStyle");
              parentNode.childNodes[i].state =3D "on";
            }
            else {
              parentNode.childNodes[i].className =3D =
parentNode.getAttribute("offStyle");             =20
              parentNode.childNodes[i].state =3D "off";
            }
          }
        }
      }       =20
    }
   =20
    var assocTabSheetId =3D item.getAttribute("assocTabSheetId");
    var tabSheetContainerId =3D =
item.getAttribute("tabSheetContainerId");
    var assocTabSheet =3D document.getElementById(assocTabSheetId);
    var tabSheetContainer =3D =
document.getElementById(tabSheetContainerId);
    for (i =3D 0; i < tabSheetContainer.childNodes.length; i++) {
      if (tabSheetContainer.childNodes[i].tagName !=3D undefined) {
        if (tabSheetContainer.childNodes[i] !=3D item) {
          tabSheetContainer.childNodes[i].style.display =3D "none";      =
     =20
        }
      }
    }
    changeOpac(0, assocTabSheetId);
    assocTabSheet.style.display =3D "block";
    opacity(assocTabSheetId, 0, 100, duration);
  }
 =20
  function swapSecondaryTabs(item) {
    if (item.clientHeight < item.scrollHeight)
    var duration =3D 800;
    if (navigator.appName.indexOf("Microsoft") > -1)
      duration =3D 200;   =20
    var assocTabSheetId =3D item.getAttribute("assocTabSheetId");
    var tabSheetContainerId =3D =
item.getAttribute("tabSheetContainerId");
    var assocTabSheet =3D document.getElementById(assocTabSheetId);
    var tabSheetContainer =3D =
document.getElementById(tabSheetContainerId);
    for (i =3D 0; i < tabSheetContainer.childNodes.length; i++) {
      if (tabSheetContainer.childNodes[i].tagName !=3D undefined) {
        if (tabSheetContainer.childNodes[i].id !=3D assocTabSheetId) {
          tabSheetContainer.childNodes[i].style.display =3D "none";      =
     =20
        }
      }
    }
    changeOpac(0, assocTabSheetId);
    assocTabSheet.style.display =3D "block";
    opacity(assocTabSheetId, 0, 100, duration);
  } =20
=20
 =20
  function opacity(id, opacStart, opacEnd, millisec) {
	  //speed for each frame
	  var speed =3D Math.round(millisec / 100);	 =20
	  var timer =3D 0;

	  //determine the direction for the blending, if start and end are the =
same nothing happens
	  if(opacStart > opacEnd) {
		  for(i =3D opacStart; i >=3D opacEnd; i--) {
			  timerId =3D setTimeout("changeOpac(" + i + ",'" + id + "')",(timer =
* speed));
			  timer++;
		  }
	  } else if(opacStart < opacEnd) {
		  for(i =3D opacStart; i <=3D opacEnd; i++)
			  {
			  timerId =3D setTimeout("changeOpac(" + i + ",'" + id + "')",(timer =
* speed));
			  timer++;
		  }
	  }
  }

  //change the opacity for different browsers
  function changeOpac(opacity, id) {
	  var object =3D document.getElementById(id).style;=20
	  object.opacity =3D (opacity / 100);
	  object.MozOpacity =3D (opacity / 100);
	  object.KhtmlOpacity =3D (opacity / 100);
	  object.filter =3D =
"progid:DXImageTransform.Microsoft.Alpha(opacity=3D" + opacity + ")";
  }

  function shiftOpacity(id, millisec) {
	  //if an element is invisible, make it visible, else make it invisible
	  if(document.getElementById(id).style.opacity =3D=3D 0) {
		  opacity(id, 0, 100, millisec);
	  } else {
		  opacity(id, 100, 0, millisec);
	  }
  }

  function currentOpac(id, opacEnd, millisec) {
	  //standard opacity is 100
	  var currentOpac =3D 100;
  =09
	  //if the element has an opacity set, get it
	  if(document.getElementById(id).style.opacity < 100) {
		  currentOpac =3D document.getElementById(id).style.opacity * 100;
	  }

	  //call for the function that changes the opacity
	  opacity(id, currentOpac, opacEnd, millisec)
  } =20

------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://exposureroom.com/JavaScripts/Validation.js

=EF=BB=BF/***************************************************************=
***/
/**************** Data Validation Helper Methods ******************/
/******************************************************************/
  var hsiFolder =3D "";
  var imagesFolder =3D "";
 =20
  function trim(str){
    if(str.length =3D=3D 0)
      return"";
    str =3D rTrim(str);
    str =3D lTrim(str);
    if(str.length =3D=3D 0)
      return "";
    else
      return str;
  }
  function rTrim(str){
    var w_space =3D String.fromCharCode(32);
    var v_length =3D str.length;
    var strTemp =3D "";
    if(v_length < 0)
      return "";
    var iTemp =3D v_length -1;
    while(iTemp > -1){
      if(str.charAt(iTemp) =3D=3D w_space) {
      }
      else {
        strTemp =3D str.substring(0, iTemp +1);
        break;
      }
      iTemp =3D iTemp -1;
    }
    return strTemp;
  }

  function lTrim(str){
    var w_space =3D String.fromCharCode(32);
    if(v_length < 1)
      return "";
    var v_length =3D str.length;
    var strTemp =3D "";
    var iTemp =3D 0;
    while(iTemp < v_length){
      if(str.charAt(iTemp) =3D=3D w_space) {
      }
      else {
        strTemp =3D str.substring(iTemp,v_length);
        break;
      }
      iTemp =3D iTemp + 1;
    }
    return strTemp;
  }
 =20
  var dtSep =3D "/";
  var minYear =3D 1900;
  var maxYear =3D 2100;

  function DaysInMonth() {
    for(var i =3D 1; i <=3D 12; i++) {
      switch (i) {
        case 1:
        case 3:
        case 5:
        case 7:
        case 8:
        case 10:
        case 12:
          this[i] =3D 31;
          break;
        case 4:
        case 6:
        case 9:
        case 11:
          this[i] =3D 30;
          break;
        case 2:
          this[i] =3D 29;
          break;
      }
    }
  }
 =20
  function hasInvalidChars(dateStr) {
    var invalidChars =3D false;
    for(var i =3D 0; i < dateStr.length; i++) {
      var c =3D dateStr.charAt(i);
      switch (c) {
        case "1":
        case "2":
        case "3":
        case "4":
        case "5":
        case "6":
        case "7":
        case "8":
        case "9":
        case "0":
        case dtSep:       =20
          break;
        default:
          invalidChars =3D true;
          break;
      }
    }
    return invalidChars;
  }
 =20
  function isLeapYear(yr) {
    return ((yr % 4 =3D=3D 0) && ((!(yr % 100 =3D=3D 0)) || (yr % 400 =
=3D=3D 0))) ? true : false;
  }

  function isDateValid(dateStr, errObj) {       =20
    if (hasInvalidChars(dateStr)) {
      errObj.msg =3D "The Date Entered has some invalid Characters";
      return false;
    }
    if (dateStr =3D=3D null || dateStr.length =3D=3D 0) {
      errObj.msg =3D "Please Enter a Valid Date";
      return false;
    }   =20
    var monthSepPos =3D dateStr.indexOf(dtSep);
    var daySepPos =3D dateStr.indexOf(dtSep, monthSepPos + 1);
    if (monthSepPos =3D=3D -1 || daySepPos =3D=3D -1 || daySepPos - =
monthSepPos =3D=3D 1) {
      errObj.msg =3D "Please Enter a Valid Date in the Format =
mm/dd/yyyy";
      return false;
    }
   =20
    var strMonth =3D dateStr.substring(0, monthSepPos);
    var strDay =3D dateStr.substring(monthSepPos + 1, daySepPos);
    var strYear =3D dateStr.substring(daySepPos + 1);
     =20
    var month =3D parseInt(strMonth);
    if (isNaN(month) || month < 1 || month > 12) {
      errObj.msg =3D "Please Enter a Valid Month Between 1 - 12";
      return false;
    }
    var year =3D parseInt(strYear);
    if (isNaN(year) || year < minYear || year > maxYear) {
      errObj.msg =3D "Please Enter a Valid Year Between " + minYear + " =
and " + maxYear;
      return false;
    }

    var daysInMonth =3D new DaysInMonth();
    var day =3D parseInt(strDay);
    if (isNaN(day) || day < 1 || day > daysInMonth[month] || (month =
=3D=3D 2 && day =3D=3D 29 && (!(isLeapYear(year))))) {
      errObj.msg =3D "Please Enter a Valid Day for the month Entered";
      return false;
    }
    return true;
  } =20
 =20
  function changeBgColor(ctrl, isValid) {
    if (isValid) {
      ctrl.className =3D "";   =20
    }
    else {
      //ctrl.runtimeStyle.backgroundColor =3D "#FFDEAD"; =20
      ctrl.className =3D "errorColor"; =20
    }
  }
 =20
/******************************************************************/
/**************** Data Type Validation Methods ********************/
/******************************************************************/
 =20
  function validateDataExists(ctrl) {
    var canSubmit =3D false;
    var requiredType =3D ctrl.getAttribute("required");   =20
    switch (requiredType) {
      case "true":       =20
        ctrl.value =3D trim(ctrl.value);
        canSubmit =3D ctrl.value.length > 0;
        break;
    }
    ctrl.setAttribute("canSubmit", canSubmit);
    changeBgColor(ctrl, canSubmit);
    return canSubmit;
  }
 =20
  function validateDate(ctrl) {
    var canSubmit =3D false;
    var requiredType =3D ctrl.getAttribute("required");
    var errObj =3D new Object();
    ctrl.value =3D trim(ctrl.value);
    var dateIsValid =3D isDateValid(ctrl.value, errObj);
    switch (requiredType) {
      case "true":
        if (!dateIsValid || dateIsValid =3D=3D 'false') {
          ctrl.setAttribute("errMsg", errObj.msg);   =20
          canSubmit =3D false;   =20
        }
        else
          canSubmit =3D true;   =20
        break;
      case "mustBeValidIfPresent":
        if (ctrl.value.length > 0 && (!dateIsValid)) {
          ctrl.setAttribute("errMsg", errObj.msg);   =20
          canSubmit =3D false;   =20
        }
        else
          canSubmit =3D true;   =20
        break;
      default:
          canSubmit =3D true;   =20
        break;    =20
    }
    ctrl.setAttribute("canSubmit", canSubmit);
    changeBgColor(ctrl, canSubmit);
    return canSubmit;
  }
  function validateNumber(ctrl) {
    var canSubmit =3D false;
    var requiredType =3D ctrl.getAttribute("required");
    if (requiredType =3D=3D null)
      requiredType =3D "mustBeValidIfPresent";
     =20
    ctrl.value =3D trim(ctrl.value);
    var nbr =3D parseFloat(ctrl.value.replace(/\$|\,/g,'')); // remove =
formatting to check for numeric values
    ctrl.value =3D nbr;
   =20
    switch (requiredType) {
      case "true":
        if (!isNaN(nbr) =3D=3D true) {
          canSubmit =3D true;
        }
        break;
      case "mustBeValidIfPresent":
        if (ctrl.value.length > 0 && (isNaN(nbr) =3D=3D true)) {
          canSubmit =3D false;
        }
        else
          canSubmit =3D true;
        break;
      default:
          canSubmit =3D true;
        break;       =20
    }
    ctrl.setAttribute("canSubmit", canSubmit);
    changeBgColor(ctrl, canSubmit);
    return canSubmit;
  }
  function validatePhone(ctrl) {
    var requiredType =3D ctrl.getAttribute("required");
    ctrl.canSubmit =3D false;
    ctrl.value =3D trim(ctrl.value);
    formatPhone(ctrl);   =20
    return validateDataExists(ctrl);
  }
  function formatPhone(ctrl) {
    var result =3D "";
    try {
      result =3D httpRequestPOST(hsiFolder + 'FormatPhone.aspx', =
'sPhone=3D' + ctrl.value);
      ctrl.value =3D result;
    }
    catch (e) {
      alert(e);
    }
  }
 =20
  function valNbr(ctrl) {
    if (!validateNumber(ctrl)) {
      alert('Please enter only numbers in this edit box.');
      ctrl.value =3D "";
      ctrl.focus();
      return false;
    }
    else return true;
  } =20


/* Email Validation for Sending Emails from XR.=20
  Dependencies: Assumes the referenced fields of the validation aspect =
exist.
                Assumes there is a table with id of errMsg).
                Calls function validateEmailCode(), which sets =
corresponding field values of form.               =20
*/

    function sendEmailCodeLink() {
      var msg =3D "";
      var errMsg =3D document.getElementById("errMsg");      =20
     =20
      var email =3D document.getElementById("email").value;
      var firstname =3D =
document.getElementById("visitorFirstName").value;
      var lastname =3D document.getElementById("visitorLastName").value;
     =20
      if (firstname.length =3D=3D 0)=20
        msg +=3D 'Please enter a First Name.<br />';
      if (lastname.length =3D=3D 0)=20
        msg +=3D 'Please enter a Last Name.<br />';
      if (email.length =3D=3D 0)
        msg +=3D 'Please enter an email address to which we may send the =
Validation Code.<br />';
     =20
      if (msg.length > 0) {
        errMsg.innerHTML =3D msg;
        errMsg.style.visibility =3D "visible";
        errMsg.style.display =3D "block";
        return;
      }
      =20
      var params =3D "email=3D" + email;
      var url =3D hsiFolder + "SendEmailValidationCode.aspx";
      try {
        httpRequestPOST(url, params);
        return true;
      }
      catch (e) {
        alert(e);
        return false;
      }
    }
   =20
    function sbFm() {
      var errMsg =3D document.getElementById("errMsg");      =20
      errMsg.style.display =3D "none";
      errMsg.innerHTML =3D "";
      if (sendEmailCodeLink()) {
        var dataConfirm =3D document.getElementById("dataConfirm");
        dataConfirm.style.visibility =3D "visible";
        dataConfirm.style.display =3D "inline";
        dataConfirm.innerHTML =3D 'A "Validation Code" has been emailed =
to you.<br/>(It may be in your "junk" folder.)<br/>Copy and paste it =
into the edit box to the left, and press &lt;Tab&gt;.';
        document.forms[0].btnSendEmail.disabled =3D true;
      }
    }
   =20
    function codeIsValid(url, params) {
      try {
        var elemIsValid =3D httpRequestPOST(url, params);
        if (elemIsValid =3D=3D "true" || elemIsValid =3D=3D "True") =
return true;
        else return false;
      }
      catch (e) {
        alert(e);
        return false;
      }
    }
    =20
    function clreMsg() {
      var errMsg =3D document.getElementById("errMsg");      =20
      errMsg.innerHTML =3D "";
      errMsg.style.visibility =3D "hidden";
      errMsg.style.display =3D "none";
      document.forms[0].emailCode.disabled =3D false;
    }
   =20
    function resetValidationVisibility(){
      var validationDiv =3D document.getElementById("validationDiv");
      if (validationDiv) {
        validationDiv.style.visibility =3D "visible";
        validationDiv.style.display =3D "block";
      }
    }

------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://exposureroom.com/JavaScripts/JournalPostEntry.js

=EF=BB=BF    function innerText(elm){ if(document.all) { return =
elm.innerText; } else { return elm.textContent; } }

			function PasteImgHTML(html) {
		    // get the client id for the cute editor control
  	    var editorClientId =3D =
document.getElementById('EditorClientId').value;
		    // get the cute editor instance
	      var editor1 =3D document.getElementById(editorClientId);
				var imgTag =3D "<img src=3D'" + html + "' alt=3D'' />";
				editor1.PasteHTML(imgTag);
			}
		=09
			function PasteATagHTML(html) {
		    // get the client id for the cute editor control
  	    var editorClientId =3D =
document.getElementById('EditorClientId').value;
		    // get the cute editor instance
	      var editor1 =3D document.getElementById(editorClientId);
				//var imgTag =3D "<img src=3D'" + html + "' alt=3D'' />";
				editor1.PasteHTML(html);
      }
     =20
/* begin - insert and update journal item and associated tables for a =
member */
      function saveJournalEntry(childCtrl, idOfParent, validateCallback) =
{
        displayInSituMsg("", 0);
        if (childCtrl.id =3D=3D "btnSaveAndPublish") {
          if (!confirm("You will not have the opportunity to unpublish =
this entry once it has been published to the public.\r\nPlease Confirm =
that you wish to publish this entry to the public.")) {
            document.forms[0].ITEM_IS_PUBLISHED.value =3D 'False';
            return false;
          }
        }
       =20
        var itemId =3D document.forms[0].ITEM_ID.value;
		    // get the client id for the cute editor control
  	    var editorClientId =3D =
document.getElementById('EditorClientId').value;
		    // get the cute editor instance
	      var editor1 =3D document.getElementById(editorClientId);
		    // Get the editor HTML - assign to hidden field for updating
		    document.getElementById('ITEM_DESC').value =3D editor1.getHTML();

        var bProceed =3D true;
        var errNode =3D document.getElementById('err');
        for(i =3D errNode.rows.length; i > 1; i--)
          errNode.deleteRow(errNode.rows.length -1);

		    // Get the editor Plain Text and make sure that they have entered =
something=20
        var editdoc =3D editor1.GetDocument();=20
 		    var plainText =3D innerText(editdoc.body);

      	if (plainText.length =3D=3D 0) {
          var row =3D errNode.insertRow(-1);
          var cell =3D row.insertCell(-1);
          cell.innerHTML =3D "<b>You must enter a =
&quot;Post&quot;.</b>.";
          errNode.style.visibility =3D "visible";
          errNode.style.display =3D "block";
          bProceed =3D false;
        }

        if (!checkSelected(document.getElementById('categoryDiv'))) {
          var row =3D errNode.insertRow(-1);
          var cell =3D row.insertCell(-1);
          cell.innerHTML =3D "<b>You must select at least one =
&quot;Category&quot;.</b>.";
          errNode.style.visibility =3D "visible";
          errNode.style.display =3D "block";
          bProceed =3D false;
        }
        if (!checkSelected(document.getElementById('tagDiv'))) {
          var row =3D errNode.insertRow(-1);
          var cell =3D row.insertCell(-1);
          cell.innerHTML =3D "<b>You must select at least one =
&quot;Search Tag&quot;.</b>.";
          errNode.style.visibility =3D "visible";
          errNode.style.display =3D "block";
          bProceed =3D false;
        }=20

        if (!bProceed) {
          displayInSituMsg("Errors encountered.  Please see top of =
form.", 1);
          return false;
        }
        else {
          var url =3D hsiFolder + 'UpdateJournalEntry.aspx';
          if (!submitContainer(childCtrl, idOfParent, validateCallback, =
url, getJournalItemIdCB, childCtrl.id))
            displayInSituMsg("Errors encountered.  Please see top of =
form.", 1);
        }
      }
     =20
      function getJournalItemIdCB(resultText, asynchState) {       =20
        if (asynchState =3D=3D 'btnSave'){
          document.forms[0].ITEM_ID.value =3D resultText;
          displayInSituMsg("Changes Saved.", 1);
        }
        else {
          window.location.href =3D document.getElementById("rd").value;
        }
      }
/* end - insert and update journal item and associated tables for a =
member */
     =20
    function doRate(radio) {
      var url =3D hsiFolder + 'RateMemberJournalItem.aspx';
      var data =3D 'itemId=3D' + itemId + '&journalType=3D' + jtype + =
'&rating=3D' + radio.value;
      postRequest(url, data);       =20
      window.location.href =3D document.getElementById("rd").value;
    }
   =20
    function updatePassphrase(ctrl) {
      var ctrlElements =3D ctrl.name.split('_');
      var rid =3D ctrlElements[1];
      var url =3D hsiFolder + "UpdateRelationshipPassphrase.aspx";
      var data =3D 'relationshipId=3D' + rid + '&phrase=3D' + =
ctrl.value;
      postRequest(url, data);       =20
    }
     =20
    function postRequest(url, data) {
      try {
        httpRequestPOST(url, data);
      }
      catch (e) {
        alert(e);
      }
    }
     =20
    function updateCaption(labelText, caption) {
      var label =3D document.getElementById(caption);
      label.innerHTML =3D labelText;
    }
   =20
    function enableRelationTable(checkbox) {
      var tbl =3D document.getElementById("relateTbl");
      var inputs =3D tbl.getElementsByTagName("INPUT");
      var selCount =3D inputs.length;
      if (checkbox.checked) {
        for (var i =3D 0; i < selCount; i++)
          inputs[i].disabled =3D "";
      }
      else {
        for (var j =3D 0; j < selCount; j++) {
          inputs[j].disabled =3D "disabled";
          if (inputs[j].type =3D=3D "checkbox")
            inputs[j].checked =3D "";
        }
      }
    }
     =20
/* begin - delete journal item and associated tables for a member */
    function deleteJournalEntry(id, jtype) {
      var url =3D hsiFolder + 'DeleteJournalEntry.aspx';
      var data =3D 'itemId=3D' + id + '&journalType=3D' + jtype;
      if (window.confirm("Are you sure you want to delete this journal =
entry and any comments?"))
        asynchHttpRequestPOST(url, data, getDeleteJournalEntryCB, =
getDeleteJournalEntryExceptionCB, id);       =20
    }
    function getDeleteJournalEntryExceptionCB(httpObj, asynchState) {
      alert(httpObj.responseText);
    }
    function getDeleteJournalEntryCB(httpObj, asynchState) {=20
      var url =3D hostMemberJournalHomePageUrl;
      window.location.href =3D url;
    }    =20
/* end - delete journal item and associated tables for a member */
   =20
 =20
/* begin - delete journal item comment for a member */
    function deleteJournalComment(id, jtype) {
      var url =3D hsiFolder + 'DeleteJournalItemComment.aspx';
      var data =3D 'id=3D' + id + '&journalType=3D' + jtype;
      if (window.confirm("Are you sure you want to delete this =
comment?"))
        asynchHttpRequestPOST(url, data, getDeleteJournalCommentCB, =
getDeleteJournalCommentExceptionCB);       =20
    }
    function getDeleteJournalCommentCB(httpObj, asynchState) {
      var url =3D "http://" + window.location.hostname + =
window.location.pathname;
      window.location.href =3D url;
      //window.location.href =3D window.location.href;
    }
    function getDeleteJournalCommentExceptionCB(httpObj, asynchState) {=20
      alert(httpObj.responseText);
    }        =20
/* end - delete journal item comment for a member */
   =20
/* begin - update journal item comment for a member */
    function editJournalComment(id) {
      var div =3D document.getElementById("div_" + id);
      var table =3D document.getElementById("tbl_" + id);
      if (div.style.display =3D=3D "block"){
        div.style.display =3D "none";
        table.style.display =3D "block";
      }
      else {
        div.style.display =3D "block";
        table.style.display =3D "none";
      }
    }
   =20
    function cancelEditJournalComment(id) {
      var div =3D document.getElementById("div_" + id);
      var table =3D document.getElementById("tbl_" + id);
      div.style.display =3D "block";
      table.style.display =3D "none";
    }
   =20
    function updateJournalComment(childCtrl, idOfParent, =
validateCallback) {
      var url =3D hsiFolder + 'UpdateJournalItemComment.aspx';
      submitContainer(childCtrl, idOfParent, validateCallback, url, =
getUpdateJournalCommentCB);
    }
    function getUpdateJournalCommentCB(httpObj, asynchState) {
      var index =3D window.location.href.indexOf("#");
      var url =3D "";
      if (index !=3D -1)
        url =3D window.location.href.substring(0, index);
      else=20
        url =3D window.location.href;
      //var url =3D=20
      //var url =3D "http://" + window.location.hostname + =
window.location.pathname;
      window.location.href =3D url;
      //window.location.href =3D window.location.href;
    }
   =20
  /* end - update journal item comment for a member */
    function journalCommentSubscribe(id, jtype) {
      var btn1 =3D document.getElementById("btnSubscribe");
      var btn2 =3D document.getElementById("btnSubscribe2");
     =20
      if (btn1.value =3D=3D "Subscribe")
      {
        btn1.value =3D "Unsubscribe";
        btn1.title =3D "Unsubscribe to this post";
        btn2.value =3D "Unsubscribe";
        btn2.title =3D "Unsubscribe to this post";
      }
      else
      {
        btn1.value =3D "Subscribe";
        btn1.title =3D "Subscribe to this post";
        btn2.value =3D "Subscribe";
        btn2.title =3D "Subscribe to this post";
      }
     =20
      var url =3D hsiFolder + 'UpdateJournalCommentSubscription.aspx';
      var data =3D 'itemId=3D' + id + '&journalType=3D' + jtype;
      try {
        httpRequestPOST(url, data);
      }
      catch (e) {
        alert(e);
      }
    }
------=_NextPart_000_0000_01C91739.E25473D0
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://pagead2.googlesyndication.com/pagead/show_ads.js

(function(){=0A=
var f=3Ddocument,h=3Dnavigator,j=3Dwindow;function n(){var =
a=3Df.cookie,c=3DMath.round((new =
Date).getTime()/1000),b=3Dj.google_analytics_domain_name,d=3Dtypeof =
b=3D=3D"undefined"?r("auto"):r(b),e=3Da.indexOf("__utma=3D"+d+".")>-1,g=3D=
a.indexOf("__utmb=3D"+d)>-1,k=3Da.indexOf("__utmc=3D"+d)>-1,l,i=3D{};if(e=
){l=3Da.split("__utma=3D"+d+".")[1].split(";")[0].split(".");i.sid=3Dg&&k=
?l[3]+"":j&&j.gaGlobal&&j.gaGlobal.sid?j.gaGlobal.sid:c+"";i.vid=3Dl[0]+"=
."+l[1];i.from_cookie=3Dtrue;i.dh=3Dd}else{i.sid=3Dj&&j.gaGlobal&&j.gaGlo=
bal.sid?j.gaGlobal.sid:=0A=
c+"";i.vid=3Dj&&j.gaGlobal&&j.gaGlobal.vid?j.gaGlobal.vid:(s()^aa())*2147=
483647+"."+c;i.from_cookie=3Dfalse}i.hid=3Dj&&j.gaGlobal&&j.gaGlobal.hid?=
j.gaGlobal.hid:s();j.gaGlobal=3Di;return i}function s(){return =
Math.round(Math.random()*2147483647)}function aa(){var =
a=3Df.cookie?f.cookie:"",c=3Dj.history.length,b,d,e=3D[h.appName,h.versio=
n,h.language?h.language:h.browserLanguage,h.platform,h.userAgent,h.javaEn=
abled()?1:0].join("");if(j.screen)e+=3Dj.screen.width+"x"+j.screen.height=
+j.screen.colorDepth;else if(j.java){d=3D=0A=
java.awt.Toolkit.getDefaultToolkit().getScreenSize();e+=3Dd.screen.width+=
"x"+d.screen.height}e+=3Da;e+=3Df.referrer?f.referrer:"";b=3De.length;whi=
le(c>0)e+=3Dc--^b++;return u(e)}function u(a){var =
c=3D1,b=3D0,d,e;if(!(a=3D=3Dundefined||a=3D=3D"")){c=3D0;for(d=3Da.length=
-1;d>=3D0;d--){e=3Da.charCodeAt(d);c=3D(c<<6&268435455)+e+(e<<14);b=3Dc&2=
66338304;c=3Db!=3D0?c^b>>21:c}}return c}function =
r(a){if(!a||a=3D=3D""||a=3D=3D"none")return =
1;if("auto"=3D=3Da){a=3Df.domain;if("www."=3D=3Da.substring(0,4))a=3Da.su=
bstring(4,a.length)}return u(a)};var =
v=3D{google_ad_channel:"channel",google_ad_host:"host",google_ad_host_cha=
nnel:"h_ch",google_ad_host_tier_id:"ht_id",google_ad_region:"region",goog=
le_ad_section:"region",google_ad_type:"ad_type",google_adtest:"adtest",go=
ogle_alternate_ad_url:"alternate_ad_url",google_alternate_color:"alt_colo=
r",google_bid:"bid",google_city:"gcs",google_color_bg:"color_bg",google_c=
olor_border:"color_border",google_color_line:"color_line",google_color_li=
nk:"color_link",google_color_text:"color_text",google_color_url:"color_ur=
l",=0A=
google_contents:"contents",google_country:"gl",google_cust_age:"cust_age"=
,google_cust_ch:"cust_ch",google_cust_gender:"cust_gender",google_cust_id=
:"cust_id",google_cust_interests:"cust_interests",google_cust_job:"cust_j=
ob",google_cust_l:"cust_l",google_cust_lh:"cust_lh",google_cust_u_url:"cu=
st_u_url",google_disable_video_autoplay:"disable_video_autoplay",google_e=
d:"ed",google_encoding:"oe",google_feedback:"feedback_link",google_flash_=
version:"flash",google_gl:"gl",google_hints:"hints",google_kw:"kw",=0A=
google_kw_type:"kw_type",google_language:"hl",google_referrer_url:"ref",g=
oogle_region:"gr",google_reuse_colors:"reuse_colors",google_safe:"adsafe"=
,google_targeting:"targeting",google_ui_features:"ui",google_video_doc_id=
:"video_doc_id",google_video_product_type:"video_product_type",google_pag=
e_url:"url"},w=3D{google_ad_format:"format",google_ad_output:"output",goo=
gle_ad_callback:"callback",google_ad_override:"google_ad_override",google=
_ad_slot:"slotname",google_analytics_uacct:"ga_wpids",google_correlator:"=
correlator",=0A=
google_cpa_choice:"cpa_choice",google_ctr_threshold:"ctr_t",google_image_=
size:"image_size",google_last_modified_time:"lmt",google_max_num_ads:"num=
_ads",google_max_radlink_len:"max_radlink_len",google_num_radlinks:"num_r=
adlinks",google_num_radlinks_per_unit:"num_radlinks_per_unit",google_only=
_ads_with_video:"only_ads_with_video",google_page_location:"loc",google_r=
l_dest_url:"rl_dest_url",google_rl_filtering:"rl_filtering",google_rl_mod=
e:"rl_mode",google_rt:"rt",google_skip:"skip"};function =
x(){}x.prototype.n=3Dfunction(){};x.prototype.o=3Dfunction(){};x.prototyp=
e.m=3Dfunction(){};var y=3Dnull;function z(a){y&&y.n(a)}function =
A(a){y&&y.o(a)}function ba(a){y&&y.m(a)}function =
B(){this.b=3Dthis.k();this.e=3Dfalse;if(!this.b){this.e=3Dthis.g();this.e=
||A("Browser does not allow =
cookies")}}B.prototype.d=3D"__gads=3D";B.prototype.c=3D"GoogleAdServingTe=
st=3D";B.prototype.j=3Dfunction(){return =
this.b};B.prototype.setCookieInfo=3Dfunction(a){this.a=3Da._cookies_[0];i=
f(this.a!=3Dnull){this.b=3Dthis.a._value_;this.l()}};=0A=
B.prototype.i=3Dfunction(a){var c=3D(new Date).valueOf(),b=3Dnew =
Date;b.setTime(c+a);return =
b};B.prototype.h=3Dfunction(a){if(this.b!=3Dnull||!this.e){z("Skipping =
fetch cookie call");return}var =
c=3D"script",b=3Ddocument.domain,d=3D"http://partner.googleadservices.com=
/gampad/cookie.js?callback=3D_GA_googleCookieHelper.setCookieInfo&client=3D=
"+C(a)+"&domain=3D"+C(b);z("Issuing a fetch cookie call with <a =
href=3D'"+d+"'>"+d+"</a>");document.write("<"+c+' =
src=3D"'+d+'"></'+c+">")};B.prototype.g=3Dfunction(){document.cookie=3Dth=
is.c+=0A=
"Good";var a=3Dthis.f(this.c),c=3Da=3D=3D"Good";if(c){var =
b=3Dthis.i(-1);document.cookie=3Dthis.c+"; =
expires=3D"+b.toGMTString()}return c};B.prototype.k=3Dfunction(){var =
a=3Dthis.f(this.d);a!=3Dnull?z("Read first party cookie: "+a):A("No =
first party cookie found");return a};B.prototype.f=3Dfunction(a){var =
c=3Ddocument.cookie,b=3Dc.indexOf(a),d=3Dnull;if(b!=3D-1){var =
e=3Db+a.length,g=3Dc.indexOf(";",e);if(g=3D=3D-1)g=3Dc.length;d=3Dc.subst=
ring(e,g)}return =
d};B.prototype.l=3Dfunction(){if(this.a=3D=3Dnull)A("Skipping cookie =
creation: no cookie info");=0A=
else if(this.b=3D=3Dnull)ba("Skipping cookie creation: no cookie =
value");else{var a=3Dnew Date;a.setTime(1000*this.a._expires_);var =
c=3Dthis.a._domain_,b=3Dthis.d+this.b+"; expires=3D"+a.toGMTString()+"; =
path=3D"+this.a._path_+"; domain=3D."+c;document.cookie=3Db;z("Written =
cookie: "+b)}};function =
ca(){if(navigator.plugins&&navigator.mimeTypes.length){var =
a=3Dnavigator.plugins["Shockwave Flash"];if(a&&a.description)return =
a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")}else =
if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=3D=0A=
0){var c=3D3,b=3D1;while(b)try{b=3Dnew =
ActiveXObject("ShockwaveFlash.ShockwaveFlash."+(c+1));c++}catch(d){b=3Dnu=
ll}return c.toString()}else if(da("msie")&&!window.opera){var =
b=3Dnull;try{b=3Dnew =
ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){var =
c=3D0;try{b=3Dnew =
ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=3D6;b.AllowScriptAcces=
s=3D"always"}catch(d){if(c=3D=3D6)return c.toString()}try{b=3Dnew =
ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=3Dnull){v=
ar c=3Db.GetVariable("$version").split(" ")[1];=0A=
return c.replace(/,/g,".")}}return"0"};var ea=3Dea||{},D=3Dthis;var =
fa=3Dfunction(a,c){var b=3Dc.length;for(var d=3D0;d<b;d++){var =
e=3Db=3D=3D1?c:c.charAt(d);if(a.charAt(0)=3D=3De&&a.charAt(a.length-1)=3D=
=3De)return a.substring(1,a.length-1)}return a};var =
E,ga,ha,ia,ja,ka,la,ma,na,oa,F,pa=3Dfunction(){var =
a=3Dfalse,c=3Dfalse,b=3Dfalse,d=3Dfalse,e=3Dfalse,g=3Dfalse,k=3Dfalse,l=3D=
false,i=3Dfalse,p=3D"";if(D.navigator){var =
o=3DD.navigator,q=3Do.userAgent;a=3Dq.indexOf("Opera")=3D=3D0;c=3D!a&&q.i=
ndexOf("MSIE")!=3D-1;b=3D!a&&q.indexOf("WebKit")!=3D-1;i=3Db&&q.indexOf("=
Mobile")!=3D-1;d=3D!a&&!b&&o.product=3D=3D"Gecko";e=3Dd&&o.vendor=3D=3D"C=
amino";var =
m,t;if(a)m=3DD.opera.version();else{if(d)t=3D/rv\:([^\);]+)(\)|;)/;else =
if(c)t=3D/MSIE\s+([^\);]+)(\)|;)/;else =
if(b)t=3D/WebKit\/(\S+)/;if(t){t.test(q);m=3DRegExp.$1}}p=3D=0A=
o.platform||"";g=3Dp.indexOf("Mac")!=3D-1;k=3Dp.indexOf("Win")!=3D-1;l=3D=
p.indexOf("Linux")!=3D-1}E=3Da;ga=3Dc;ha=3Dd;ia=3De;ja=3Db;ka=3Di;la=3Dm;=
ma=3Dp;na=3Dg;oa=3Dk;F=3Dl};pa();var qa=3DE;var ra=3Dfunction(a){return =
typeof a=3D=3D"string"?document.getElementById(a):a},G=3Dra;var =
H=3Dfunction(a){return =
a.nodeType=3D=3D9?a:a.ownerDocument||a.document};var =
sa=3Dfunction(a,c){var =
b=3DH(a);if(b.defaultView&&b.defaultView.getComputedStyle){var =
d=3Db.defaultView.getComputedStyle(a,"");if(d)return d[c]}return =
null};var ta=3Dfunction(a){var c=3DH(a),b=3D"";if(c.createTextRange){var =
d=3Dc.body.createTextRange();d.moveToElementText(a);b=3Dd.queryCommandVal=
ue("FontName")}if(!b){b=3Dsa(a,"fontFamily")||(a.currentStyle?a.currentSt=
yle.fontFamily:null)||a.style.fontFamily;if(qa&&F)b=3Db.replace(/ =
\[[^\]]*\]/,"")}var e=3Db.split(",");if(e.length>1)b=3De[0];return =
fa(b,"\"'")};var =
K=3D{google:1,googlegroups:1,gmail:1,googlemail:1,orkut:1,googleimages:1,=
googleprint:1};function ua(a){var =
c=3Da.google_page_location||a.google_page_url;if(!c)return =
false;c=3Dc.toString();if(c.indexOf("http://")=3D=3D0)c=3Dc.substring(7,c=
.length);else =
if(c.indexOf("https://")=3D=3D0)c=3Dc.substring(8,c.length);var =
b=3Dc.indexOf("/");if(b=3D=3D-1)b=3Dc.length;var =
d=3Dc.substring(0,b),e=3Dd.split("."),g=3Dfalse;if(e.length>=3D3)g=3De[e.=
length-3]in K;if(e.length>=3D2)g=3Dg||e[e.length-2]in K;return =
g}function va(a,c){var b=3D"http://googleads.g.doubleclick.net",=0A=
d=3D"http://pagead2.googlesyndication.com";if(!ua(a)&&Math.random()<c)ret=
urn b;return d};function L(a){return a!=3Dnull?'"'+a+'"':'""'}function =
C(a){return typeof =
encodeURIComponent=3D=3D"function"?encodeURIComponent(a):escape(a)}functi=
on M(a,c){if(a&&c)window.google_ad_url+=3D"&"+a+"=3D"+c}function =
N(a){var c=3Dwindow,b=3Dv[a]||w[a]||null,d=3Dc[a];M(b,d)}function =
O(a,c){c&&M(a,C(c))}function P(a){var =
c=3Dwindow,b=3Dv[a]||w[a]||null,d=3Dc[a];O(b,d)}function Q(a,c){var =
b=3Dwindow,d=3Dv[a]||w[a]||null,e=3Db[a];if(d&&e&&typeof =
e=3D=3D"object")e=3De[c%e.length];M(d,e)}function wa(a,c){var =
b=3Da.screen,d=3Dnavigator.javaEnabled(),=0A=
e=3D-c.getTimezoneOffset();if(b){M("u_h",b.height);M("u_w",b.width);M("u_=
ah",b.availHeight);M("u_aw",b.availWidth);M("u_cd",b.colorDepth)}M("u_tz"=
,e);M("u_his",history.length);M("u_java",d);navigator.plugins&&M("u_nplug=
",navigator.plugins.length);navigator.mimeTypes&&M("u_nmime",navigator.mi=
meTypes.length)}function =
xa(a){if(!a.google_enable_first_party_cookie)return;if(y=3D=3Dnull)y=3Dne=
w x;if(a._GA_googleCookieHelper=3D=3Dnull)a._GA_googleCookieHelper=3Dnew =
B;if(!a._google_cookie_fetched){a._google_cookie_fetched=3D=0A=
true;a._GA_googleCookieHelper.h(R(a.google_ad_client))}}function =
R(a){if(a){a=3Da.toLowerCase();if(a.substring(0,3)!=3D"ca-")a=3D"ca-"+a}r=
eturn a}function =
ya(a){if(a){a=3Da.toLowerCase();if(a.substring(0,9)!=3D"dist-aff-")a=3D"d=
ist-aff-"+a}return a}function =
za(a,c,b,d){b=3Db.substring(0,2000);b=3Db.replace(/%\w?$/,"");var =
e=3D"script";if((a.google_ad_output=3D=3D"js"||a.google_ad_output=3D=3D"j=
son_html")&&(a.google_ad_request_done||a.google_radlink_request_done))c.w=
rite("<"+e+' language=3D"JavaScript1.1" src=3D'+L(b)+"></"+e+=0A=
">");else =
if(a.google_ad_output=3D=3D"html"){if(a.name!=3D"google_ads_frame"){d!=3D=
null&&c.write('<div id=3D"'+d+'">');c.write('<iframe =
name=3D"google_ads_frame" width=3D'+L(a.google_ad_width)+" =
height=3D"+L(a.google_ad_height)+" =
frameborder=3D"+L(a.google_ad_frameborder)+" src=3D"+L(b)+' =
marginwidth=3D"0" marginheight=3D"0" vspace=3D"0" hspace=3D"0" =
allowtransparency=3D"true" =
scrolling=3D"no"></iframe>');d!=3Dnull&&c.write("</div>")}}else =
a.google_ad_output=3D=3D"textlink"&&c.write("<"+e+' =
language=3D"JavaScript1.1" src=3D'+L(b)+"></"+e+=0A=
">")}function Aa(a){for(var c in v)a[c]=3Dnull;for(var c in =
w){if(c=3D=3D"google_correlator")continue;a[c]=3Dnull}}function =
Ba(a){if(a.google_ad_format)return =
a.google_ad_format.indexOf("_0ads")>0;return =
a.google_ad_output!=3D"html"&&a.google_num_radlinks>0}function =
S(a){return a&&a.indexOf("_sdo")!=3D-1}function Ca(a){var =
c=3Dnull,b=3Dwindow,d=3Ddocument,e=3Dnew =
Date,g=3De.getTime(),k=3Db.google_ad_format,l=3Dva(b,0.0010);if(b.google_=
cpa_choice!=3Dc){b.google_ad_url=3Dl+"/cpa/ads?";b.google_ad_url+=3D"clie=
nt=3D"+escape(R(b.google_ad_client));=0A=
b.google_ad_region=3D"_google_cpa_region_";N("google_cpa_choice");if(type=
of d.characterSet!=3D"undefined")O("oe",d.characterSet);else typeof =
d.charset!=3D"undefined"&&O("oe",d.charset)}else =
if(S(k)){b.google_ad_url=3Dl+"/pagead/sdo?";b.google_ad_url+=3D"client=3D=
"+escape(ya(b.google_ad_client))}else{b.google_ad_url=3Dl+"/pagead/ads?";=
b.google_ad_url+=3D"client=3D"+escape(R(b.google_ad_client))}N("google_ad=
_host");N("google_ad_host_tier_id");var =
i=3Db.google_num_slots_by_client,p=3Db.google_num_slots_by_channel,o=3Db.=
google_prev_ad_formats_by_region,=0A=
q=3Db.google_prev_ad_slotnames_by_region;if(b.google_ad_region=3D=3Dc&&b.=
google_ad_section!=3Dc)b.google_ad_region=3Db.google_ad_section;var =
m=3Db.google_ad_region=3D=3Dc?"":b.google_ad_region;if(S(k)){b.google_num=
_sdo_slots=3Db.google_num_sdo_slots?b.google_num_sdo_slots+1:1;if(b.googl=
e_num_sdo_slots>4)return false}else =
if(Ba(b)){b.google_num_0ad_slots=3Db.google_num_0ad_slots?b.google_num_0a=
d_slots+1:1;if(b.google_num_0ad_slots>3)return false}else =
if(b.google_cpa_choice=3D=3Dc){b.google_num_ad_slots=3Db.google_num_ad_sl=
ots?=0A=
b.google_num_ad_slots+1:1;if(b.google_num_slots_to_rotate){o[m]=3Dc;q[m]=3D=
c;if(b.google_num_slot_to_show=3D=3Dc)b.google_num_slot_to_show=3Dg%b.goo=
gle_num_slots_to_rotate+1;if(b.google_num_slot_to_show!=3Db.google_num_ad=
_slots)return false}else if(b.google_num_ad_slots>6&&m=3D=3D"")return =
false}M("dt",e.getTime());N("google_language");b.google_country?N("google=
_country"):N("google_gl");N("google_region");P("google_city");P("google_h=
ints");N("google_safe");N("google_encoding");N("google_last_modified_time=
");P("google_alternate_ad_url");=0A=
N("google_alternate_color");N("google_skip");N("google_targeting");var =
t=3Db.google_ad_client;if(i[t])i[t]+=3D1;else{i[t]=3D1;i.length+=3D1}if(o=
[m])if(!S(k)){O("prev_fmts",o[m].toLowerCase());i.length>1&&M("slot",i[t]=
)}q[m]&&O("prev_slotnames",q[m].toLowerCase());if(k&&!b.google_ad_slot){O=
("format",k.toLowerCase());S(k)||(o[m]=3Do[m]?o[m]+","+k:k)}if(b.google_a=
d_slot)q[m]=3Dq[m]?q[m]+","+b.google_ad_slot:b.google_ad_slot;N("google_m=
ax_num_ads");M("output",b.google_ad_output);N("google_adtest");N("google_=
ad_callback");=0A=
N("google_ad_slot");P("google_correlator");if(b.google_ad_channel){P("goo=
gle_ad_channel");var T=3D"",U=3Db.google_ad_channel.split(/[+, =
]/);for(var I=3D0;I<U.length;I++){var J=3DU[I];if(p[J])T+=3DJ+"+";else =
p[J]=3D1}O("pv_ch",T)}if(b.google_ad_host_channel){P("google_ad_host_chan=
nel");var =
Ea=3DDa(b.google_ad_host_channel,b.google_viewed_host_channels);O("pv_h_c=
h",Ea)}b.google_enable_first_party_cookie&&O("cookie",b._GA_googleCookieH=
elper.j());P("google_page_url");Q("google_color_bg",g);Q("google_color_te=
xt",g);=0A=
Q("google_color_link",g);Q("google_color_url",g);Q("google_color_border",=
g);Q("google_color_line",g);b.google_reuse_colors?M("reuse_colors",1):M("=
reuse_colors",0);N("google_kw_type");P("google_kw");P("google_contents");=
N("google_num_radlinks");N("google_max_radlink_len");N("google_rl_filteri=
ng");N("google_rl_mode");N("google_rt");P("google_rl_dest_url");N("google=
_num_radlinks_per_unit");N("google_ad_type");N("google_image_size");N("go=
ogle_ad_region");N("google_feedback");P("google_referrer_url");=0A=
P("google_page_location");M("frm",b.google_iframing);N("google_bid");N("g=
oogle_ctr_threshold");N("google_cust_age");N("google_cust_gender");N("goo=
gle_cust_interests");N("google_cust_id");N("google_cust_job");N("google_c=
ust_u_url");N("google_cust_l");N("google_cust_lh");N("google_cust_ch");N(=
"google_ed");N("google_video_doc_id");N("google_video_product_type");P("g=
oogle_ui_features");P("google_only_ads_with_video");P("google_disable_vid=
eo_autoplay");a&&O("ff",ta(a));if(b.top.location=3D=3Dd.location&&d.body)=
{var V=3D=0A=
d.body.scrollHeight,W=3Dd.body.clientHeight;W&&V&&O("cc",Math.round(W*100=
/V))}n();M("ga_vid",b.gaGlobal.vid);M("ga_sid",b.gaGlobal.sid);M("ga_hid"=
,b.gaGlobal.hid);M("ga_fc",b.gaGlobal.from_cookie);P("google_analytics_ua=
cct");N("google_ad_override");N("google_flash_version");wa(b,e);return =
true}function Da(a,c){var b=3Da.split("|"),d=3D-1,e=3D[];for(var =
g=3D0;g<b.length;g++){var k=3Db[g].split(/[+, ]/);c[g]||(c[g]=3D{});var =
l=3D"";for(var i=3D0;i<k.length;i++){var =
p=3Dk[i];if(c[g][p])l+=3D"+"+p;else c[g][p]=3D1}l=3Dl.slice(1);=0A=
e[g]=3Dl;if(l!=3D"")d=3Dg}var o=3D"";if(d>-1){for(var =
g=3D0;g<d;g++)o+=3De[g]+"|";o+=3De[d]}return o}function X(){var =
a=3Dwindow,c=3Ddocument;xa(a);var b;if(Math.random()<0.01){var =
d=3D"google_temp_span";if(!G(d)){c.write("<span =
id=3D"+d+"></span>");b=3DG(d)}}var =
e=3DCa(b);b&&(b&&b.parentNode?b.parentNode.removeChild(b):null);if(!e)ret=
urn;za(a,c,a.google_ad_url,null);Aa(a)}function Fa(){X();return =
true}function Ga(a,c){var =
b=3Dc.documentElement;if(a.top.location=3D=3Dc.location)return =
false;if(a.google_ad_width&&a.google_ad_height){var d=3D=0A=
1,e=3D1;if(a.innerHeight){d=3Da.innerWidth;e=3Da.innerHeight}else =
if(b&&b.clientHeight){d=3Db.clientWidth;e=3Db.clientHeight}else =
if(c.body){d=3Dc.body.clientWidth;e=3Dc.body.clientHeight}if(e>2*a.google=
_ad_height||d>2*a.google_ad_width)return false}return true}function =
Ha(a){var =
c=3Dwindow,b=3Dnull,d=3Dc.onerror;c.onerror=3Da;if(c.google_ad_frameborde=
r=3D=3Db)c.google_ad_frameborder=3D0;if(c.google_ad_output=3D=3Db)c.googl=
e_ad_output=3D"html";if(S(c.google_ad_format)){var =
e=3Dc.google_ad_format.match(/^(\d+)x(\d+)_.*/);if(e){c.google_ad_width=3D=0A=
parseInt(e[1],10);c.google_ad_height=3DparseInt(e[2],10);c.google_ad_outp=
ut=3D"html"}}if(c.google_ad_format=3D=3Db&&c.google_ad_output=3D=3D"html"=
)c.google_ad_format=3Dc.google_ad_width+"x"+c.google_ad_height;Ia(c,docum=
ent);if(c.google_num_slots_by_channel=3D=3Db)c.google_num_slots_by_channe=
l=3D[];if(c.google_viewed_host_channels=3D=3Db)c.google_viewed_host_chann=
els=3D[];if(c.google_num_slots_by_client=3D=3Db)c.google_num_slots_by_cli=
ent=3D[];if(c.google_prev_ad_formats_by_region=3D=3Db)c.google_prev_ad_fo=
rmats_by_region=3D[];if(c.google_prev_ad_slotnames_by_region=3D=3D=0A=
b)c.google_prev_ad_slotnames_by_region=3D[];if(c.google_correlator=3D=3Db=
)c.google_correlator=3D(new =
Date).getTime();if(c.google_adslot_loaded=3D=3Db)c.google_adslot_loaded=3D=
{};if(c.google_adContentsBySlot=3D=3Db)c.google_adContentsBySlot=3D{};if(=
c.google_flash_version=3D=3Db)c.google_flash_version=3Dca();c.google_bloc=
king_test=3D=3Db&&Ja(c);c.onerror=3Dd}function =
Ja(a){a.google_blocking_test=3D1;if(Math.random()<0.0010){var =
c=3D"script",b=3D(new Date).getTime(),d=3Dnew Array("<",c,' =
type=3D"text/javascript">',"var i=3Dnew =
Image();",'i.src=3D"http://googleads.g.doubleclick.net/',=0A=
"pagead/gen_204?id=3Djs_blocking&t=3Dd&dt=3D",b,'";',"var j=3Dnew =
Image();",'j.src=3D"http://pagead2.googlesyndication.com/',"pagead/gen_20=
4?id=3Djs_blocking&t=3Dp&dt=3D",b,'";',"</",c,">");document.write(d.join(=
""))}}function da(a){if(a in Y)return Y[a];return =
Y[a]=3Dnavigator.userAgent.toLowerCase().indexOf(a)!=3D-1}var =
Y=3D{};function Ka(a){var =
c=3D{},b=3Da.split("?"),d=3Db[b.length-1].split("&");for(var =
e=3D0;e<d.length;e++){var =
g=3Dd[e].split("=3D");if(g[0])try{c[g[0].toLowerCase()]=3Dg.length>1?wind=
ow.decodeURIComponent?decodeURIComponent(g[1].replace(/\+/g,=0A=
" ")):unescape(g[1]):""}catch(k){}}return c}function La(){var =
a=3Dwindow,c=3DKa(document.URL);if(c.google_ad_override){a.google_ad_over=
ride=3Dc.google_ad_override;a.google_adtest=3D"on"}}function =
Ma(a,c){for(var b in c)a["google_"+b]=3Dc[b]}function =
Z(a,c){if(!c)return a.location;return a.referrer}function =
Na(a,c){if(!c&&a.google_referrer_url=3D=3Dnull)return"0";else =
if(c&&a.google_referrer_url=3D=3Dnull)return"1";else =
if(!c&&a.google_referrer_url!=3Dnull)return"2";else =
if(c&&a.google_referrer_url!=3Dnull)return"3";return"4"}=0A=
function Oa(a,c,b,d){a.page_url=3DZ(b,d);a.page_location=3Dnull}function =
Pa(a,c,b,d){a.page_url=3Dc.google_page_url;a.page_location=3DZ(b,d)||"EMP=
TY"}function Qa(a,c){var =
b=3D{},d=3DGa(a,c);b.iframing=3DNa(a,d);!!a.google_page_url?Pa(b,a,c,d):O=
a(b,a,c,d);b.last_modified_time=3Dc.location=3D=3Db.page_url?Date.parse(c=
.lastModified)/1000:null;b.referrer_url=3Dd?a.google_referrer_url:a.googl=
e_page_url&&a.google_referrer_url?a.google_referrer_url:c.referrer;return=
 b}function Ra(a){var =
c=3D{},b=3Da.URL.substring(a.URL.lastIndexOf("http"));=0A=
c.iframing=3Dnull;c.page_url=3Db;c.page_location=3Da.location;c.last_modi=
fied_time=3Dnull;c.referrer_url=3Db;return c}function Ia(a,c){var =
b;b=3Da.google_page_url=3D=3Dnull&&$[c.domain]?Ra(c):Qa(a,c);Ma(a,b)}var =
$=3D{};$["ad.yieldmanager.com"]=3Dtrue;La();Ha(Fa);X();=0A=
})()=0A=

------=_NextPart_000_0000_01C91739.E25473D0--
