function duringRequest(state, html) {

	var d = document.getElementsByTagName('body')[0];
	var l = document.createElement('div');
		l.id = 'processLayer';
		l.style.position = 'absolute';
		l.style.top = '0px';
		l.style.left = '0px';
		l.style.zIndex = '900';
		l.style.height = '1000px';
		l.style.marginBottom = '-1000px';
		l.style.width = '100%';
		l.style.backgroundImage = 'url(admin/EG/access/images/back_gray.png)';
		
	l.innerHTML = unescape(html);

	if (state == 'start') {
 		d.appendChild(l, d.firstElementChild);
	} else if (state == 'stop') {
		d.removeChild(d.firstElementChild);
	}
	return true;
}