//留곹겕
function Link_Href(link, bd_cd, idx, no){
var params = {"todo":"link_chk", "link":link, "bd_cd":bd_cd, "idx":idx, "no":no};
$.post('/ajax/board/Ajax_Board.php', params, function(returnData, textStatus){
switch (returnData) {
case 'true':
//openWin(link, '', '500', '500', 'resizable=yes,status=ys,toolbar=no,menubar=yes');
//openWindow(link, '', 0, 0, '500', '500', 'yes')
window.open(link,'','width=500,height=500,top=0,left=0, scrollbars=yes, toolbar=yes, status=yes, menubar=yes, resizable=yes');
break;
case 'false':
alert("�ㅻ쪟媛� 諛쒖깮�섏��듬땲��.\n\n�ㅼ떆 �쒕룄 �섏꽭��.");
break;
default:
error_alert(returnData);
break;
}
});
}
// 寃��� �� �꾩넚
function SearchWord(){
if ($("#f #input_key").val() == "") {
alert("寃��됱뼱瑜� �낅젰�댁<�몄슂");
$("#input_key").focus();
return false;
}
}
//由ъ뒪�� 踰꾪듉湲곕뒫
function Board_Select_Proc(title, mode) {
var _cnt = 0;
var count = $("input[name='ChkGidx[]']").size();
for (var i=0; i �쒓렇�� ��씠 �뚯씠釉뷀룺蹂대떎 �щ떎硫� �뚯씠釉뷀룺�� �곸슜�쒕떎.
function resizeBoardImage(imageWidth, borderColor) {
var target = document.getElementsByName('target_resize_image[]');
var imageHeight = 0;
if (target) {
for(i=0; i imageWidth) {
imageHeight = parseFloat(target[i].width / target[i].height)
target[i].width = imageWidth;
target[i].height = parseInt(imageWidth / imageHeight);
target[i].style.cursor = 'pointer';
// �ㅽ��쇱뿉 �곸슜�� �대�吏��� ��낵 �믪씠瑜� ��젣�쒕떎
target[i].style.width = '';
target[i].style.height = '';
}
if (borderColor) {
target[i].style.borderWidth = '1px';
target[i].style.borderStyle = 'solid';
target[i].style.borderColor = borderColor;
}
}
}
}
function getFontSize() {
var fontSize = parseInt(get_cookie("ck_fontsize")); // �고듃�ш린 議곗젅
if (isNaN(fontSize)) { fontSize = 12; }
return fontSize;
}
function scaleFont(val) {
var fontSize = getFontSize();
var fontSizeSave = fontSize;
if (val > 0) {
if (fontSize <= 18) {
fontSize = fontSize + val;
}
} else {
if (fontSize > 12) {
fontSize = fontSize + val;
}
}
if (fontSize != fontSizeSave) {
drawFont(fontSize);
}
set_cookie("ck_fontsize", fontSize, 30, g4_cookie_domain);
}
function drawFont(fontSize) {
if (!fontSize) {
fontSize = getFontSize();
}
var subject=document.getElementById("writeSubject");
var content=document.getElementById("writeContents");
var comment=document.getElementById("commentContents");
var wr_subject=document.getElementById("wr_subject");
var wr_content=document.getElementById("wr_content");
if (comment) {
var commentDiv = comment.getElementsByTagName("div");
var lineHeight = fontSize+Math.round(1.1*fontSize);
}
fontSize = fontSize + "px";
if (subject)
subject.style.fontSize=fontSize;
if (content)
content.style.fontSize=fontSize;
if (wr_subject)
wr_subject.style.fontSize=fontSize;
if (wr_content)
wr_content.style.fontSize=fontSize;
if (commentDiv) {
for (i=0;i