


	function show_img(ji_num, jb_idx, jb_sort, img_name, jf_idx, img_w, img_h) { 

		var Vimg_w, Vimg_h, Vscrollbar, Vresizable
		var winw, winh
		var screen_width = screen.width

		if (img_w > 1024 || img_h > 768) {

			if (img_w > 1024)	{
				Vimg_w = 824;
				winw	 = parseInt((screen_width - Vimg_w) / 2);
			} else {
				Vimg_w = parseInt(img_w) + 18;
				winw   = parseInt((screen_width - Vimg_w) / 2);
			}

			if (img_h > 668)	{
				Vimg_h = 668;
				winh   = parseInt((screen.height - Vimg_h) / 2);
			} else {
				Vimg_h = parseInt(img_h) + 18;
				winh   = parseInt((screen.height - Vimg_h) / 2);
			}


			Vresizable = 'yes';
			Vscrollbar = 'yes';
			
		} else {
			Vimg_w = parseInt(img_w);
			Vimg_h = parseInt(img_h);
			winw = parseInt((screen_width - img_w) / 2);
			winh = parseInt((screen.height - img_h) / 2);
			Vresizable = 'no';
			Vscrollbar = 'no';
		}

		var opt = 'toolbar=no,resizable='+Vresizable+',scrollbars='+Vscrollbar+',location=no,resize=no,menubar=no,';
		opt=opt+'directories=no,copyhistory=0,';
		opt=opt+'width='+Vimg_w+',height='+Vimg_h+',top='+winh+',left='+winw; 

		var targetSTR;

		targetSTR = "../../Jsource/Jboard/include/img_view.asp?ji_num="+ji_num+"&jb_idx="+jb_idx;
		targetSTR = targetSTR+"&jb_sort="+jb_sort+"&file="+img_name+"&jf_idx="+jf_idx;
		targetSTR = targetSTR+"&img_width="+img_w+"&img_height="+img_h;
		window.open(targetSTR, 'new_window_1', opt);

	}




	function notice_ContentView(relative_location, notice_folder, ji_num, jb_idx, jb_sort) {
		var targetSTR;

		targetSTR = relative_location + "Jsource/Jboard/content.asp?ji_num="+ji_num+"&jb_idx="+jb_idx;
		targetSTR = targetSTR+"&jb_sort="+jb_sort+"&screen_width="+screen.width;
		window.location.href = targetSTR;
	}



	function notice_ExecuteContentView(relative_location, notice_folder, ji_num, jb_idx, jb_sort) {
		var targetSTR;

		targetSTR = relative_location + "web_page/"+notice_folder+"/content.asp?ji_num="+ji_num+"&jb_idx="+jb_idx;
		targetSTR = targetSTR+"&jb_sort="+jb_sort+"&screen_width="+screen.width;
		window.location.href = targetSTR;
	}

