function valid_mail(co) { return (/^[\w\.-]{2,}@[\w\.-]+\.[a-z]{2,5}$/i.test(co)); }
popup="";
function okno(arg,s,x,y) {
	if (popup == '[object]') {popup.close()} else {}
	scr_width = screen.availWidth;
	scr_height = screen.availHeight;
	left_align = eval(scr_width/2)-eval(x/2);
	top_align = eval(scr_height/2)-eval(y/2);
	popup=window.open(arg,'szczegoly','toolbar=0,location=0,direction=0,status=0,resize=0,menubar=0,scrollbars='+s+',width='+x+',height='+y+',left='+left_align+',top='+top_align);
}
function onColor(co,jaki)
{
	co.style.backgroundColor=jaki;
}

function offColor(co,jaki)
{
	co.style.backgroundColor=jaki;
}

function ion(element) {
  element.style.backgroundColor="";
  element.style.color="#000000";
}

function ioff(element,kolor) {
  element.style.backgroundColor="#F3D2D2";
  element.style.color="#000000";
}