// Java-Script Algemeen: Date and Ratings
// Author: Jo Ampe 		Januari '2000. 
//**************************************************************** 
//Log of changes: 
//   03 Feb 00 - Fix initialization
//       
 
// Date: Last Update 
// ***************************************************************** 
function DateLastUpdate() {//constructor 
    //declaration
	var currentDate = "";
	var eeuw = 1900;
	updatedDate = new Date(document.lastModified);

	//browsercheck
	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);

	//make date
	if (browserName == "Netscape" ) eeuw = 1900 ;
	if (browserName == "Microsoft Internet Explorer" && browserVer>=4) eeuw = 0;

	document.write("Laatste Wijziging: " + updatedDate.getDate() + "/" + (updatedDate.getMonth() + 1) + "/" + (updatedDate.getYear()+ eeuw) );
}

// Definition NedStat:Statistiek 
// ***************************************************************** 
function NedStatBasic(PageReference) {
    doc=document;
    doc.write("<img src=\"http://nl.nedstatbasic.net");
    doc.write("/cgi-bin/referstat.gif?");
    doc.write("name="+PageReference+"&refer=");
    doc.write(escape(top.document.referrer));
    doc.write("\" width=1 height=1 align=\"right\">");
}


// Definition NedStat:Rating 
// ***************************************************************** 
function RatingWin(PageReference) { 
    var ratingpage = "http://rating.nedstat.nl/cgi-bin/rating.cgi?name=" + PageReference;
    var ratingwin = window.open
        (ratingpage,
        'NSRating',
        'width=500,height=525,resizable=1,menubar=0,scrollbars=1'); 
}


// SaifMail 
// *****************************************************************
// Information on http://www.scriptsearch.com/cgi-bin/jump.cgi?ID=3734 
// or http://www.faketp.com/
// <script language="JavaScript" type="text/javascript" >safemail("joe.blow","inter.net","Joe Blow")</script> ==> displayed as Joe Blow
// <script language="JavaScript" type="text/javascript" >safemail("joe.blow","inter.net")</script> ==> displayed as joe.blow@inter.net 
function safemail(name, domain, display) {
	if (name) {
			displayed=(typeof(display)=="undefined") ? name+"@"+domain : display
			document.write('<a href=mailto:' + name + '@' + domain + '>' + displayed + '</a>');
	}
}
// end generated JavaScript. -->

// resizeText 
// *****************************************************************
// <img id="plustext" alt="Increase text size" src="images/makeTextBigger.jpg" onclick="resizeText(1)" />
// <img id="minustext" alt="Decrease text size" src="images/makeTextSmaller.jpg" onclick="resizeText(-1)" />
function resizeText(multiplier) {
  if (document.body.style.fontSize == "") {
    document.body.style.fontSize = "1.0em";
  }
  document.body.style.fontSize = parseFloat(document.body.style.fontSize) + (multiplier * 0.2) + "em";
}
// end generated JavaScript. -->
