﻿




// Define the CurrTime variable to be the current time converted to UTC.

var CurrTime = new Date();
CurrTime = Date.UTC(CurrTime.getUTCFullYear(), CurrTime.getUTCMonth(), CurrTime.getUTCDate(), CurrTime.getUTCHours(), CurrTime.getUTCMinutes());


function GetDuration(DateStr)

{

var Min1 = 60000;
var Hour1 = 3600000;
var Day1 = 86400000;
var Week1 = 604800000;
var Mins120 = 7200000;
var Hours48 = 172800000;
var Days14 = 1209600000;

var PostTime;
var TimeDiff;
var Duration;
var BogusDate;


PostTime = new Date(DateStr);
PostTime = PostTime.getTime();

TimeDiff = CurrTime - PostTime;

if (TimeDiff > 0)
	{
	if (TimeDiff < Mins120)
		{
		TimeDiff = parseInt(TimeDiff / Min1);
		Duration = String(TimeDiff) + ' minutes ago';
		}
	else if (TimeDiff < Hours48)
		{
		TimeDiff = parseInt(TimeDiff / Hour1);
		Duration = String(TimeDiff) + ' hours ago';
		}
	else if (TimeDiff < Days14)
		{
		TimeDiff = parseInt(TimeDiff / Day1);
		Duration = String(TimeDiff) + ' days ago';
		}
	else
		{
		TimeDiff = parseInt(TimeDiff / Week1);
		Duration = String(TimeDiff) + ' weeks ago';
		}
	}
else
	{
	Duration = '';
	}
return Duration;

}

// Write the document.

document.write('<center>');
document.write('<table border="1" rules="none" bordercolor="#777777" cellpadding="2" cellspacing="0" width="120" bgcolor="#CCCCCC">');
document.write('<tr>');
document.write('<td bgcolor="#000000" width="1"/>');
document.write('<td bgcolor="#000000">');
document.write('<center>');
document.write('<font color="#FFFFFF"><b>CrimeSpot<br/><i>Express</i></b></font>');
document.write('</center>');
document.write('</td>');
document.write('<td bgcolor="#000000" width="1"/>');
document.write('</tr>');





var sourceTitle = 'Poe&#39;s Deadly Daughters';
var postTitle = 'An Editor&#39;s Advice on Publishing';
var postURL = 'http://poesdeadlydaughters.blogspot.com/2010/03/editors-advice-on-publishing.html';
var postSummary = 'Sandra Parshall John Betancourt’s Wildside Press is hundreds of miles from New York, but from his vantage point in Bethesda, Maryland, he has a clear...';
var postAuthor = 'Sandra Parshall';
var postCreatedUTC = 'Mar 10 2010  8:00AM';
var postCreatedLocal = 'Mar 10 2010  3:00AM';



document.write('<tr>');
document.write('<td/>');
document.write('<td valign="top">');
document.write('<br/>');
document.write('<center>');
document.write('<b>' + sourceTitle + '</b><br/>');
document.write('<font size="-1">');
document.write('<a href="' + postURL + '"><b>' + postTitle + '</b></a><br/>');
document.write('</font>');
document.write('</center>');
document.write('<font size="-1">');
document.write(postSummary);
document.write('<br/>');
document.write('<center>');





document.write('<font color="gray">by </font><font color="#FF8000">' + postAuthor + '</font><br/>');





var Duration;

Duration = GetDuration(postCreatedUTC + ' GMT');

if (Duration == '')
	{
	document.write('<font color="gray">at </font>' + postCreatedLocal);
	}
else
	{
	document.write('<font color="red">' + Duration + '</font>');
	}

document.write('</td>');
document.write('<td/>');
document.write('</tr>');
document.write('<tr>');
document.write('<td/>');
document.write('<td bgcolor="gray"/>');
document.write('<td/>');
document.write('</tr>');





var sourceTitle = '&#39;Do You Write Under Your Own Name?&#39;';
var postTitle = 'Lennox Kemp and M.R.D. Meek';
var postURL = 'http://doyouwriteunderyourownname.blogspot.com/2010/03/lennox-kemp-and-mrd-meek.html';
var postSummary = 'When I first started reviewing crime fiction in the late 1980s, I received a number of books published in the famous Collins Crime Club, an...';
var postAuthor = 'Martin Edwards';
var postCreatedUTC = 'Mar 10 2010  7:28AM';
var postCreatedLocal = 'Mar 10 2010  7:28AM';



document.write('<tr>');
document.write('<td/>');
document.write('<td valign="top">');
document.write('<br/>');
document.write('<center>');
document.write('<b>' + sourceTitle + '</b><br/>');
document.write('<font size="-1">');
document.write('<a href="' + postURL + '"><b>' + postTitle + '</b></a><br/>');
document.write('</font>');
document.write('</center>');
document.write('<font size="-1">');
document.write(postSummary);
document.write('<br/>');
document.write('<center>');





document.write('<font color="gray">by </font><font color="#FF8000">' + postAuthor + '</font><br/>');





var Duration;

Duration = GetDuration(postCreatedUTC + ' GMT');

if (Duration == '')
	{
	document.write('<font color="gray">at </font>' + postCreatedLocal);
	}
else
	{
	document.write('<font color="red">' + Duration + '</font>');
	}

document.write('</td>');
document.write('<td/>');
document.write('</tr>');
document.write('<tr>');
document.write('<td/>');
document.write('<td bgcolor="gray"/>');
document.write('<td/>');
document.write('</tr>');





var sourceTitle = 'Central Comics Zone';
var postTitle = 'Planetary - Volume 4 and a look back';
var postURL = 'http://centralcomicszone.blogspot.com/2010/03/planetary-volume-4-and-look-back.html';
var postSummary = 'Warren Ellis has put a lot of words out into the world for people to read. And I mean A LOT of words. And while...';
var postAuthor = 'Jon The Crime Spree Guy';
var postCreatedUTC = 'Mar 10 2010  7:25AM';
var postCreatedLocal = 'Mar  9 2010 11:25PM';



document.write('<tr>');
document.write('<td/>');
document.write('<td valign="top">');
document.write('<br/>');
document.write('<center>');
document.write('<b>' + sourceTitle + '</b><br/>');
document.write('<font size="-1">');
document.write('<a href="' + postURL + '"><b>' + postTitle + '</b></a><br/>');
document.write('</font>');
document.write('</center>');
document.write('<font size="-1">');
document.write(postSummary);
document.write('<br/>');
document.write('<center>');





document.write('<font color="gray">by </font><font color="#FF8000">' + postAuthor + '</font><br/>');





var Duration;

Duration = GetDuration(postCreatedUTC + ' GMT');

if (Duration == '')
	{
	document.write('<font color="gray">at </font>' + postCreatedLocal);
	}
else
	{
	document.write('<font color="red">' + Duration + '</font>');
	}

document.write('</td>');
document.write('<td/>');
document.write('</tr>');
document.write('<tr>');
document.write('<td/>');
document.write('<td bgcolor="gray"/>');
document.write('<td/>');
document.write('</tr>');





document.write('<tr>');
document.write('<td/>');
document.write('<td>');
document.write('<br/>');
document.write('<center>');
document.write('<font size="-1"><i>Read the rest at</i></font><br/><a href="http://www.CrimeSpot.net"><b>CrimeSpot.net</b></a>');
document.write('</center>');
document.write('</td>');
document.write('<td/>');
document.write('</tr>');
document.write('<tr>');
document.write('<td colspan="3">');
document.write('&nbsp;');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</center>');


                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               