// FUNCTION TO DISPLAY TIME ON PAGES
function startTime()
{
	var today=new Date()
	var h=today.getHours()
	var m=today.getMinutes()
	var s=today.getSeconds()
	
	// add a zero in front of numbers<10
	m=checkTime(m)
	s=checkTime(s)
	document.getElementById("dateTime").innerHTML=Date().substring(0,28)
	t=setTimeout("startTime()",500)
}
// FUNCTION TO DISPLAY TIME ON PAGES
function checkTime(i)
{
	if (i<10) 
	{
		i="0" + i
	}
	return i
}

function popup()
{
	var popurl="";
	winpops=window.open(popurl,"SwissCMS","width=800,height=368,scrollbars,toolbar,menubar,resizable,");
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',false'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// FUNCTION TO OPEN/CLOSE THE LITTLE QUICK LINKS SECTIONS ON HOME PAGE
function switchMenu(obj) {
	var el = document.getElementById(obj);
	if ( el.style.display != "none" ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}