function showAllComment(lngProductID)
			{
				window.open("showProductComments.aspx?lngProductID="+lngProductID,"","status=no,scrollbars=yes,width=540,height=800");
			}
			
			function productRemind(lngProductID)
			{
				window.open("productRemind.aspx?lngProductID=" + lngProductID,"","status=no,scrollbars=yes,width=500,height=350");
			}
			
			function addBasket(lngProductID)
			{
				location = "addBasket.aspx?lngProductID=" + lngProductID;
			}
			
			function addToCart()
			{
			
				var lngProductID;
				lngProductID = document.getElementById("dropProductKind").value;
				
				if(lngProductID != 0)
					location = "addBasket.aspx?lngProductID=" + lngProductID;
			}
 			
			function sendComment(lngProductID)
			{
				window.open("productComment.aspx?lngProductID=" + lngProductID,"","status=no,scrollbars=yes,width=400,height=400");
			}
			
			function productAdvice(lngProductID)
			{
				window.open("productAdvice.aspx?lngProductID=" + lngProductID,"","status=no,scrollbars=no,width=300,height=300");
			}
			
			function showCompareList()
			{
				if(document.getElementById("dvProductCompare").style.display=='block')
					document.getElementById("dvProductCompare").style.display='none';
				else
					document.getElementById("dvProductCompare").style.display='block';
			}
			
			function showRate2(lngProductID)
			{
				window.open("showRate.aspx?lngProductID=" + lngProductID,"","status=no,scrollbars=yes,width=850,height=500");
			}
			
			function showRate(lngProductID,TotalPriceYTL)
			{
				window.open("showRate.aspx?lngProductID=" + lngProductID+ "&TotalPriceYTL=" + TotalPriceYTL ,"","status=no,scrollbars=yes,width=850,height=500");
			}
			function goAdvancedSearch()
			{
				if(document.getElementById('hdMarkID'))
				{
					if(document.getElementById('hdMarkID').value != "")
					{
						var lngMarkID = document.getElementById('hdMarkID').value;
						location      = "advancedSearch.aspx?lngMarkID=" + lngMarkID + "&strSearch=&lngCategoryID=0";
					}
				}
			}
			function goAdvancedSearchAuthor()
			{
				
				if(document.getElementById('hdAuthorID'))
				{
					if(document.getElementById('hdAuthorID').value != "")
					{
						var lngAuthorID = document.getElementById('hdAuthorID').value;
						location      = "advancedSearch.aspx?lngAuthorID=" + lngAuthorID + "&strSearch=&lngCategoryID=0";
					}
				}
			}
					
function popImage(imageURL,imageTitle)
			{
				var NS  = (navigator.appName == "Netscape")?true:false;
				var imhHeight,imgWidth,iWidth,iHeight,wnd;
				var objImage = new Image();
				
				objImage.src = imageURL;
				imgHeight    = objImage.height;
				imgWidth     = objImage.width; 
				
				wnd = window.open('about:blank','',"left=0,top=0,scrollbar=no,menu=no,width=" + imgWidth  +  ",height=" + imgHeight);
				
				wnd.document.write("<html>");
				wnd.document.write("<head>");
				wnd.document.write("	<title>" + imageTitle + "</title>");
				wnd.document.write("	<scrip" + "t>");

				wnd.document.write("	function fitPic()");
				wnd.document.write("	{");
                wnd.document.write("		if (window.innerWidth)");
				wnd.document.write("		{");
                wnd.document.write("			var iWidth = window.innerWidth;var iHeight = window.innerHeight;");
				wnd.document.write("		}");
				wnd.document.write("		else")
				wnd.document.write("		{");
				wnd.document.write("			var iWidth = document.body.clientWidth;var iHeight =document.body.clientHeight;");
				wnd.document.write("		}");
                wnd.document.write("		iWidth  = document.images[0].width - iWidth;iHeight = document.images[0].height - iHeight;");
                wnd.document.write("		window.resizeBy(iWidth, iHeight);window.self.focus();");
                wnd.document.write("	}");

				wnd.document.write("	</scrip" + "t>");
				wnd.document.write("</head>");
				wnd.document.write("<body bgcolor='ffffff' scroll='no' style='margin:0px;padding:0px;background-repeat:no-repeat' oncontextmenu='return false;' ondrag='return false;' onload='fitPic();'>");
				wnd.document.write("	<img src='" + imageURL  + "'>");
				wnd.document.write("</body>");				
				wnd.document.write("</html>");
				wnd.document.close();
			}
			
			function getProductIDsForCompare(lngProductID)
			{
				var strTemp = "";
				strTemp = lngProductID;
				if(document.form1.checkX != null)
				{
					for(i=0;i<document.form1.checkX.length;i++)
					{
						if(document.form1.checkX[i].checked == true)
						{
							if(strTemp =="")
								strTemp = document.form1.checkX[i].value;
							else
								strTemp = strTemp + "," + document.form1.checkX[i].value;
						}
					}
					
					alert(strTemp);
					if(strTemp != "")
						window.open("productCompare.aspx?strCompareString=" + strTemp,"","status=no,scrollbars=yes")
				}
			}

