function disablePage(pElement){
	//Recupero Dimensioni 
	var DivRef = $('disablebox');
	
	if (pElement) {
		var coords = pElement.positionedOffset();
		DivRef.style.top = coords[1] + 'px';
		DivRef.style.left = coords[0] + 'px';
		DivRef.style.width = pElement.getWidth() + 'px';
		DivRef.style.height = pElement.getHeight() + 'px'; 
	} 
	else {
		DivRef.style.top = '0px';
		DivRef.style.left = '0px';
		DivRef.style.width = '100%';
		DivRef.style.height = '100%';
	}
   
    DivRef.setStyle( {
		backgroundColor: '#fff',
    	opacity: '0.25',
		filter: 'alpha(opacity=25)',
		display: 'block',
		cursor: 'wait'
		});
}

function enablePage()
{
	var DivRef = $('disablebox');
    
	DivRef.setStyle( {
		backgroundColor: '',
    	opacity: '1',
		filter: '',
		display: 'none',
		cursor: 'auto'
		});
		
}
