<!--

//*******************************************************
//Idea by:  Nic Wolfe (Nic@TimelapseProductions.com)
//Web URL:  http://fineline.xs.mw
//This script and many more are available free online at
//The JavaScript Source!! http://javascript.internet.com
//*******************************************************

//function popUp(URL)
//{
//day = new Date();	
//id = day.getTime();
//eval("page" + id + " = window.open(URL, '" + id + "','toolbar=0,scrollbars=1,location=0,//statusbar=0,menubar=0,resizable=0,width=500,height=500,left = 150,top = 50');");
//}

//function popUpToolbar(URL)
//{
//day = new Date();	
//id = day.getTime();
//eval("page" + id + " = window.open(URL, '" + id + "','toolbar=1,scrollbars=1,location=0,//statusbar=0,menubar=0,resizable=0,width=500,height=500,left = 150,top = 50');");
//}



//*************************************************
//AUTHOR: WWW.CGISCRIPT.NET,LLC
//URL: Http://www.cgiscript.net
//Use the script for FREE but leave this message intact.
//Download your FREE CGI/Perl Scripts today!
//(http://www.cgiscript.net/scripts.htm)
//*************************************************
var win = null;

function PopupIfNew(URL,name)
{
alert (URL + "; " + name);
	if (GetDateCookie(name) < GetDateModified(name))
	{
		window.open(URL, name,'scrollbars=yes,location=yes,directories=no,status=no,menubar=no,toolbar=yes,resizable=yes,width=500,height=500,left=150,top=50');
	}
}

// Cookie functions borrowed from:
// Ronnie Moore: visit him at http://www.ronniemoore.com
function GetDateCookie(name)
{
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	
	while (i < clen)
	{
		var j = i + alen;
		if (document.cookie.substring(i,j) == arg)
			return GetCookieVal(j);
		i = document.cookie.indexOf(" ",i) + 1;
		if (i == 0) break;
	}
	return null;
}

function GetCookieVal(offset)
{
	var endstr = document.cookie.indexOf(";",offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset,endstr));
}

function SetDateCookie(name)
{
	var now = new Date;
	var expires = new Date;
	expires = now.getTime() + (365*24*60*60*1000)	// a year's worth of milliseconds
	document.cookie = name + "=" + now + "; Path=/; Expires=" + expires;
}

function GetDateModified(name)
{
	var docval = eval('document.' + name + '.value');
	alert ('docval=' + docval);
}

//*************************************************
//AUTHOR: WWW.CGISCRIPT.NET,LLC
//URL: Http://www.cgiscript.net
//Use the script, just leave this message intact.
//Download your FREE CGI/Perl Scripts today!
//(http://www.cgiscript.net/scripts.htm)
//*************************************************

function popLastMod(URL)
{
var dateModified = document.lastModified;
mydate = dateModified.slice(0,10);

document.write(mydate + " edition"); 
}

// -->
