	function ChgStyle(Cat , tbl , Sort)
	{
		var LayerID = eval("document.all.ID_" + tbl + "_" + Cat);
		var LayerLen = LayerID.length;
		for (i = 0 ; i < LayerLen ; i ++ )
		{
			LayerID[i].style.display = Sort;
		}		
	}

	function ShowMainLayer(Cat , tbl)
	{
		switch (Cat)
		{
			case "1":
				ChgStyle(Cat , tbl , "")
				ChgStyle("2" , tbl , "none")
				ChgStyle("3" , tbl , "none")
				ChgStyle("4" , tbl , "none")
			break;

			case "2":
				ChgStyle(Cat , tbl , "")
				ChgStyle("1" , tbl , "none")
				ChgStyle("3" , tbl , "none")
				ChgStyle("4" , tbl , "none")
			break;

			case "3":
				ChgStyle(Cat , tbl , "")
				ChgStyle("1" , tbl , "none")
				ChgStyle("2" , tbl , "none")
				ChgStyle("4" , tbl , "none")
			break;

			case "4":
				ChgStyle(Cat , tbl , "")
				ChgStyle("1" , tbl , "none")
				ChgStyle("2" , tbl , "none")
				ChgStyle("3" , tbl , "none")
			break;
		}
	}

	function ShowShotInfo(tbl , Subject , Idx , Img , Category)
	{

		var LayerName_Img = eval("document.all.ID_Main_Img_" + tbl + "_" + Category) ;
		var LayerName_Category = eval("document.all.ID_Main_CategoryImg_" + tbl + "_" + Category) ;
		var LayerName_Subject = eval("document.all.ID_Main_Subject_" + tbl + "_" + Category) ;
		var CategoryImg = "<img src='/images/CategoryImg/" + tbl + "/icon_list_0" + Category + ".gif'>";
		if (Img == "") Img = "main_noimg.gif"
		
	//	var ImgInfo = "<img src='/Board/Img/" + tbl + "/" + Img + "' onerror=\"this.src='/images/main_noimg.gif'\" width='97' height='130'>" ;
		var ImgInfo = "<img src='http://img.psp1004.com/Board/" + Img + "' onerror=\"this.src='/images/main_noimg.gif'\" width='97' height='130'>" ;
		var CategoryInfo = Category ; 
		var SubjectInfo = "<a href='./Board/View.asp?tbl=" + tbl + "&Idx=" + Idx + "' class='main_point'>" + Subject + "</a>"
		

		LayerName_Img.innerHTML = ImgInfo ;
		LayerName_Category.innerHTML =  CategoryImg  ;
		LayerName_Subject.innerHTML = SubjectInfo ;

	}