﻿




// 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 = 'Bill Crider&#39;s Pop Culture Magazine';
var postTitle = 'The Exterminator 2';
var postURL = 'http://billcrider.blogspot.com/2010/09/exterminator-2.html';
var postSummary = '';
var postAuthor = 'Bill Crider';
var postCreatedUTC = 'Sep  3 2010 12:00PM';
var postCreatedLocal = 'Sep  3 2010  7: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 = 'Buzz, Balls & Hype';
var postTitle = 'THE DOCTOR IS IN';
var postURL = 'http://mjroseblog.typepad.com/buzz_balls_hype/2010/09/the-doctor-is-in.html';
var postSummary = 'RESISTANCE For the past week, I’ve been fighting down a sinus infection. I have a sore throat, an earache, some dizziness, and an upset stomach...';
var postAuthor = 'M.J. Rose';
var postCreatedUTC = 'Sep  3 2010 11:19AM';
var postCreatedLocal = 'Sep  3 2010  7:19AM';



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 = 'Rough Edges';
var postTitle = 'Forgotten Books: Fundamentals of Fiction Writing - Arthur Sullivant Hoffman';
var postURL = 'http://jamesreasoner.blogspot.com/2010/09/forgotten-books-fundamentals-of-fiction.html';
var postSummary = 'Arthur Sullivant Hoffman was the editor of the pulp magazine ADVENTURE from 1911 to 1927, when it was considered to be the top pulp in...';
var postAuthor = 'James Reasoner';
var postCreatedUTC = 'Sep  3 2010 11:00AM';
var postCreatedLocal = 'Sep  3 2010  6: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>');





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>');


                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      