<!--
function addLink() {
	L1.style.display = ""; L2.style.display = "none"; L3.style.display = "none";
}
function addPhoto() {
	L1.style.display = "none"; L2.style.display = ""; L3.style.display = "none";
}
function addComment(){
	L1.style.display = "none"; L2.style.display = "none"; L3.style.display = "";
}
function cancel_add_link() {
	L1.style.display = "none";
}
function cancel_add_photo() {
	L2.style.display = "none";
}
function cancel_add_comment() {
	L3.style.display = "none";
}
function add_link_check() {
	var t = document.add_link;
	if (t.title.value.length<1) { alert('Title 을 입력하세요.'); t.title.focus(); return false; }
	if (!isvalidhomepage(t.url.value)) { alert('URL 은 http:// 로 시작해야 합니다.'); t.url.focus(); return false; }
	if (t.url.value.length<12) { alert('URL 을 입력하세요.'); t.url.focus(); return false; }
}
function add_photo_check() {
	var t = document.add_photo; if (t.photo.value.length<1) { alert('Photo 파일이 없습니다.'); return false; }
}
function add_comment_check() {
	var t = document.add_comment;
	if (t.memo.value.length<5) { alert('Comment 는 최소 5자입니다.'); t.memo.focus(); return false; }
}
function isvalidhomepage(str) {
	var re = new RegExp("^((ht|f)tp:\/\/)((([a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3}))|(([0-9]{1,3}\.){3}([0-9]{1,3})))((\/|\\?)[a-z0-9~#%&'_\+=:\?\.-]*)*)$","gi");
	var matcharray = str.match(re);
	if (matcharray) return true;
	else return false;
}
//-->