function focus() {
for (a=0;a<document.links.length;)
document.links[a].onfocus=document.links[a++].blur;
}

function se(a,b) {
	window.location.href = 'mailto:'+a+'@'+b+'.pl';
}


function flip(rid) {
	current=(document.getElementById(rid).style.display == 'none') ? 'block' : 'none';
	document.getElementById(rid).style.display = current;
}

function set(rid,mode) {
 if (document.getElementById(rid)) {
      current=(mode == 1) ? 'block' : 'none';
      document.getElementById(rid).style.display = current;
 }
}


function opensmallwindow(w,h) {
 smallwindow = window.open("", "smallwindow", "width="+w+", height="+h+", toolbar=no, scrollbars=yes");
 x = (screen.Width/2)-(w/2);
 y = (screen.Height/2)-(h/2);
 smallwindow.moveTo(x,y);
 smallwindow.focus();
}