/**
 * ÆäÀÌÁö ÀÌµ¿
 */
function cMove(t) {
	document.location=t;
}

function topMove(t) {
	top.location = t;
}


/**
 * °Ë»ö
 */
function s1search(f) {
	f.submit();
}

function s2search(f) {
	f.submit();
}


/**
 * ÇÁ¸°Æ®ÇÒ ÆäÀÌÁö¸¦ ¿¬´Ù.
 */
function openPrintWin(url) {
	window.open(url, "print", "width=680,height=500,scrollbars=1");
}


/**
 * ³ªÀÇ ¼öÃ¸¿¡ ÀúÀåÇÏ±â
 */
function saveMyNotes(user_id, contents_id) {
	if (user_id == "") {
		alert("·Î±×ÀÎÀ» ¸ÕÀúÇÏ¼¼¿ä.");
		return;
	}
	
	var url = "/common/saveMyNotes.htm?user_id=" + user_id + "&contents_id=" + contents_id;
	window.open(url, "savemynotes", "width=335,height=190");
}


/**
 * ³ªÀÇ ¼öÃ¸¿¡¼­ »èÁ¦ÇÏ±â
 */
function deleteMyNotes(f) {
	f.action = "/common/deleteMyNotes.htm";
	var checked = false;
	for (i = 0; i < f.length; i++) {
		if (f.elements[i].checked == true) {
			checked = true;
			break;
		}
	}
	if (checked == false) {
		alert("¸ÕÀú »èÁ¦ÇÒ ÄÁÅÙÃ÷¸¦ ¼±ÅÃÇÏ¼¼¿ä.");
		return;
	}
	
	window.open('', "deltemynotes", "width=50,height=25");
	f.target = "deltemynotes";
	f.submit();
}
