﻿<!--
	function OpenLayerPopupPublic(opeurl, height, width)
	{
		if(document.getElementById("tblFlexObject") != null)
		{
			document.getElementById("tblFlexObject").style.display = "none";
			//document.getElementById("tblLayerBack").style.display = "block";
			
			if(document.getElementById("productArea").style.display != "block")
				document.getElementById("tblLayerBack").style.display = "block";
		}

		if(document.getElementById("cot_tl_fixed") != null)
		{
			document.getElementById("cot_tl_fixed").style.display = "none";
		}

		$('#LayerPopupPublic').load(opeurl);
		$("#LayerPopupPublic").dialog('open');
		
		$(function() {
			$("#LayerPopupPublic").dialog({
				bgiframe: true,
				height: height,
				width: width,
				modal: true,
				//position: [parseInt(windowsize_w),95],
				overlay: {
					backgroundColor: '#000',
					opacity: 0.5
				}
			});
		});
	}
	
	function CloseLayerPopupPublic()
	{
		$(function() {
			$("#LayerPopupPublic").dialog('close');
		});

		if(document.getElementById("tblFlexObject") != null)
		{
			//document.getElementById("tblFlexObject").style.display = "block";
			document.getElementById("tblLayerBack").style.display = "none";
			if(document.getElementById("productArea").style.display != "block")
				document.getElementById("tblFlexObject").style.display = "block";
		}

		if(document.getElementById("cot_tl_fixed") != null)
		{
			document.getElementById("cot_tl_fixed").style.display = "block";
		}
	}
	
	
	function OpenPopupPublic(opeurl, height, width)
	{
		window.open(opeurl,'footerinfo', 'toolbar=no, status=no, location=no, directories=no, menubat=no, scrollbars=no, resizable=no, left=' + (screen.width - width) / 2 + ',top=' + (screen.height - height) / 2 + ', width='+width+', height='+height);
	}

//-->
