function auto_show_hide(id){	
	setTimeout("mHide('"+id+"')",3000);
}

function show_hide(id){
	if(document.getElementById(id).style.display == 'block')
		mHide(id);
	else
		mShow(id);
}

function mHide(id){
	if(document.getElementById(id)) document.getElementById(id).style.display = 'none';
}

function mShow(id){
	document.getElementById(id).style.display = 'block';
}

window.onload = function(){
	auto_show_hide("informer");
	//if(document.getElementById("pomoc")) document.getElementById("pomoc").style.display = 'block';
}
function warnById(id) {

  element = document.getElementById(id).value;
  
  if(element == 3) {
  
    return confirm('UWAGA!\n\nZmieniono status wypłaty prowizji na wypłacone.\n\nOperacja spowoduje wyzerowanie prowizji kontrahenta.\n\nCzy chcesz kontynuować?\n\n');
  
  }
}

function LyteboxtoGoUlotka(){
  var objLink = document.getElementById('ulotka'); 
  myLytebox.start(objLink,false,false);
}

function LyteboxtoGoUlotka2(){
  var objLink = document.getElementById('ulotka2'); 
  myLytebox.start(objLink,false,false);
}

function LyteboxtoGoUlotkaParam(id){
  
  if(document.getElementById(id)) {
	var objLink = document.getElementById(id); 
	myLytebox.start(objLink,false,false);
  }
}

function CheckAll(max)
{
    for (i = 0; i < max; i++) {
        email = document.getElementById('emails_' + i);
        if(email) email.checked = true ;
    }
}

function UnCheckAll(max)
{
    for (i = 0; i < max; i++) {
        email = document.getElementById('emails_' + i);
        if(email) email.checked = false ;
    }
}

function popitup(url) {
noweOkno = window.open(url, '', 'menubar=no, toolbar=no, location=yes, scrollbars=yes, resizable=yes, status=yes, width=500, height=200');

}

