var bookMark = '';
bookMark = bookMark + "From here you can use the Social Web links to save this article <strong>" + articleTitle + "</strong> to a social bookmarking site.<br>";
bookMark = bookMark + "<table width=100% cellpadding=0 cellspacing=5>";
bookMark = bookMark + "<tr>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://del.icio.us/post?url=" + thisURL + "&amp;title=" + articleTitle + "'><img border=0 src='images/logoDelicious.gif' alt='Save this article with del.ico.us'>&nbsp;del.icio.us</a></td>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://digg.com/submit?phase=2&amp;url=" + thisURL + "&amp;title=" + articleTitle + "'><img border=0 src='images/logoDigg.gif' alt='Save this article with Digg'>&nbsp;Digg it</a></td>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://www.furl.net/storeIt.jsp?t=" + articleTitle + "&amp;u=" + thisURL + "'><img border=0 src='images/logoFurl.gif' alt='Save this article with Furl'>&nbsp;Furl</a></td>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://www.netscape.com/submit/?U=" + thisURL + "&amp;T=" + articleTitle + "'><img border=0 src='images/logoNetscape.gif' alt='Save this article with Netscape'>&nbsp;Netscape</a></td>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://myweb2.search.yahoo.com/myresults/bookmarklet?t=" + articleTitle + "&amp;u=" + thisURL + "'><img border=0 src='images/logoYahoo.gif' alt='Save this article with Yahoo'>&nbsp;Yahoo MyWeb</a></td>";
bookMark = bookMark + "</tr>";
bookMark = bookMark + "<tr>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://www.stumbleupon.com/submit?url=" + thisURL + "&amp;title=" + articleTitle + "'><img border=0 src='images/logoStumbleUpon.gif' alt='Save this article with StumbleUpon'>&nbsp;StumbleUpon</a></td>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=" + thisURL + "&amp;title=" + articleTitle + "'><img border=0 src='images/logoGoogle.gif' alt='Save this article with Google'>&nbsp;Google</a></td>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://www.technorati.com/faves?add=" + thisURL + "'><img border=0 src='images/logoTechnorati.gif' alt='Save this article with Technorati'>&nbsp;Technorati </a></td>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=" + thisURL + "&amp;title=" + articleTitle + "'><img border=0 src='images/logoBlinkList.gif' alt='Save this article with BlinkList'>&nbsp;BlinkList</a></td>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://www.newsvine.com/_wine/save?popoff=0&amp;u=" + thisURL + "&amp;h=" + articleTitle + "'><img border=0 src='images/logoNewsvine.gif' alt='Save this article with Newsvine'>&nbsp;Newsvine</a></td>";
bookMark = bookMark + "</tr>";
bookMark = bookMark + "<tr>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://ma.gnolia.com/bookmarklet/add?url=" + thisURL + "&amp;title=" + articleTitle + "'><img border=0 src='images/logoMagnolia.gif' alt='Save this article with ma.gnolia'>&nbsp;ma.gnolia</a></td>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://reddit.com/submit?url=" + thisURL + "&amp;title=" + articleTitle + "'><img border=0 src='images/logoReddit.gif' alt='Save this article with reddit'>&nbsp;reddit</a></td>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='https://favorites.live.com/quickadd.aspx?marklet=1&amp;mkt=en-us&amp;url=" + thisURL + "&amp;title=" + articleTitle + "'><img border=0 src='images/logoWindowsLive.gif' alt='Save this article with Windows Live'>&nbsp;Windows Live</a></td>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://tailrank.com/share/?title=" + articleTitle + "&amp;link_href=" + thisURL + "'><img border=0 src='images/logoTailrank.gif' alt='Save this article with Tailrank'>&nbsp;Tailrank</a></td>";
bookMark = bookMark + "<td class=social><a rel=nofollow href='http://slashdot.org/bookmark.pl?url=" + thisURL + "&amp;title=" + articleTitle + "'><img border=0 src='images/logoSlashDot.gif' alt='Save this article with Slashdot'>&nbsp;Slashdot</a></td>";
bookMark = bookMark + "</tr>";
bookMark = bookMark + "</table>";

var emailBox = '';
emailBox = emailBox + "Enter your name and email address and your friend\'s name and email address below. You can also write a personal comment about the article in the box provided.";
emailBox = emailBox + "<table width=100% cellpadding=0 cellspacing=5 border=0>";
emailBox = emailBox + "<tr>";
emailBox = emailBox + "<td align=right>Your Name:</td><td><input type=text class=silverBorder name=yourName ></td>";
emailBox = emailBox + "<td align=right>Your Email:</td><td><input type=text class=silverBorder name=yourEmail ></td>";
emailBox = emailBox + "</tr>";
emailBox = emailBox + "<tr>";
emailBox = emailBox + "<td align=right>Friend\'s Name:</td><td><input type=text class=silverBorder name=friendsName ></td>";
emailBox = emailBox + "<td align=right>Friend\'s Email:</td><td><input type=text class=silverBorder name=friendsEmail ></td>";
emailBox = emailBox + "</tr>";
emailBox = emailBox + "</table>";
emailBox = emailBox + "<textarea name=theComment id=theComment style=width:95%;height:60px; class=silverBorder></textarea>";
emailBox = emailBox + "<input type=submit value=\'Send Email\' class=silverBorder >&nbsp;&nbsp;<a href=privacyPolicy.asp>Privacy Policy</a>";
emailBox = emailBox + "<input type=hidden name=referrer value=email>";

var commentBox = '';
commentBox = commentBox + "Enter your comment below along with your name and then click submit comment.";
commentBox = commentBox + "<textarea name=theComment id=theComment style=width:95%;height:60px; class=silverBorder></textarea>";
commentBox = commentBox + "<table width=100% cellpadding=0 cellspacing=5 border=0>";
commentBox = commentBox + "<tr>";
commentBox = commentBox + "<td align=right>Name:</td><td><input type=text class=silverBorder name=yourName ></td>";
commentBox = commentBox + "<td rowspan=3 valign=top style=padding:5px;>We welcome your comments on this story. Comments will be reviewed prior to publication to eliminiate any offensive comments. Please provide your name and suburb.<br><a href=publicationGuidelines.asp>Read our publication guidelines</a>.";
commentBox = commentBox + "</tr>";
commentBox = commentBox + "<tr>";
commentBox = commentBox + "<td align=right>Location:</td><td><input type=text class=silverBorder name=visitorLocation ></td>";
commentBox = commentBox + "</tr>";
commentBox = commentBox + "<tr>";
commentBox = commentBox + "<td>&nbsp;</td><td><input type=submit value=\'Submit Comment\' class=silverBorder ></td>";
commentBox = commentBox + "</tr>";
commentBox = commentBox + "</table>";
commentBox = commentBox + "<input type=hidden name=referrer value=comment>";

document.getElementById('commentBox').innerHTML=bookMark;
var currentSetting = 'bookMark';
function changeCommentBox(titleBox)
{
    if(currentSetting != titleBox)
    {
        document.getElementById('bookmarkTitle').style.backgroundColor='#67a9dc';
        document.getElementById('bookmarkAngle').src='images/lightBlueAngle.gif';
        document.getElementById('bookmarkTitle').style.cursor='pointer';

        document.getElementById('commentTitle').style.backgroundColor='#67a9dc';
        document.getElementById('commentAngle').src='images/lightBlueAngle.gif';
        document.getElementById('commentTitle').style.cursor='pointer';

        document.getElementById('emailTitle').style.backgroundColor='#67a9dc';
        document.getElementById('emailAngle').src='images/lightBlueAngle.gif';
        document.getElementById('emailTitle').style.cursor='pointer';

        document.getElementById(titleBox+'Title').style.backgroundColor='#016FC4';
        document.getElementById(titleBox+'Angle').src='images/blueAngle.gif';

        switch(titleBox)
        {
            case 'bookmark':
                document.getElementById('commentBox').innerHTML=bookMark;
                document.getElementById('bookmarkTitle').style.cursor='default';
                break;    
            case 'comment':
                document.getElementById('commentBox').innerHTML=commentBox;
                //document.getElementById('theComment').focus();
                document.getElementById('commentTitle').style.cursor='default';
                break;
            case 'email':
                document.getElementById('commentBox').innerHTML=emailBox;
                document.getElementById('emailTitle').style.cursor='default';
                break;
        }
        currentSetting = titleBox;
    }
}
