// JavaScript Document
function jGridReq(url,data)
{
	var top=findPosY(document.getElementById('grid'));
	var left=findPosX(document.getElementById('grid'));
 	overlay=$('<div>').attr({'id':'gridOverlay'}).css({
		"position":"absolute",
		"z-index":1000,
		"height":$('#grid').outerHeight(),
		"width":$('#grid').outerWidth(),
		"top":top,
		"left":left,
		"background-color":"#000000",
		"opacity":"0.2"
		});
	loading=$('<div>').attr({'id':'gridLoading'}).html('<img src="multimedias/images/graphics/ajax-loader3.gif" />').css({
		"position":"absolute",
		"z-index":999,
		"top":top+$('#grid').outerHeight()/2-30,
		"left":left+$('#grid').outerWidth()/2,
		"background-color":"#000000"
		});
	$(document.body).append(overlay);
	$(document.body).append(loading);
	jAjax.sendRequest({'url':url,'data':data,'callback':function(resp){
																		$('#gridOverlay').remove();
																		$('#gridLoading').remove();
																		$('#gridContent').html(resp);
																	   }});
}
