window.onerror = null
	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);
	if (browserVer>= 3) version = "n3";
	 else version = "n2";

function PrintDate ()
{
     var Months = new Array('01','02','03','04','05','06','07','08','09','10','11','12');
	 Stamp = new Date();
	year = Stamp.getYear();
	if (year < 2000){
		year = 1900 + year;
	}
	Day = Stamp.getDate();
	if (Day < 10) {
	Day = '0' + Stamp.getDate();
	}
	document.write( Day + "." + Months[Stamp.getMonth()] + "." + year);
}

function imgflip (imageID,path) {
	if (version == "n3")
	{
	  imag = new Image;
	  imag.src = path; 
	  document.images[imageID].src = eval("imag.src");
	}
}

function set_on (id)
{
    imgflip('active_'+id,'img/button_on.gif');
}

function set_off (id)
{
    imgflip('active_'+id,'img/button_off.gif');
}
