/***************************
	(C) 2005 by Charleshan www.Denninger.nl
	http://www.paranoid.demon.nl
	Free for all users, but leave in this header.
		Started:	08-09-2005
		Last change:	11-09-2006
	==========================
	Function:	What is does:
	GetDocDate()	Returns the lastModified & name of the current document.
	DoTheClock()	Display GetDocDate() & current time in the Windows statusbar.
	==========================
	v1.0	08-09-2005	Based on DoTheClock() found @ http://www.codelifter.com
	v1.1	11-09-2006	Found the correct toLocaleString() trick, addes signature.
	v1.2	13-10-2006	Found the correct toLocaleString() trick, addes signature.
***************************/
var int_Counter=0;
function Scroll(str_input){
    window.status=str_input.substring(int_Counter,str_input.length)+str_input;
    int_Counter++
    if (int_Counter==str_input.length)
       int_Counter=0;
    //timerID=setTimeout("Scroll(str_input)",100)
}

function DoTheClock() {
	window.setTimeout("DoTheClock()",5001);
	str_now=new Date();
	if(document.all||document.getElementById){
		//window.status="Pagina "+GetDocDate().substring(0,GetDocDate().indexOf("<",0))+" - Huidig: "+str_now.toLocaleString()+" - CHD - ";
		Scroll("Pagina "+GetDocDate().substring(0,GetDocDate().indexOf("<",0))+" --- Huidig: "+str_now.toLocaleString()+" --- CHD --- ");
	}else{
		self.status=str_now.toLocaleString();
	}
}
//DoTheClock();	//This is the command, but you can place this line anywhere else in a document between <script> tags...

function GetDocDate() {
	//var obj_datemod="2006/09/11 22:58:40";	//Date syntax: Using hyphens to separate the Year-Month-Day is not standard. new Date('1971/02/11 11:11:11') works fine however in Mozilla based browsers. Reference: http://ejohn.org/projects/rss2json
	var obj_datemod=document.lastModified;
	var str_datemod=new Date(obj_datemod);
	str_datemod=str_datemod.toLocaleString().substr(0,str_datemod.toLocaleString().indexOf(str_datemod.getFullYear())+4);	//Remove the time (like " 0:00:00") from this string" 0:00:00"
	var obj_Temp=window.location+"#";		//obj_Temp.length
	var str_FileName=obj_Temp.substring(obj_Temp.lastIndexOf("/")+1,obj_Temp.indexOf("#",obj_Temp.lastIndexOf("/")+1));
	//if(document.all||document.getElementById)
	return("'"+str_FileName+"' is bijgewerkt op: "+str_datemod+".<br>WebDesign by: <a href=\"http://www.Denninger.nl\" title=\"Charleshan Denninger.\" target=\"_blank\">CHD</a>");
}
//GetDocDate();	//This is the command, but you can place this line anywhere else in a document between <script> tags...

