function go(where) {
	var url;
	switch(where){
		case 1: url = "login_admin_only"; break;
		case 2: url = "introduce_list"; break;
		default: url = "zsb"; break;
	}
	document.location.href = url+".php";
}
function postList(cate,pno){
	document.location.href = "post_list.php?cate="+cate+"&pno="+pno;
}
function pageView(cate,pno) {
	document.location.href = "post_list.php?cate="+cate+"&pno="+pno+"&st="+document.post_list_info_form.st.value+"&skey="+document.post_list_info_form.skey.value+"&sdate1="+document.post_list_info_form.sdate1.value+"&sdate2="+document.post_list_info_form.sdate2.value;
}
function postView(cate,pid) {
	document.location.href = "post_list.php?cate="+cate+"&st=3&pid="+pid;
}
function dateView(sdate1,sdate2) {
	parent.document.location.href = "post_list.php?cate=0&st=2&sdate1="+sdate1+"&sdate2="+sdate2;
}
function commentView(pid,pno) {
	document.location.href = "post_comment.php?pid="+pid+"&pno="+pno;
}
function commentDel(pid,cid) {
	document.location.href = "post_comment_ok.php?mode=d&pid="+pid+"&cid="+cid;
}
function guestbooktView(pno) {
	document.location.href = "post_comment.php?pno="+pno;
}
function guestbooktUpt(gfid,pno) {
	document.location.href = "post_comment.php?mode=m&gfid="+gfid+"&pno="+pno;
}
function guestbooktDel(gfid,pno) {
	document.location.href = "post_comment_ok.php?mode=d&gfid="+gfid+"&pno="+pno;
}
function trackbackView(pid,pno) {
	document.location.href = "post_trackback.php?pid="+pid+"&pno="+pno;
}
function trackbackCopy(url){
	window.clipboardData.setData('Text',url);
	window.alert("Æ®·¢¹é ÁÖ¼Ò°¡ º¹»çµÇ¾ú½À´Ï´Ù.");
}
function introduceView(pno) {
	document.location.href = "introduce_list.php?pno="+pno;
}
function calendarView(cy,cm) {
	document.location.href = "calendar.php?cur_year="+cy+"&cur_month="+cm;
}
function vmChange(vm) {
	document.location.href = "vmchange.php?vm="+vm;
}
function linkView() {
	document.location.href = "link.php";
}
function xmlView(){
	xmlwin = window.open("rss.php", "RSS", "");
}
function imgView(imgurl) {
    imgwin = window.open("image_view.php?imgurl="+imgurl,"show","width=10,height=10,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
}
function imgResize(img) {
	var tmp = new Image();
	tmp.src = img.src;
	if(tmp.width > 570){
		img.width = 570;
	}else{
		img.width = tmp.width;
	}
	return;
}
function openSub(pid,type){	
	var sbfrm = eval("document.all.subfrm" + pid);
	var sbfrmtype = eval("document.all.subfrmtype" + pid);
	var sbbtn1 = eval("document.all.subbtn1_" + pid);
	var sbbtn2 = eval("document.all.subbtn2_" + pid);
	var sbbtn3 = eval("document.all.subbtn3_" + pid);
	sbfrm.src = "";
	sbfrm.height = 0;
	if(sbfrmtype.value > 0 && sbfrmtype.value == type){
		sbfrmtype.value = 0;
		sbbtn1.style.textDecoration = "";
		sbbtn1.style.fontWeight = "";
		sbbtn2.style.textDecoration = "";
		sbbtn2.style.fontWeight = "";
		sbbtn3.style.textDecoration = "";
		sbbtn3.style.fontWeight = "";
	}else{
		if(type == 1){
			sbfrm.src = "post_comment.php?pid="+pid;
			sbfrmtype.value = 1;
			sbbtn1.style.textDecoration = "underline";
			sbbtn1.style.fontWeight = "bold";
			sbbtn2.style.textDecoration = "";
			sbbtn2.style.fontWeight = "";
			sbbtn3.style.textDecoration = "";
			sbbtn3.style.fontWeight = "";
		}else if(type == 2){
			sbfrm.src = "post_trackback.php?pid="+pid;
			sbfrmtype.value = 2;
			sbbtn1.style.textDecoration = "";
			sbbtn1.style.fontWeight = "";
			sbbtn2.style.textDecoration = "underline";
			sbbtn2.style.fontWeight = "bold";
			sbbtn3.style.textDecoration = "";
			sbbtn3.style.fontWeight = "";
		}else if(type == 3){
			sbfrm.src = "post_file_list.php?pid="+pid;
			sbfrmtype.value = 3;
			sbbtn1.style.textDecoration = "";
			sbbtn1.style.fontWeight = "";
			sbbtn2.style.textDecoration = "";
			sbbtn2.style.fontWeight = "";
			sbbtn3.style.textDecoration = "underline";
			sbbtn3.style.fontWeight ="bold";
		}
	}
	return;
}
