function oo(a)
{
	b = a.toString();
	if (b.length==1) b = '0'+b;
	return b;
}


function cdate() {
   var now = new Date();
   r = oo(now.getDate()) + "." + oo(now.getMonth()+1) + "&nbsp;&nbsp;" + oo(now.getHours()) +":"+ oo(now.getMinutes());
   return r;
}


function imageWin(website, ww, hh) {
 var winwidth = screen.availWidth;
 var winheight = screen.availHeight;
 var width = ww+20;
 var height = hh+20;
 var xx = (winwidth-width)/2;
 var yy = (winheight-height)/2;
  if (document.all) {
	 var sizer = window.open("","","left="+xx+",top="+yy+",width="+width+",height="+height);
	 sizer.location = website;
  }
}

