/*
Author: Robert Hashemian
http://www.hashemian.com/

You can use this code in any manner so long as the author's
name, Web address and this disclaimer is kept intact.
********************************************************
Usage Sample:

<script language="JavaScript">
WPC_BackColor = "linen";
WPC_ForeColor = "navy";
</script>
<table border="0" cellpadding="0" cellspacing="0"><tr><td>
<script language="JavaScript" 
src="http://www.hashemian.com/js/comments.js.php?a=SiteID"></script>
</td></tr><tr><td align="right">
<a style="color:blue;font-size:x-small;text-decoration:none" 
href="http://www.hashemian.com/tools/ViewAddComments.php?a=SiteID" 
target="_blank" title="View/Add comments">View/Add comments</a></td></tr></table>
*/

if (typeof(WPC_BackColor)=="undefined")
  WPC_BackColor = "";
if (typeof(WPC_ForeColor)=="undefined")
  WPC_ForeColor= "";

document.write('<br><fieldset style="background-color:' + WPC_BackColor + ';color:' + WPC_ForeColor + ';padding:5px;width:500px;"><legend><small><b>Comments (10)</b> [<a style="color:blue;font-size:xx-small;text-decoration:none" href="http://www.hashemian.com/tools/ViewAddComments.php?a=111871689642ae43e0afc96" target="_blank">View/Add</a>]</small></legend><small><br>by: <b>kdcoldiron</b> on <b>2009-07-15 22:45:15</b><br> <i>Does this timer account for the time it takes the browser to process javascript embedded in the page and called with the body tag&#039;s onload=&quot;function()&quot; param?<br>Just curious.  Thanks!</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>Sau</b> on <b>2009-05-05 11:27:34</b><br> <i>Can anybody explain to me the commands that are being used in the above Javascript code and the time that is getting displayed on the screen is right from the moment i click on any tab, the processing of request by server till the page is displayed or something else?</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>TK</b> on <b>2007-12-09 04:26:13</b><br> <i>Nicely done.</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>z3n</b> on <b>2007-07-07 16:36:27</b><br> <i>document.getElementById(PLT_DisplayElementID).innerHTML=PLT_DisplayFormat; }<br><br>this is the script that work on IE and FF<br>i supressed the space and vars to make it fit on 450 char box.</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>z3n</b> on <b>2007-07-07 16:35:23</b><br> <i>dt=new Date();PLT_DisplayFormat=&quot;%%S%%&quot;;PLT_DisplayElementID=&quot;load&quot;;window.onload=function() { if ((PLT_Span=document.getElementById(PLT_DisplayElementID)) == null) { document.body.insertBefore(document.createElement(&quot;br&quot;));PLT_Span = document.body.insertBefore(document.createElement(&quot;span&quot;)); } PLT_DisplayFormat=PLT_DisplayFormat.replace(/%%S%%/g,((new Date()-dt)/1000));document.getElementById(PLT_DisplayE</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b style=\'color:green\'>rh [admin]</b><img align=\'absbottom\' border=\'0\' alt=\'Site Admin\' src=\'http://www.hashemian.com/images/site-admin.gif\'> on <b>2006-03-14 05:04:49</b><br> <i>please look at the new PLT_DisplayElementID parameter to display the result anywhere on your page.</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>iflo</b> on <b>2006-03-11 10:04:50</b><br> <i>i need my anser what does (Max 450 chars, HTML tags are encoded for security.)mean i want to try htlm &lt;b&gt;is dis bold&lt;/b&gt; i am iflo again and sry for mi bad eglish but i am not english i want dis timer 2 lod where i want it not on the botom can i do that i want the timer in midil and not left how do i do this no one anserd me yest thanks iflo</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>iflo</b> on <b>2006-03-10 14:21:16</b><br> <i>sry for mi bad eglish but i am not english i want dis timer 2 lod where i want it not on the botom can i do that i want the timer in midil and not left how do i do this thanks iflo</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b style=\'color:green\'>rh [admin]</b><img align=\'absbottom\' border=\'0\' alt=\'Site Admin\' src=\'http://www.hashemian.com/images/site-admin.gif\'> on <b>2005-06-28 18:05:58</b><br> <i>i know. this is mentioned at the end of the 1st parag. still too many nuances between the competing browsers. haven&#039;t had a chance to work on that part.<br><br>if anyone&#039;s up for improving the js to work in ff, i&#039;ll post it with compliments and credit.</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>Xapti</b> on <b>2005-06-27 22:06:10</b><br> <i>will not work in Firefox. (= bad coding)</i> <hr align="center" size="1" color="lightgrey" width="90%"> <div align="center" style="font-size:xx-small">*** Pop-up blockers may interfere with this service. ***<br><a href="http://www.hashemian.com/tools/page-commenting.php" target="_blank" style="font-size:xx-small;color:blue;text-decoration:none">About this service</a></div></small></fieldset>');

