function loadCreate(img)
{
	if(document.getElementById("divLoading") == null)
	{
		if(img == null)
			 img = 'ajax-loader.gif';
		var imageSrc = img;
		var	divLoading = document.createElement('div');
		divLoading.setAttribute('id', 'divLoading');
		divLoading.style.position = "absolute";
		divLoading.style.zIndex = "5000";
		divLoading.style.left = "0px";
		divLoading.style.top = "0px";
		divLoading.style.width = "100%";
		divLoading.style.height = "100%";
		divLoading.style.background = "white";
		divLoading.style.opacity = '0.6';
		if(document.all && !navigator.userAgent.match(/opera/gi))
			divLoading.style.filter = 'alpha(opacity=60)';
		document.body.appendChild(divLoading);
		
		 var imageZone = document.createElement('img');
		imageZone.setAttribute('id','imageZone');
		imageZone.setAttribute('src',imageSrc);
		imageZone.style.position = "absolute";
		//imageZone.style.top = "2px";
		//imageZone.style.right = "2px";
		imageZone.style.top = "50%";
		imageZone.style.right = "50%";
		divLoading.appendChild(imageZone);
		document.body.appendChild(divLoading); 
		
		/* var loadingMessage = "Loading";
		var messageZone = document.createElement('div');
		messageZone.setAttribute('id', 'messageZone');
		messageZone.style.position = "absolute";
		messageZone.style.top = "50%";
		messageZone.style.right = "50%";
		//messageZone.style.text = 'xxx';
		messageZone.style.background = "red";
		messageZone.style.color = "white";
		messageZone.style.fontFamily = "Arial,Helvetica,sans-serif";
		messageZone.style.fontSize = "12px";
		messageZone.style.padding = "4px";
		divLoading.appendChild(messageZone);
		var text = document.createTextNode(loadingMessage);
		messageZone.appendChild(text);		
		document.body.appendChild(messageZone);*/
		
	}
}

function loadDestroy()
{
	$(document.getElementById('divLoading')).remove();
}
