function lightDisplay(width,height,noCenter){
	if (!height)
		height=450;
	else
		if (isNaN(height))
			height=450
		
	if (!width)
		width=780;
	else
		if (isNaN (width))
			width = 780;
	var filter = document.createElement('div');
	filter.style.left = '0px';
	filter.style.top = '0px';
	filter.setAttribute ("id","lightBoxBackground");
	document.body.appendChild (filter);
	
	filter.style.width = "100%";
	var scrollTop = Math.max(get_window_height(),Math.max(document.body.scrollHeight,document.documentElement.scrollHeight));
	filter.style.height = scrollTop + 'px';
	
	var popup = document.createElement('div');
	document.body.appendChild (popup);
	popup.setAttribute ("id","lightPopup");
	
	var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
	if (!noCenter){
		popup.style.top = scrollTop + ((get_window_height() / 2) - (height / 2)) + 'px';
		popup.style.left = (get_window_width() / 2) - (width / 2 ) + 'px';
	} else {
		popup.style.top = '0px';
		popup.style.left = '0px';
	}
	popup.style.height = height  + 'px';
	popup.style.width = width + 'px';
	popup.innerHTML = "<table><tr><td style=\"width:" + (width - 20) + "px;background-color:#698b58;color:#ffffff;text-align:center;\" class=\"label\" id=\"light_sub_label\"></td><td style=\"width:20px;background-color:#698b58;color:#ffffff\"><input type=\"button\" class=\"close_box\" style=\"font-size:9px;\" value=\"X\" id=\"lightBoxCloseButton\" onclick=\"lightBoxClear()\" /></td></tr></table><div id=\"light_sub_action\" style=\"height:" + (height - 25) + "px;overflow-y:auto;\" ></div>";
	document.body.style.overflow = "hidden";
}

function lightBoxClear(){
	document.body.removeChild (document.getElementById('lightPopup'));
	document.body.removeChild (document.getElementById('lightBoxBackground'));
	document.body.style.overflow = 'auto';
}

