<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Java Tips - Blogunity</title>
<meta name="description" content="Java Tips -- Java, Java, and more Java, Blogunity" />
<meta name="keywords" content="java, tip, tutorial, game, news, application, library, book review, Java Applications, Blogger, Blogunity" />
<meta name="Generator" content="Joomla! - Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved. JoomSEF SEO by Artio (http://www.artio.net)." />
<meta name="robots" content="index, follow" />
<script type="text/javascript" src="http://www.java-tips.org/mambots/system/jceutils/jscripts/mootools.js"></script>
<script type="text/javascript" src="http://www.java-tips.org/mambots/system/jceutils/jscripts/utils.js"></script>
<script type="text/javascript" src="http://www.java-tips.org/mambots/system/jceutils/jscripts/embed.js"></script>
<script type="text/javascript">
 jceutils.config.convert=0;
 jceutils.config.fadespeed=500;
 jceutils.config.scalespeed=500;
 jceutils.config.pngfix=0;
 jceutils.config.pngfix_id='_trans';
 jceutils.config.tipclass='tooltip';
</script>
<link href="http://www.java-tips.org/mambots/system/jceutils/css/jcebox.css" rel="stylesheet" type="text/css" media="all"/>
<base href="http://www.java-tips.org/" />
	<link rel="shortcut icon" href="http://www.java-tips.org/images/favicon.ico" />
	
<META name="verify-v1" content="vN3UVVCLT9CLCthSHUUQTeSSRQlru/LSUnIwM1XxKxE=" />
<META name="verify-v1" content="qiQPGDFyhn+e/UirJDllUVkZogy+dFaDd/qYAFnlxfQ=" />

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!-- PLACE IN THE HEAD OF YOUR HTML PAGE -->

<script type="text/javascript" src="http://www.idgtechnetwork.com/design/video/scripts/player-a2.js"></script>
<script language="javascript" src="http://cdn-static.liverail.com/js/companions.js"></script>
<script language="javascript"> lrCompanionPurge["300x250"] = true; </script>


<script language="JavaScript" type="text/javascript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>

<link href="http://www.java-tips.org/templates/casperlevent/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="http://www.java-tips.org/images/favicon.ico" />
</head>
<body>
<table border="0" align="center" cellpadding="0" cellspacing="0" width="1000">
<tr>
<td width="980" height="30" valign="top" >
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%"  border="0" valign="bottom" align="center" cellpadding="0" cellspacing="0">
        <tr height="152" >
          <td width="351"  height="152" style="background-repeat: repeat-y;" background="http://www.java-tips.org/templates/casperlevent/images/left_back.png"><div align="left"  height="152" valign="bottom"><img src="http://www.java-tips.org/templates/casperlevent/images/leftlogo.jpg" width="351" height="152" alt="java left logo" /> </div></td>
          <td  height="152"><div align="center" height="152" valign="bottom" ><img src="http://www.java-tips.org/templates/casperlevent/images/mid.jpg" width="100%" height="152" alt="java middle logo" /> </div></td>
          <td width="428"  height="152" align="right" style="background-repeat: repeat-y;background-position:  right;" background="http://www.java-tips.org/templates/casperlevent/images/right_back.png" alt="java right back logo" ><div align="right"  height="152" valign="bottom"><img src="http://www.java-tips.org/templates/casperlevent/images/right.jpg" width="428" height="152" alt="java right logo" /> </div></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td><div align="left">
        <table width="980" border="0" cellspacing="0" cellpadding="0">
          <tr valign="middle">
            <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/left_back.png">&nbsp;</td>
            <td>

<div align="center">	      
<!-- begin ad tag (tile=1) -->

<div id="div-gpt-ad-2803617656626-0">
    <script type='text/javascript'>
       googletag.cmd.push(function() {
         googletag.defineSlot('/8456/IDG.Java-Tips.com_Homepage', [300,250],'div-gpt-ad-2803617656626-0')
           .addService(googletag.pubads())
           .setTargeting("pos", "ATF")
           .setTargeting("URL", encodeURIComponent(window.location));
         googletag.enableServices();
         googletag.display('div-gpt-ad-2803617656626-0');
       });
    </script> 
</div>

<!-- End ad tag -->
</div>              

	      <br />
              <span class="pathway"><a href="index.php" class="pathway">Home</a> <img src="http://www.java-tips.org/images/M_images/arrow.png" alt="arrow" /> <a href="http://www.java-tips.org/java-applications/" class="pathway">Java Applications</a> <img src="http://www.java-tips.org/images/M_images/arrow.png" alt="arrow" /> <a href="http://www.java-tips.org/java-applications/blogger/" class="pathway">Blogger</a> <img src="http://www.java-tips.org/images/M_images/arrow.png" alt="arrow" />   Blogunity </span>              <br />
              </td>


            <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/right_back.png">&nbsp;</td>
          </tr>


        </table>
      </div></td>
  </tr>

</table>


<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/left_back.png">&nbsp;</td>
    <td width="180" valign="top">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
      <table width="100%" border="0" cellpadding="1" cellspacing="1" >
        <tr>
          <td ><table width="100%" border="0" cellpadding="1" cellspacing="1">
              <tr>
                <td>		<table cellpadding="0" cellspacing="0" class="moduletable">
				<tr>
			<td>
							</td>
		</tr>
		</table>
				<table cellpadding="0" cellspacing="0" class="moduletable_spaced">
					<tr>
				<th valign="top">
					Main Menu				</th>
			</tr>
					<tr>
			<td>
				
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="left"><td><a href="http://www.java-tips.org/index.html" class="mainlevel" >Home</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/java-tutorials/tutorials/" class="mainlevel" >Java Tutorials</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/java-book-reviews/books/" class="mainlevel" >Book Reviews</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/java-se-tips/" class="mainlevel" >Java SE Tips</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/java-me-tips/" class="mainlevel" >Java ME Tips</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/java-ee-tips/" class="mainlevel" >Java EE Tips</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/other-api-tips/" class="mainlevel" >Other API Tips</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/java-applications/" class="mainlevel" id="active_menu">Java Applications</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/java-libraries/" class="mainlevel" >Java Libraries</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/java-games/" class="mainlevel" >Java Games</a></td></tr>
</table>			</td>
		</tr>
		</table>
				<table cellpadding="0" cellspacing="0" class="moduletable">
					<tr>
				<th valign="top">
					Java Network				</th>
			</tr>
					<tr>
			<td>
				
<!-- Java Network -->

<table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr align="left">
<td> <a href="http://www.java-forums.org/forum.php" class="mainlevel" id="active_menu">Java Forums</a><br></td>
</tr>

<tr align="left">
<td> <a href="http://www.java-forums.org/blogs/all/" class="mainlevel" id="active_menu">Java Blog</a><br></td>
</tr>

</table>

<br>

<!-- Java Network -->



			</td>
		</tr>
		</table>
				<table cellpadding="0" cellspacing="0" class="moduletable">
				<tr>
			<td>
				
<p> </p>



<p> </p>
<p> </p>

<center>

<script type="text/javascript"><!--
google_ad_client = "pub-6304269038762493";
google_ad_width = 200;
google_ad_height = 90;
google_ad_format = "200x90_0ads_al";
//2007-01-22: javatips-adlinks
google_ad_channel = "7267226506";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


<br/>
<br/>
<br/>

<!-- begin ad tag (tile=3) -->
<script language="JavaScript" type="text/javascript">
if (typeof ord=='undefined') {ord=Math.random()*10000000000000000;}
document.write('<script language="JavaScript" src="http://a.collective-media.net/adj/idgt.javatips/article_above;sec=article;fold=above;tile=3;sz=160x600;ord=' + ord + '?" type="text/javascript"><\/script>');
</script><noscript><a href="http://a.collective-media.net/jump/idgt.javatips/article_above;sec=article;fold=above;tile=3;sz=160x600;ord=123456789?" target="_blank"><img src="http://a.collective-media.net/ad/idgt.javatips/article_above;sec=article;fold=above;tile=3;sz=160x600;ord=123456789?" width="160" height="600" border="0" alt=""></a></noscript>
<!-- End ad tag -->

</center>

<p> </p>


			</td>
		</tr>
		</table>
				<table cellpadding="0" cellspacing="0" class="moduletable_spaced">
					<tr>
				<th valign="top">
					Most Visited Tips				</th>
			</tr>
					<tr>
			<td>
				
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/1.html" class="mainlevel" >Java SE Tips</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/1-2.html" class="mainlevel" >Java ME Tips</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/1-3.html" class="mainlevel" >Java EE Tips</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/1-4.html" class="mainlevel" >Other API Tips</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/1-5.html" class="mainlevel" >Java Applications</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/1-6.html" class="mainlevel" >Java Libraries</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/1-7.html" class="mainlevel" >Java Games</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/1-8.html" class="mainlevel" >Book Reviews</a></td></tr>
</table>			</td>
		</tr>
		</table>
				<table cellpadding="0" cellspacing="0" class="moduletable_spaced">
					<tr>
				<th valign="top">
					Top Rated Tips				</th>
			</tr>
					<tr>
			<td>
				
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/2.html" class="mainlevel" >Java SE Tips</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/2-2.html" class="mainlevel" >Java ME Tips</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/2-3.html" class="mainlevel" >Java EE Tips</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/2-4.html" class="mainlevel" >Other API Tips</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/2-5.html" class="mainlevel" >Java Applications</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/2-6.html" class="mainlevel" >Java Libraries</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/2-7.html" class="mainlevel" >Java Games</a></td></tr>
<tr align="left"><td><a href="http://www.java-tips.org/mostvisited/2-8.html" class="mainlevel" >Book Reviews</a></td></tr>
</table>			</td>
		</tr>
		</table>
				<table cellpadding="0" cellspacing="0" class="moduletable">
				<tr>
			<td>
				<center>

<BR>

<!-- begin ad tag (tile=6) -->
<script language="JavaScript" type="text/javascript">
if (typeof ord=='undefined') {ord=Math.random()*10000000000000000;}
document.write('<script language="JavaScript" src="http://a.collective-media.net/adj/idgt.javatips/article_below;sec=article;fold=below;tile=6;sz=160x600;ord=' + ord + '?" type="text/javascript"><\/script>');
</script><noscript><a href="http://a.collective-media.net/jump/idgt.javatips/article_below;sec=article;fold=below;tile=6;sz=160x600;ord=123456789?" target="_blank"><img src="http://a.collective-media.net/ad/idgt.javatips/article_below;sec=article;fold=below;tile=6;sz=160x600;ord=123456789?" width="160" height="600" border="0" alt=""></a></noscript>
<!-- End ad tag -->

<BR>

</center>


			</td>
		</tr>
		</table>
				<table cellpadding="0" cellspacing="0" class="moduletable_spaced">
					<tr>
				<th valign="top">
					Statistics				</th>
			</tr>
					<tr>
			<td>
				<table width='100%'><tr><td>Registered Users: </td><td align=right>4118</td></tr><tr><td>Java SE Tips:</td><td align=right> 614</td></tr><tr><td>Java ME Tips:</td><td align=right> 202</td></tr><tr><td>Java EE Tips:</td><td align=right> 183</td></tr><tr><td>Other API Tips:</td><td align=right> 779</td></tr><tr><td>Java Applications:</td><td align=right> 298</td></tr><tr><td>Java Libraries:</td><td align=right> 209</td></tr><tr><td>Java Games:</td><td align=right> 16</td></tr><tr><td>Book Reviews: </td><td align=right></td></tr></table>			</td>
		</tr>
		</table>
		                </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td align="right" valign="top">&nbsp;</td>
        </tr>
      </table>
      </td>

      <td valign="top">&nbsp;</td>
        <td valign="top">
								<table class="contentpaneopen">
			<tr>
								<td class="contentheading" width="100%">
					Blogunity									</td>
							<td align="right" width="100%" class="buttonheading">
				<a href="http://www.java-tips.org/index2.php?option=com_content&amp;task=emailform&amp;id=455&amp;itemid=44" target="_blank" onclick="window.open('http://www.java-tips.org/index2.php?option=com_content&amp;task=emailform&amp;id=455&amp;itemid=44','win2','status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=400,height=250,directories=no,location=no'); return false;" title="E-mail">
					<img src="http://www.java-tips.org/images/M_images/emailButton.png"  alt="E-mail" name="E-mail" align="middle" border="0" /></a>
			</td>
						</tr>
			</table>
			<form method="post" action="index.php"><span class="content_rating">User Rating:<img src="http://www.java-tips.org/images/M_images/rating_star.png"  alt="" align="middle" border="0" /><img src="http://www.java-tips.org/images/M_images/rating_star.png"  alt="" align="middle" border="0" /><img src="http://www.java-tips.org/images/M_images/rating_star.png"  alt="" align="middle" border="0" /><img src="http://www.java-tips.org/images/M_images/rating_star.png"  alt="" align="middle" border="0" /><img src="http://www.java-tips.org/images/M_images/rating_star_blank.png"  alt="" align="middle" border="0" />&nbsp;/&nbsp;7</span>
<br />
<span class="content_vote">Poor<input type="radio" alt="vote 1 star" name="user_rating" value="1" /><input type="radio" alt="vote 2 star" name="user_rating" value="2" /><input type="radio" alt="vote 3 star" name="user_rating" value="3" /><input type="radio" alt="vote 4 star" name="user_rating" value="4" /><input type="radio" alt="vote 5 star" name="user_rating" value="5" checked="checked" />Best&nbsp;<input class="button" type="submit" name="submit_vote" value="Rate" /><input type="hidden" name="task" value="vote" /><input type="hidden" name="pop" value="0" /><input type="hidden" name="option" value="com_content" /><input type="hidden" name="Itemid" value="44" /><input type="hidden" name="cid" value="455" /><input type="hidden" name="url" value="http://www.java-tips.org/index.php?Itemid=44&amp;id=455&amp;option=com_content&amp;task=view" /></span></form>
		<table class="contentpaneopen">
				<tr>
			<td valign="top" colspan="2">
				

<p><b>Features:</b></p>

<ul>

<li>Community based blogging software
<li>Uncomplex easy one minute installation routine
<li>Easily deployable on any j2ee compliant application- and web servers
<li>Provides support for 16 well known database-engines
<li>Offers freely configurable number of individual/communtiy blogs per user
<li>Simple but powerful editing of blog-articles using wiki-syntax
<li>Flexible theme editing separate for each blog
<li>Simple user management and blog administration via web interface
<li>I18N support
<li>Freely configurable search engine

</ul>


<p></p>

<p></p>
<b>URL:</b><a href="http://blogunity.sourceforge.net/" target=1131487616578> http://blogunity.sourceforge.net/</a>
<br />
<b>Licence:</b> GPL
<p></p>

<br clear="all"/>
<h3><div class="moduletable"
style="color: #ffffff;  background-color:#336699; font-size:12px"><span align="left"><strong>&nbsp;<u>Related Tips</u></strong></span></div></h3> 
<ul ><li ><a  href="http://www.java-tips.org/java-applications/java-installer-builder/advanced-installer-2.html">
Advanced Installer</a></li>
<li ><a  href="http://www.java-tips.org/java-applications/java-virtual-machine/aegis-vm.html">Aegis VM</a></li>
<li ><a  href="http://www.java-tips.org/java-applications/cms-portal/alfresco.html">Alfresco</a></li>
<li ><a  href="http://www.java-tips.org/java-applications/modelling-tool/altova-umodel.html">Altova UModel</a></li>
<li ><a  href="http://www.java-tips.org/java-applications/java-installer-builder/antigen.html">Antigen</a></li>
<li ><a  href="http://www.java-tips.org/java-applications/java-installer-builder/antinstaller.html">AntInstaller</a></li>
<li ><a  href="http://www.java-tips.org/java-applications/parser-generator/antlr.html">ANTLR</a></li>
<li ><a  href="http://www.java-tips.org/java-applications/database-engine/apache-derby-2.html">Apache Derby</a></li>
</ul>
			</td>
		</tr>
				</table>

		<span class="article_seperator">&nbsp;</span>

		<center><table border="1" cellpadding="5" cellspacing="5" ><tr><td><!-- begin ad tag (tile=2) -->
<script language="JavaScript" type="text/javascript">
if (typeof ord=='undefined') {ord=Math.random()*10000000000000000;}
document.write('<script language="JavaScript" src="http://a.collective-media.net/adj/idgt.javatips/article_above;sec=article;fold=above;tile=2;sz=300X250;ord=' + ord + '?" type="text/javascript"><\/script>');
</script><noscript><a href="http://a.collective-media.net/jump/idgt.javatips/article_above;sec=article;fold=above;tile=2;sz=300X250;ord=123456789?" target="_blank"><img src="http://a.collective-media.net/ad/idgt.javatips/article_above;sec=article;fold=above;tile=2;sz=300X250;ord=123456789?" width="300" height="250" border="0" alt=""></a></noscript>
<!-- End ad tag --></td><td><!-- begin ad tag (tile=2) -->
<script language="JavaScript" type="text/javascript">
if (typeof ord=='undefined') {ord=Math.random()*10000000000000000;}
document.write('<script language="JavaScript" src="http://a.collective-media.net/adj/idgt.javatips/article_above;sec=article;fold=above;tile=2;sz=300X250;ord=' + ord + '?" type="text/javascript"><\/script>');
</script><noscript><a href="http://a.collective-media.net/jump/idgt.javatips/article_above;sec=article;fold=above;tile=2;sz=300X250;ord=123456789?" target="_blank"><img src="http://a.collective-media.net/ad/idgt.javatips/article_above;sec=article;fold=above;tile=2;sz=300X250;ord=123456789?" width="300" height="250" border="0" alt=""></a></noscript>
<!-- End ad tag --></td></tr></table></center>			<table align="center" style="margin-top: 25px;">
			<tr>
									<th class="pagenav_next">
						<a href="http://www.java-tips.org/java-applications/blogger/blojsom.html">
							Next &gt;</a>
					</th>
								</tr>
			</table>
			                







<link rel="stylesheet" href="components/com_comments/comments.css" type="text/css" /><!-- id 0, 0 --><style type="text/css">
<!--
.pageselected {
    color: #FF0000;
    font-weight: bold;
    font-size: larger;
}
-->
</style>
<div class="comm_pages"><div><div align="center"> <br />Page 1 of 0 ( 0 comments )</div></div></div><script language="JavaScript" type="text/javascript">
<!--
// bbCode control by
// subBlue design
// www.subBlue.com
// adapted for Simpleboard by the Two Shoes Module Factory (www.tsmf.jigsnet.com)

// Startup variables
var imageTag = false;
var theSelection = false;

// Check for Browser & Platform for PC & IE specific bits
// More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html
var clientPC = navigator.userAgent.toLowerCase(); // Get client info
var clientVer = parseInt(navigator.appVersion); // Get browser version

var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1));
var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1)
                && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1)
                && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1));
var is_moz = 0;

var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1));
var is_mac = (clientPC.indexOf("mac")!=-1);



// Define the bbCode tags
bbcode = new Array();
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[ul]','[/ul]','[ol]','[/ol]','[img size=150]','[/img]','[url]','[/url]','[li]','[/li]');
imageTag = false;

// Shows the help messages in the helpline window
function helpline(help) {
   return eval(help + "_help");
}


// Replacement for arrayname.length property
function getarraysize(thearray) {
   for (i = 0; i < thearray.length; i++) {
      if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null))
         return i;
      }
   return thearray.length;
}

// Replacement for arrayname.push(value) not implemented in IE until version 5.5
// Appends element to the array
function arraypush(thearray,value) {
   thearray[ getarraysize(thearray) ] = value;
}

// Replacement for arrayname.pop() not implemented in IE until version 5.5
// Removes and returns the last element of an array
function arraypop(thearray) {
   thearraysize = getarraysize(thearray);
   retval = thearray[thearraysize - 1];
   delete thearray[thearraysize - 1];
   return retval;
}


function bbstyle(bbnumber) {

   var txtarea = document.commentForm.mc_comment;

   txtarea.focus();
   donotinsert = false;
   theSelection = false;
   bblast = 0;

   if (bbnumber == -1) { // Close all open tags & default button names
      while (bbcode[0]) {
         butnumber = arraypop(bbcode) - 1;
         txtarea.value += bbtags[butnumber + 1];
         buttext = eval('document.postform.addbbcode' + butnumber + '.value');
         eval('document.postform.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');
      }
      imageTag = false; // All tags are closed including image tags :D
      txtarea.focus();
      return;
   }

   if ((clientVer >= 4) && is_ie && is_win)
   {
      theSelection = document.selection.createRange().text; // Get text selection
      if (theSelection) {
         // Add tags around selection
         document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1];
         txtarea.focus();
         theSelection = '';
         return;
      }
   }
   else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
   {
      mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]);
      return;
   }

   // Find last occurance of an open tag the same as the one just clicked
   for (i = 0; i < bbcode.length; i++) {
      if (bbcode[i] == bbnumber+1) {
         bblast = i;
         donotinsert = true;
      }
   }

   if (donotinsert) {      // Close all open tags up to the one just clicked & default button names
      while (bbcode[bblast]) {
            butnumber = arraypop(bbcode) - 1;
            txtarea.value += bbtags[butnumber + 1];
            buttext = eval('document.postform.addbbcode' + butnumber + '.value');
            eval('document.postform.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');
            imageTag = false;
         }
         txtarea.focus();
         return;
   } else { // Open tags

      if (imageTag && (bbnumber != 14)) {    // Close image tag before adding another
         txtarea.value += bbtags[15];
         lastValue = arraypop(bbcode) - 1;   // Remove the close image tag from the list
         document.postform.addbbcode14.value = "Img";  // Return button back to normal state
         imageTag = false;
      }

      // Open tag
      txtarea.value += bbtags[bbnumber];
      if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag
      arraypush(bbcode,bbnumber+1);
      eval('document.postform.addbbcode'+bbnumber+'.value += "*"');
      txtarea.focus();
      return;
   }
   storeCaret(txtarea);
}

// From http://www.massless.org/mozedit/
function mozWrap(txtarea, open, close)
{
   var selLength = txtarea.textLength;
   var selStart = txtarea.selectionStart;
   var selEnd = txtarea.selectionEnd;
   if (selEnd == 1 || selEnd == 2)
      selEnd = selLength;

   var s1 = (txtarea.value).substring(0,selStart);
   var s2 = (txtarea.value).substring(selStart, selEnd)
   var s3 = (txtarea.value).substring(selEnd, selLength);
   txtarea.value = s1 + open + s2 + close + s3;
   return;
}

// Insert at Claret position. Code from
// http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130
function storeCaret(textEl) {
   if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();
}


function bbfontstyle(bbopen, bbclose) {
   var txtarea = document.postform.message;

   if ((clientVer >= 4) && is_ie && is_win) {
      theSelection = document.selection.createRange().text;
      if (!theSelection) {
         txtarea.value += bbopen + bbclose;
         txtarea.focus();
         return;
      }
      document.selection.createRange().text = bbopen + theSelection + bbclose;
      txtarea.focus();
      return;
   }
   else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
   {
      mozWrap(txtarea, bbopen, bbclose);
      return;
   }
   else
   {
      txtarea.value += bbopen + bbclose;
      txtarea.focus();
   }
   storeCaret(txtarea);
}

//#######################################################
//code used in My Profile (userprofile.php)
function textCounter(field, countfield, maxlimit) {
   if(field.value.length > maxlimit){
      field.value = field.value.substring(0, maxlimit);
   }
   else{
      countfield.value = maxlimit - field.value.length;
   }
}
//*********************************************************
// Insert emoticons

function emo($e)
{
 document.postform.message.value=document.postform.message.value+$e;
 document.postform.message.focus();
}
function submitForm() {

 submitme=1;

 formname=document.postform.sb_authorname.value;
 if ((formname.length<1)) {
    alert("You forgot to enter your name");
    submitme=0;
 }

 formmail=document.postform.email.value;
 if ((formmail.length<1)) {
    alert("You forgot to enter your email");
    submitme=0;
  }
  formsubject=document.postform.subject.value;
  if ((formsubject.length<1)) {
    alert("You forgot to enter a subject");
    submitme=0;
  }

  if (submitme>0) {
  //change the following line to true to submit form
    return true;

  }else{
    return false;
  }
}

function cancelForm() {
   document.forms['postform'].action.value = "cancel";
   return true;
}

//**********************************************
// Helpline messages
q_help = "Mark as quoted text";
c_help = "Mark as Code/XML. The text will be displayed without formatting";
a_help = "Close all open tags";
submit_help = "Sumbit the comment";
preview_help = "Preview the comment";
name_help= "the Name that will appear in the comment";
email_help= "the email will appear only to the administrator";
html_help= "if set to Yes then HTML tags will be interpreted";
comment_help= "Write here your comment";

//**************************************************
// Open the preview window (with some post parsing)
function Preview(stylesheet, sbs) {
message=document.getElementById('message');

//these gotta be in both... I don't knwo why, but it works...
messageString = message.innertext;
messageString = message.value;

messageString = messageString.replace(/<(.*?)>/g,"&lt;$1&gt;");
messageString = messageString.replace(/</g,"&lt;");
messageString = messageString.replace(/\n/g,"<br>");
messageString = messageString.replace(/\[b\]/g,"<b>");
messageString = messageString.replace(/\[\/b\]/g,"</b>");
messageString = messageString.replace(/\[i\]/g,"<i>");
messageString = messageString.replace(/\[\/i\]/g,"</i>");
messageString = messageString.replace(/\[u\]/g,"<u>");
messageString = messageString.replace(/\[\/u\]/g,"</u>");
messageString = messageString.replace(/\[quote\]/g,'<div class="sb_review_quote">');
messageString = messageString.replace(/\[\/quote\]/g,'</div>');
messageString = messageString.replace(/\[code\]/g,'<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr><td><b>Code:</b></span></td></tr><tr><td class="sb_code"><pre>');
messageString = messageString.replace(/\[\/code\]/g,'</pre></tr></table>');
messageString = messageString.replace(/\[code:1\]/g,'<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr><td><b>Code:</b></span></td></tr><tr><td class="sb_code"><pre>');
messageString = messageString.replace(/\[\/code:1\]/g,'</pre></tr></table>');
messageString = messageString.replace(/\[ul\]/g,"<ul>");
messageString = messageString.replace(/\[\/ul\]/g,"</ul>");
messageString = messageString.replace(/\[ol\]/g,"<ol>");
messageString = messageString.replace(/\[\/ol\]/g,"</ol>");
messageString = messageString.replace(/\[li\]/g,"<li>");
messageString = messageString.replace(/\[\/li\]/g,"</li>");
messageString = messageString.replace(/B\)/g,'<img src="'+sbs+'/emoticons/sun.gif">');
messageString = messageString.replace(/;\)/g,'<img src="'+sbs+'/emoticons/wink.gif">');
messageString = messageString.replace(/:\)/g,'<img src="'+sbs+'/emoticons/happy.gif">');
messageString = messageString.replace(/:laugh:/g,'<img src="'+sbs+'/emoticons/laugh.gif">');
messageString = messageString.replace(/:ohmy:/g,'<img src="'+sbs+'/emoticons/ohmy.gif">');
messageString = messageString.replace(/:x/g,'<img src="'+sbs+'/emoticons/sick.gif">');
messageString = messageString.replace(/:mad:/g,'<img src="'+sbs+'/emoticons/angry.gif">');
messageString = messageString.replace(/:blink:/g,'<img src="'+sbs+'/emoticons/blink.gif">');
messageString = messageString.replace(/:P/g,'<img src="'+sbs+'/emoticons/tongue.gif">');
messageString = messageString.replace(/:\(/g,'<img src="'+sbs+'/emoticons/unhappy.gif">');
messageString = messageString.replace(/:unsure:/g,'<img src="'+sbs+'/emoticons/unsure.gif">');
messageString = messageString.replace(/:lol:/g,'<img src="'+sbs+'/emoticons/lol.gif">');
messageString = messageString.replace(/:huh:/g,'<img src="'+sbs+'/emoticons/huh.gif">');
messageString = messageString.replace(/:dry:/g,'<img src="'+sbs+'/emoticons/dry.gif">');
messageString = messageString.replace(/:rolleyes:/g,'<img src="'+sbs+'/emoticons/rolleyes.gif">');
messageString = messageString.replace(/:y32b4:/g,'<img src="'+sbs+'/emoticons/y32b4.gif">');

messageString = messageString.replace(/\[img size=([1-4][0-9][0-9])\](.*?)\[\/img\]/g,"<img src=\"$2\" border\"0\" width=\"$1\">");
messageString = messageString.replace(/\[img\](.*?)\[\/img\]/g,"<img src=\"$1\" border\"0\">");
messageString = messageString.replace(/(\[url\])(.*?)(\[\/url\])/g,"<a href=$2 target=\"_blank\">$2</a>");
messageString = messageString.replace(/\[url=(.*?)\](.*?)\[\/url\]/g,"<a href=\"$1\" target=\"_blank\">$2</a>");
messageString = messageString.replace(/\[size=([1-7])\](.+?)\[\/size\]/g,"<font size=\"$1\">$2</font>");
messageString = messageString.replace(/\[color=(.*?)\](.*?)\[\/color\]/g,"<span style=\"color: $1\">$2</span>");
messageString = messageString.replace(/\[file name=(.*?) size=(.*?)\](.*?)\[\/file\]/g,"<div class=\"sb_file_attachment\"><span class=\"contentheading\">File Attachment:</span><br>File name: <a href=\"$3\">$1</a><br>File size:$2 bytes</div>");

//and finally open the window for displaying the lot
win = window.open('','Preview','width=640, height=480, toolbar = no, status = no, resizable, scrollbars');
win.document.write("<link media=\"all\" type=\"text/css\" href=\""+ stylesheet + "\" rel=\"stylesheet\">");
win.document.write("<link media=\"all\" type=\"text/css\" href=\""+ sbs + "/forum.css\" rel=\"stylesheet\">");
win.document.write("<div style=\"margin-left:10px; margin-top:10px;margin-right:10px;margin-bottom:10px\">");
win.document.write("<hr size=1 width=\"20%\" align=\"left\">");
win.document.write('' + messageString + '');
win.document.write("<hr size=1 width=\"20%\" align=\"left\">");
win.document.write("<a href=\"javascript:window.close()\"> Close this window </a> ");
win.document.write("</div>");
}


/**
* Pops up a new window in the middle of the screen
*/
function popupWindow(mypage, myname, w, h, scroll) {
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
   winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
   win = window.open(mypage, myname, winprops);
   if (win.opener == null) win.opener = self;
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function popUp(URL) {

    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=250,left = 262,top = 184');");
}

//-->
</script>

<script type="text/javascript" src="/includes/js/overlib_mini.js"></script>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<script>
function CheckNULL(val) {
	if(val==null) {
		return '';
	}
	else {
		return val;
	}
}

// this function gets the cookie, if it exists
function Get_Cookie( name ) {
	
var start = document.cookie.indexOf( name + "=" );
var len = start + name.length + 1;
	if ( ( !start ) &&
	( name != document.cookie.substring( 0, name.length ) ) )
	{
		return null;
	}
	if ( start == -1 ) return null;
var end = document.cookie.indexOf( ";", len );
	if ( end == -1 ) end = document.cookie.length;
		return unescape( document.cookie.substring( len, end ) );
}
		

</script>
<a name="commentform"></A>
<div class="commentheading"><div>
      <div> <p>You can share your information about this topic using the form below! </p>

<p>Please do not post your questions with this form! Thanks.</p>

 </div></div></div>
<div class="commentarea" >
  <div  class="box">
    <div>
      <div>
                <form method="post" action="index.php?option=com_comments&task=mc_preview&id=455" name="commentForm" id="commentForm">
          <input name="return" type="hidden" value="index.php?option=content&task=view&id=455">
          <br />
          <!--          <div class=commenttext> -->
          Name <small><i>(required)</i></small><br />
          <input type="text" name="mc_comment_name" style="width:268px;" class="inputbox" onmouseout="return nd();" onmouseover="return overlib(helpline('name'))" value=""  >
          <br />
                    <!--          <div class=commenttext> -->
          <br />
          E-Mail <small><i>(required)</i></small>          <!--          </div> -->
                    <br />
          <input type="text" name="mc_comment_email" style="width:268px;" class="inputbox" onmouseout="return nd();" onmouseover="return overlib(helpline('email'))" value="
"  >
          <!--          <div class="commentsmalltext"> -->
          <br />
          Your email will not be displayed on the site - only to our administrator          <!-- </div> -->
          <br />
          Homepage<small><i>(optional)</i></small>
<br />
<input 
	 type="text" name="mc_comment_homepage" style="width:288px;" class="inputbox" value="http://">
<br />
<br />
          <!--          <div class="text"> -->
          <br />
          Comment          <!--</div> -->
                    Enable HTML code :
          <input type="radio" name="mc_htmlcode" value="1" checked onmouseout="return nd();" onmouseover="return overlib(helpline('html'))">
          Yes
          <input type="radio" name="mc_htmlcode" value="0" onmouseover="helpline('html')">
          No <br />
          <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" onmouseout="return nd();" onmouseover="return overlib(helpline('q'))" />
          <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" onmouseout="return nd();" onmouseover="return overlib(helpline('c'))" />
          <input type="button" class="button" accesskey="c" name="addbbcode-1" value="Close all" style="width: 60px" onclick="bbstyle(-1)" onmouseout="return nd();" onmouseover="return overlib(helpline('a'))" />
          <br>
          <textarea name="mc_comment" cols="50" rows="7" class="commentinputbox" onmouseover="helpline('comment')">

 </textarea>
          <br />
          <input type="submit" class="button" name="pressbutton" value="Submit" style="width: 100px;" class="button" onmouseout="return nd();" onmouseover="return overlib(helpline('submit'))">
          <input type="reset" class="button" name="pressbutton" value="Reset" style="width: 100px;" class="button" >
        </form>
      </div>
    </div>
  </div>
</div>
<br />
<!-- The wonderful world of open source make it easy to change the code any way you wish!  I kindly ask 
please notify me and make a donation at http://ongetc.com before you decide to remove this line, thanks -->
<!-- A request from the author of MosCom, Chanh Ong -->
<script>
	document.commentForm.mc_comment_email.value=CheckNULL(Get_Cookie("_mc_comment_email"));
	document.commentForm.mc_comment_name.value=CheckNULL(Get_Cookie("_mc_comment_name"));
	document.commentForm.mc_comment.value=CheckNULL(Get_Cookie("_mc_comment"));
	document.commentForm.mc_htmlcode.value=CheckNULL(Get_Cookie("_mc_htmlcode"));

</script>
		</td>
        <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/right_back.png">&nbsp;</td>
      </tr>

      <tr>
        <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/left_back.png">&nbsp;</td>
        <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
        <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
        <td valign="top"></td>
        <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/right_back.png">&nbsp;</td>
      </tr>
      <tr>
        <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/left_back.png">&nbsp;</td>
        <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
        <td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
        <td valign="top">&nbsp;</td>
        <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/right_back.png">&nbsp;</td>
      </tr>


    </table>


    <table cellspacing="0" cellpadding="0" width="980" align="center" border="0">
      <tbody>
        <tr>
          <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/left_back.png">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/right_back.png">&nbsp;</td>
        </tr>
        <tr>
          <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/left_back.png">&nbsp;</td>
          <td><div align="center">
              &nbsp;            </div></td>
          <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/right_back.png">&nbsp;</td>
        </tr>
        <tr>
          <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/left_back.png">&nbsp;</td>
          <td class="legal_static">&nbsp;</td>
          <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/right_back.png">&nbsp;</td>
        </tr>

        <tr>
          <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/left_back.png">&nbsp;</td>
          <td>
	  <div align="center">

<!-- begin ad tag (tile=5) -->
<div id="div-gpt-ad-2803617656626-0">
    <script type='text/javascript'>
       googletag.cmd.push(function() {
         googletag.defineSlot('/8456/IDG.Java-Tips.com_Homepage', [300,250],'div-gpt-ad-2803617656626-0')
           .addService(googletag.pubads())
           .setTargeting("pos", "ATF")
           .setTargeting("URL", encodeURIComponent(window.location));
         googletag.enableServices();
         googletag.display('div-gpt-ad-2803617656626-0');
       });
    </script> 
</div>
<!-- End ad tag -->

	  </div>
	  </td>
          <td width="20" background="http://www.java-tips.org/templates/casperlevent/images/right_back.png">&nbsp;</td>
        </tr>

      </tbody>
    </table>


    <table cellspacing="0" cellpadding="0" width="980" align="center" border="0">
      <tbody>
        <tr>
          <td width="393"><div align="left"  height="90"> <img src="http://www.java-tips.org/templates/casperlevent/images/bottom_left.png" width="393" height="90" alt="java bottom left" /> </div></td>
          <td><div align="center"  height="90"> <img src="http://www.java-tips.org/templates/casperlevent/images/bottom_middle.png" width="100%" height="90" alt="java bottom middle" /> </div></td>
          <td  width="387"><div align="right"  height="90"> <img src="http://www.java-tips.org/templates/casperlevent/images/bottom_right.png" width="387" height="90" alt="java bottom right" /> </div></td>
        </tr>
      </tbody>
    </table>
	</td>
	</tr>

</table>
		<table cellpadding="0" cellspacing="0" class="moduletable">
				<tr>
			<td>
				<link href="http://www.java-tips.org/components/com_ds-syndicate/ds-syndicate.css" rel="stylesheet" type="text/css" />
<div align="center"><a href="http://www.java-tips.org/index2.php?option=com_ds-syndicate&type=RSS0.91&no_html=1" target="_blank"><img src="http://www.java-tips.org/components/com_ds-syndicate/images/rss091.gif" class="feedImg_ds-syndicate" alt="RSS 0.91 Feed"/></a><a href="http://www.java-tips.org/index2.php?option=com_ds-syndicate&type=RSS1.0&no_html=1" target="_blank"><img src="http://www.java-tips.org/components/com_ds-syndicate/images/rss10.gif" class="feedImg_ds-syndicate" alt="RSS 1.0 Feed"/></a><a href="http://www.java-tips.org/index2.php?option=com_ds-syndicate&type=RSS2.0&no_html=1" target="_blank"><img src="http://www.java-tips.org/components/com_ds-syndicate/images/rss20.gif" class="feedImg_ds-syndicate" alt="RSS 2.0 Feed"/></a><a href="http://www.java-tips.org/index2.php?option=com_ds-syndicate&type=ATOM0.3&no_html=1" target="_blank"><img src="http://www.java-tips.org/components/com_ds-syndicate/images/atom03.gif" class="feedImg_ds-syndicate" alt="ATOM Feed"/></a><a href="http://www.java-tips.org/index2.php?option=com_ds-syndicate&type=OPML&no_html=1" target="_blank"><img src="http://www.java-tips.org/components/com_ds-syndicate/images/opml.png" class="feedImg_ds-syndicate" alt="OPML Feed"/></a></div>			</td>
		</tr>
		</table>
		

<br>


<center>
<table border=0>
<tr>
<td>
<a href="http://www.java-tips.org">Home</a>
<td/>
<td>
-
<td/>
<td>
<a href="http://www.java-tips.org/faqs/about-java-tips.org/what-is-java-tips.org.html">About Us</a>
<td/>
<td>
-
<td/>
<td>
<a href="http://www.java-tips.org/site-documentation/legal/privacy-policy.html">Privacy Policy</a>
<td/>
</tr>
</table>
</center>


<div align="center">Copyright 2005 - 2008 www.java-tips.org</div>
<div align="center">Java is a trademark of Sun Microsystems, Inc.</div>

	
<!-- Kontera ContentLink(TM);-->
<script type='text/javascript'>
var dc_AdLinkColor = 'blue' ;
var dc_isBoldActive= 'no';
var dc_PublisherID = 179488 ;
</script>
<script type='text/javascript' src='http://kona.kontera.com/javascript/lib/KonaLibInline.js'>
</script>
<!-- Kontera ContentLink(TM) -->


<!-- Start of Google Analytics Code -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-136266-1";
urchinTracker();
</script>
<!-- End of Google Analytics Code -->

<script type="text/javascript">
doclix_pid = 16593;
doclix_cid_anchor = 1444;
</script>


</body>
</html><!-- 1432495813 -->