function OC_PopupLayer(ocLayerName, PopupDiv) {
	
	var PopupDivContentName = PopupDiv;
	var PopupLayerName = ocLayerName;	
	this.PWW = '400';
	this.PWH = '400';
	
	
	this.CreateLayer = function () {		
		var NewBit = document.getElementById(PopupDivContentName).innerHTML;				
		document.write('<div id="' + PopupLayerName + '" class="OC_PopupBacking"><div id="' + ocLayerName + '_win" class="OC_PopupContainer" style="width:' + this.PWW + ';height:' + this.PWH + '">' + NewBit
 + '</div></div>');					
	}	
	
	this.MakeVisible = function () {
		document.body.style.overflow = 'hidden';
		document.getElementById(PopupLayerName).style.display = 'block';			
	};
	
	this.MakeInvisible = function () {
		document.body.style.overflow = 'auto';
		document.getElementById(PopupLayerName).style.display = 'none';			
	};
		
		
}

