function OpenWindow(link,target,x,y,width,height,flags) {
	pX = (x == -1) ? (screen.availWidth-width) / 2 : x;
	pY = (y == -1) ? (screen.availHeight-height) / 2 : y;
	add = (flags == 1) ? ",scrollbars=yes" : "";
	window.open(link,target,"width="+width+",Height="+height+",left="+pX+",top="+pY+add);
	return null;
}

function Now() {
	dt = new Date();
	var day  = ((dt.getDate() < 10) ? "0" + dt.getDate() : dt.getDate());
	var month = (((dt.getMonth()+1) < 10) ? "0" + (dt.getMonth()+1) : (dt.getMonth()+1));
	var hour = ((dt.getHours() < 10) ? "0" + dt.getHours() : dt.getHours());
	var minute = ((dt.getMinutes() < 10) ? "0" + dt.getMinutes() : dt.getMinutes());
	var second = ((dt.getSeconds() < 10) ? "0" + dt.getSeconds() : dt.getSeconds());
	document.write(day+"."+month+'.'+dt.getFullYear()+' '+hour+':'+minute+':'+second);
}	