
function popupBlack(appendId, width, left, top, content)
{
	var appendDiv = document.getElementById(appendId);
	
	if(document.getElementById('PopupBlack'))
	{
		closePopup(appendId, 'PopupBlack');
	}
	
	var newPopup = document.createElement('div');
	newPopup.className = 'PopupBlack';
	newPopup.id = 'PopupBlack';
	
	var box = "";
	box += "<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>";
	
	box += "<div class=\"ContentBox1\"><div class=\"leftTop\">";
	box += "<div class=\"rightTop\"></div></div>";
	box += "<div class=\"left\"><div class=\"right\">";
	box += "<div class=\"boxContent\" id=\"popupContent\" style=\"width:"+(width-70)+"px;\">";
	box += content+"</div></div></div>";
	box += "<div class=\"leftBottom\"><div class=\"rightBottom\"></div></div></div>\n";	
	
	box += "</td><td class=\"rightTopShadow\"></td></tr></table>";
	box += "<div class=\"leftBottomShadow\"><div class=\"rightBottomShadow\"></div></div>\n";

	newPopup.style.width = width+'px';
	newPopup.style.left = left+'px';
	newPopup.style.top = top+'px';
	newPopup.innerHTML = box;
	appendDiv.appendChild(newPopup);
}

function closePopup(appendId, popUpId)
{
	var appendDiv = document.getElementById(appendId);
	var removePopup = document.getElementById(popUpId);
	appendDiv.removeChild(removePopup);
}

