function showProductDet(imgName ,lan ){
 
							 
							blackPage()
							obj = new myAjax();
							obj.xmlHttp.onreadystatechange=function()
							  {
									if (obj.xmlHttp.readyState==1)document.getElementById("imgCell").innerHTML = "<img src='images/lightbox-ico-loading.gif' id='wImg' style='display:block' />"; 
									if (obj.xmlHttp.readyState==4){
												document.getElementById("imgCell").innerHTML = document.getElementById("imgCell").innerHTML + obj.xmlHttp.responseText;
												chkAjaxImageLoad();
										 } 
								}
							url="products/imgAjax.php?imgNa="+imgName+"&time="+obj.time.getTime();
							obj.xmlHttp.open("GET",url,true);
							obj.xmlHttp.send(null);

	

}

function blackPage(){
	
			width = document.body.scrollWidth;
			Height = document.body.scrollHeight;
	 
			document.getElementById("boxy-wrapper").style.width = width+"px";
			document.getElementById("boxy-wrapper").style.height = Height+"px";
			document.getElementById("boxy-wrapper").style.display = "block";
			tbl = document.getElementById("imgDivBig");
			tbl.style.display = "block";
			tbl.style.zIndex = "1339";
			tbl.style.left  = "30%";
			tbl.style.top   = "10%";

}
	
function closeImg(){
	
			document.getElementById("boxy-wrapper").style.display = "none";		
			tbl = document.getElementById("imgDivBig");
			tbl.style.display = "none";
			document.getElementById("imgCell").innerHTML = "<img src='imgs/lightbox-ico-loading.gif' />"; 
			
			
		
	}	
	function chkAjaxImageLoad(){
	  
			

			 notYet = -1;
			 imgObject = document.getElementById("wImg");


		   if(imgObject.complete )notYet = 1;
		   else notYet = 0;
 
			 if(notYet == 1 || notYet == -1  ){
						document.getElementById("wImg").style.display = 'none';
						document.getElementById("largeImg").style.display = 'block';
					}
			else if(notYet == 0){setTimeout("chkAjaxImageLoad()" , 10);}
  

	}

