/*
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 (508)</b> [<a style="color:blue;font-size:xx-small;text-decoration:none" href="http://www.hashemian.com/tools/ViewAddComments.php?a=111782002342a094770ea76" target="_blank">View/Add</a>]</small></legend><small><br>by: <b>Drake Burns</b> on <b>2009-11-17 14:37:16</b><br> <i>I am creating an online test for a class. I wanted to know if it is possible to make the test automatically submit the answers when the time limit is reached. Can anyone help me with that.</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>Lourens</b> on <b>2009-11-14 06:17:59</b><br> <i>I want to use it as a count down timer for lectures and then calling the next count down when time has run out.  I.e. 1st lecture starts at 7:00 PM for 40min, then 10min break, then another 40min lecture, then a break again etc.<br><br>I&#039;ve got the whole thing working well except I do not not how to drop the date part.  I do not want to count down to any specific date but only the specific time on any day I open the page. <br><br>Please help</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>Henze</b> on <b>2009-11-11 13:39:12</b><br> <i>I changed it a little for my own needs (like made it a function that canbe called every time you want on just one page) and included an option to let it synchronize with the clock of the server using Ajax every 20 seconds! the server returns his count of seconds left until the given date!</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>c</b> on <b>2009-11-10 17:26:42</b><br> <i>Hmm has to be something wrong here. I cant change  the targetdate, whatever i write the counter shows 4098 days left :/</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>assd</b> on <b>2009-11-07 15:38:21</b><br> <i>Thx you</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>Firi</b> on <b>2009-11-06 10:47:08</b><br> <i>Is it possible to make it so that once the timer reaches the date specified, it adds 7 days to the time so that it can be a weekly countdown?</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>Gary</b> on <b>2009-10-31 19:56:49</b><br> <i>i see in the double clock when both run displays same thing is there way that the first clock does &quot;aution over&quot; second clock when run down goes to a link?</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>khaja</b> on <b>2009-10-29 08:06:04</b><br> <i>Superb code.. u r a great programmer.. Thank you.. :)</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>coxon2</b> on <b>2009-10-21 18:28:17</b><br> <i>Gracias por el contador, estaba buscando algo asi ya lo agregue a mi pagina, saludos!!! desde mexico</i> <hr align="center" size="1" color="lightgrey" width="90%"> by: <b>Rod</b> on <b>2009-10-19 00:05:51</b><br> <i>I&#039;m  trying to get multiple times on one page.<br>I created 2 seperate folders, put the countdown.js file into each. On the web page I had one pointing to one folder and the other to the other folder. I get &quot;underterminate string constant&quot; error and only 1 of the 2 shows up.<br>I then changed the file names to 2 different file numbers and get the same error.<br>WHAT am I doing wrong? or is it not possible to have two JS files on 1 </i> <hr align="center" size="1" color="lightgrey" width="90%"> <a href="http://www.hashemian.com/tools/ViewAddComments.php?a=111782002342a094770ea76" target="_blank" style="color:blue;text-decoration:none">more&hellip;</a><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>');

