function popOpen(url, width, height)
{
	var hwnd = window.open(url, 'popwnd', 'width='+width+',height='+height+', menubar=0,scrollbars=1,resizable=0');
	hwnd.focus();
}

function potwierdz(tresc, adresURL) {
  if(confirm(tresc))
    window.location = adresURL;

}


function Formularz() {
	document.WYSLIJ.ok.disabled = true;
}

function mail(user, domain){window.location = 'mailto:'+user+'@'+domain;}
function flip( rid ) {
document.getElementById(rid).style.display = document.getElementById(rid).style.display == 'none' ? 'block' : 'none'
}

function emoticon(text) { 
        text = ' ' + text + ' '; 
        document.post.tresc.value += text; 
        document.post.tresc.focus(); 
} 


function selectCheckboxes(what,pref,stan){
  for(i=0;i<what.elements.length;i++){
    if(what.elements[i].type == "checkbox" && what.elements[i].name.substring(0,pref.length) == pref){
      what.elements[i].checked=stan;
    }
  }
}
