 
 function gray()
 {
 	
 	var cien = document.getElementById('shadow');
 	var loader = document.getElementById('loader');
 
 
 	if (loader != null)		
		loader.style.display = 'block';
	
	
	if (cien != null)
	{		
		cien.style.opacity= '0.7';
		cien.style.filter="Alpha(Opacity=70)";
		cien.style.display = 'block';
		cien.style.height = document.body.clientHeight + 'px';
		cien.style.width = document.body.clientWidth + 'px';
	}		
	
			
	
	if (loader != null)
	{		
		loader.style.display = 'block';	
		loader.style.top = 350 + 'px' ;
		loader.style.left = cien.offsetWidth/2 - loader.offsetWidth/2 + 'px';			
	}		
	
	return false;
 }
 
 function notgray()
 {
 	var loader = document.getElementById('loader');
 
 
 	if (loader != null)		
		loader.style.display = 'none';
 }
 
 
 function pause(numberMillis) 
 {
  var now = new Date();
  var exitTime = now.getTime() + numberMillis;
  while (true) {
    now = new Date();
    if (now.getTime() > exitTime)
   return;
  }
}
 

 
 function normal()
 {
	
	var elem1 = document.getElementById('tabelaMenu');
	if (elem1 != null)
	{		
		elem1.style.opacity= '0.5'
		elem1.style.filter="Alpha(Opacity=50)";
		elem1.style.display=none;
	}		
	else
		alert('nic nie znalazlem tabelaMenu');
			
	
	var elem = document.getElementById('MainDiv');
	if (elem != null)
	{		
		elem.style.opacity= '0.5'
		elem.style.filter="Alpha(Opacity=50)";
	}		
	else
		alert('nic nie znalazlem maindiv');
		
		
	
	
	
	
	return false;
 }