function change_month( month )
	{
	advAJAX.get({
    url: "moduly/kalendarz.php?month=" + month 
    ,	   
    onSuccess : function(obj) 
		{ 
		document.getElementById('main_call').innerHTML = obj.responseText  ; 
		}
		,
    onError : function(obj) { alert("Error: " + obj.status); }
	});
	}

function show_cal ()
  {
  cal = document.getElementById ('cal_body');
  
  if (cal.style.display == 'none')
    cal.style.display = ''; 
    else
    cal.style.display = 'none'; 
  }

function check_sub ()	{
  if (document.getElementById('sub_del').checked == true ) document.getElementById('sub_submit').disabled = false;
  if (document.getElementById('sub_add').checked == true )
    {
    document.getElementById('sub_submit').disabled = true ;
    	if ((document.getElementById('sub_email').value != '' ) && (document.getElementById('sub_name').value != '' ))
		    {
		    document.getElementById('sub_submit').disabled = false ;
	     	}
    }
  }

function displayWindow(url, width, height){
var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',top=30,left=100,resizable=no,scrollbars=no,menubar=no');
}

function popup(url ){
var Win = window.open(url, 'mapa' ,'width=100,height=100,top=30,left=100,resizable=yes,scrollbars=yes,menubar=no');
}

function _menu (obj)
  {
  ul = obj.parentNode.getElementsByTagName('ul'); 
  if ( ul.length )
    {
    if (  ul[0].style.display == '' || ul[0].style.display == 'none' )  
      ul[0].style.display = 'block';   
    else
      ul[0].style.display = 'none';
    }
  }
