var lcx=0;

function ply(chtml,tit)
{
			var w = document.documentElement.clientWidth;
			var h = document.documentElement.clientHeight;
			var cd = document.getElementById("lc");
			var ccd = document.getElementById("lcc");
				cd.style.backgroundImage="url(images/bg.jpg)";
				cd.style.border="1px solid #f20000";
				cd.style.position="absolute";
				cd.style.width=w-400+'px';
				cd.style.height=h-150+'px';
				var cdw = cd.offsetWidth;
				var cdh = cd.offsetHeight;
				ccd.style.height=h-170+'px';
				ccd.style.overflowY="scroll";
				ccd.style.overflowX="hidden";
				cd.style.left=200+'px';
				//cd.style.top=50+'px';
				cd.style.top=75+'px';
				cd.style.padding="20px";
	var ctit = document.getElementById("lcl");
		ctit.style.borderBottom="5px solid #f20000";
		ctit.innerHTML="<b style='padding:10px; display:block;'>"+tit+"</b><b style='color:#f20000; position:absolute; right:10px; top:10px; font-size:13px; cursor:pointer;' onclick=ply('"+chtml+"')>Close</b>";
		var opl = document.getElementById("opl");
			opl.style.position="absolute";
			opl.style.left="0px";
			opl.style.top="0px";
			opl.style.width=w+'px';
			opl.style.height=h+'px';
			opl.style.backgroundColor="#000";
			opl.style.opacity="0.8";
			opl.style.filter="alpha(opacity=80)";
		if(lcx==0)
		{
			cd.style.display="block";
			opl.style.display="block";
			ajaxpage(chtml,'lcc');
			lcx=1;
		}
		
		else if(lcx==1)
		{	
			opl.style.display="none";
			cd.style.display="none";
			lcx=0;
		}
						
}

function bcaw(s,d)
{
	var a = document.getElementById("bgim");
	a.innerHTML="<img src='"+s+".jpg' /><p style='text-align:center; padding:4px; margin:0px;'><b>"+d+"</b></p>"
	
	}
