<!--- Hide script from old browsers

var scrollCounter = 0;
var scrollText    = "  Dierenopvang MaxiPaxi!!  ";
var scrollDelay   = 80;
var i = 0;

function Scroller() {
  while (i ++ < 140)
    scrollText = " " + scrollText;
    window.status = scrollText.substring(scrollCounter++, scrollText.length);
    if (scrollCounter == scrollText.length) scrollCounter = 0;
    setTimeout("Scroller()", scrollDelay);
}

function checknew(date,but) {
  var check = "no";
  expdate = new Date(date);
  curdate = new Date();
  if (expdate.getTime() > curdate.getTime()) check = "yes";
  return check;
}

function movepic(but) {
//document.write ('move_but:',but,'<BR>');
document[but].src="images/new.gif";
}

function displaydated(now) {
Y2K = now.getYear();
MIN = now.getMinutes();
if (Y2K < 2000) { Y2K = Y2K + 1900 }
if (MIN < 10 ) { MIN = "0"+MIN }
day=new Array("Zon","Maan","Dins","Woens","Donder","Vrij","Zater"); 
month=new Array("Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","October","November","December");

ret = ""+day[now.getDay()]+"dag "+now.getDate()+" "+month[now.getMonth()]+" "+Y2K+" "+now.getHours()+":"+MIN; 
return ret;
}

function displaydate() {
Data = displaydated(new Date());
DAT = Data.length-6;
document.write( Data.substring(DAT, 0) );
}

function date_lastmodified(){
  var lmd = document.lastModified;
  var s   = "Unknown";
  var d1;

  // check if we have a valid date before proceeding
  if(0 != (d1=Date.parse(lmd))) { s = "" + displaydated(new Date(d1)); }
  return s;
}

function TimeStamp() {
document.write("<font size=\"1\">Pagina is gewijzigd op "+  date_lastmodified() +" uur </font>");
}

/*
Some other stuff
*/
function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}

function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}

function Delete(thisform) {
	if (confirm("Weet je zeker dat je deze wil verwijderen?"))
		thisform.submit();
}

// end hiding from old browsers -->

