function openWindow(type,link,params) {
	switch(type) {
		case 'link':
			params='';
			break;
		case 'map':
			params='width=866,height=643,toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=0,resizable=1';
			break;
		case 'image':
			if (screen.availWidth) width='width='+Math.ceil(screen.availWidth*0.9)+',';
			else width='';
			if (screen.availHeight) height='height='+Math.ceil(screen.availHeight*0.8)+',';
			else height='';
			params=width+height+'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1';
			break;
	}
	openWin=window.open(link,'_blank',params);
	openObj=(typeof(openWin)=='object')?1:0;
/*	if (openObj) with (openWin) {
		moveTo(0,20);
		focus();
	} */
	return openObj;
}

function startClock(h,m,s) {
	var data='';
	if (h<10) hours='0'+h;
	else hours=h;
	if(s<10) seconds='0'+s;
	else seconds=s;
	if(m<10) minutes='0'+m;
	else minutes=m;
	data=hours+':'+minutes+':'+seconds+' CET';
	document.getElementById('time').innerHTML=data;
	s++;
	if (s==60) {
		s=0;
		m++;
	}
	if (m==60) {
		m=0;
		h++;
	}
	if (h==24) {
		h=0;
	}
	setTimeout('startClock('+h+','+m+','+s+');',1000);
}
