var fileserver_url = ""

function goView( number ){
	if (number==0) return;
	document.frm_act.encoding = "application/x-www-form-urlencoded";
	document.frm_act.action = "view.asp"
	document.frm_act.curnumber.value= number;
	document.frm_act.submit();
}


function goBefore( num ){
	document.frm_act.encoding = "application/x-www-form-urlencoded";
	document.frm_act.action = "view.asp"
	document.frm_act.curnumber.value = num;
	document.frm_act.submit();
}
function goNext( num ){
	document.frm_act.encoding = "application/x-www-form-urlencoded";
	document.frm_act.action = "view.asp"
	document.frm_act.curnumber.value = num;
	document.frm_act.submit();
}

function goWrite(){
	document.frm_act.action = "write.asp"

	document.frm_act.write_type.value= "add";
	document.frm_act.submit();
}
function goReply(){
	document.frm_act.action  = "write.asp";
	document.frm_act.write_type.value = "reply";
	document.frm_act.submit();
}
function goEdit(){
	document.frm_act.action = "write.asp";
	document.frm_act.write_type.value = "edit";
	document.frm_act.submit();
}
//------------------------------------


//--------------------------------------
function goXTWrite(){
	document.frm_act.action = fileserver_url + "xt_write.asp"
	document.frm_act.submit();
}

function goXTDelete(){
	if(confirm("Á¤¸»·Î »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?")==true){	
		var str = document.frm_act.value
		document.frm_act.encoding = "application/x-www-form-urlencoded";
		document.frm_act.action = fileserver_url + "xt_delete.asp?seq_id=" + str;
		document.frm_act.submit();
	}		
}

function goSearch(){	
	document.frm_act.encoding = "application/x-www-form-urlencoded";
	document.frm_act.action = "list.asp";
	document.frm_act.page.value	= "1";
	return true;
}

function goList(page){			
	document.frm_act.encoding = "application/x-www-form-urlencoded";
	document.frm_act.action = "list.asp";
	document.frm_act.submit();
//history.back();
}
	
function resetForm(){
	document.frm_act.reset();
}

function executeVote( menu ,  number ){	
	var result = callPage( "lib/xt_board_vote.asp?menu="+menu+"&seq_id=" + number );
//	alert( result );
}

function executeDownNu( number ){
	var result = callBasePage( "call_down.asp?curnumber=" + number );
	return result;
}

function executeDownload( path , number , filename){
	var url = path + "&filename=" + filename + "&code=" + number;
//	alert(executeDownNu( number ));
	document.location = url;
}

function board_vote(seq_id,menu){
	var	url="/lib/xt_board_vote.asp?seq_id="+seq_id+"&menu="+menu;
//	alert(url);
	var result = callPage(url);
	alert(result);
	if(result=="ÃßÃµÇØ ÁÖ¼Å¼­ °¨»çÇÕ´Ï´Ù"){
		self.document.location.reload();
	}
}


