function setDiv(item, value) {
  var activeElement=eval("document.all." + item + "On")
  var inactiveElement=eval("document.all." + item + "Off")

  if (value==1) {
    if (activeElement!=null) activeElement.style.display="";
    if (inactiveElement!=null) inactiveElement.style.display="none";
  } else {
    if (activeElement!=null) activeElement.style.display="none";
    if (inactiveElement!=null) inactiveElement.style.display="";
  }
}


function getDateTime()
{
	var now = new Date();
	var e = '0' + now.getHours();
	if (e.length > 2) e = e.substring(1);
	d = e + ':';
	e = '0' + now.getMinutes();
	if (e.length > 2) e = e.substring(1);
	d += e + ' ';
	e = '0' + now.getDate();
	if (e.length > 2) e = e.substring(1);
	d += e + '.';
	e = '0' + (now.getMonth() + 1);
	if (e.length > 2) e = e.substring(1);
	d += e + '.' + now	.getFullYear();

	return d;
}
function getDate()
{
	var d = "";
	var now = new Date();
	var e = '0' + now.getDate();
	if (e.length > 2) e = e.substring(1);
	d += e + '.';
	e = '0' + (now.getMonth() + 1);
	if (e.length > 2) e = e.substring(1);
	d += e + '.' + now	.getFullYear();

	return d;
}

function openLink(link,windowname)
{
	window.open(link,windowname,'scrollbars,menubar,locationbar,toolbar,resizable');
}
