//°Ë»ö ¾ÆÀÌÄÜ ÃÊ±â ¼ÂÆÃ
function initOnOff(userId, title, content) {
	var obj_userId, obj_title, obj_content;
	obj_userId = "searchUserId";
	obj_title = "searchTitle";
	obj_content = "searchContent";
	if (userId == "1")
	{
		document[obj_userId].src="/images/bt_list_search_user_on.gif";
	}
	else
	{
		document[obj_userId].src="/images/bt_list_search_user.gif";
	}
	if (title == "1")
	{
		document[obj_title].src="/images/bt_list_search_subject_on.gif";
	}
	else
	{
		document[obj_title].src="/images/bt_list_search_subject.gif";
	}
	if (content == "1")
	{
		document[obj_content].src="/images/bt_list_search_contents_on.gif";
	}
	else
	{
		document[obj_content].src="/images/bt_list_search_contents.gif";
	}
}

//°Ë»ö ¾ÆÀÌÄÜ º¯°æ
function OnOff(name, img) {
  if(document.search[name].value=='1')
  {
   document.search[name].value='0';
   ImgSrc="/images/" + img + ".gif";
   document[name].src=ImgSrc;
  }
  else
  {
   document.search[name].value='1';
   ImgSrc="/images/" + img + "_on.gif";
   document[name].src=ImgSrc;
  }
}

function commentOk(msg) {
	if (document.commentForm.comment.value == "")
	{
		alert(msg);
		document.commentForm.comment.focus();
		return;
	}
	else {
		document.commentForm.submit();
	}
}

function commentDel(commentNo, msg) {
	if(confirm(msg)) {
		document.commentDel.commentNo.value = commentNo;
		document.commentDel.submit();
	}
}

function popImgOpen(theURL,winName,features) {
  window.open(theURL,winName,features);
}