/***************************
	(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.
***************************/
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="09/11/2006 22:58:40";	//US formatted Date
	var obj_datemod=document.lastModified;
	var str_datemod=new Date(obj_datemod);
	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.toLocaleString()+".<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...
