// JavaScript Document
	function newtopicAdd(){
		if(chknewform()){
		xajax.$('newtopicSubmit').disabled=true;
		xajax.$('newtopicSubmit').value="處理中";
		xajax_newtopic(xajax.getFormValues('newtopic'));
		return false;
		}
	}
	function replytopicAdd(){
		if(chknewform()){
		xajax.$('replytopicSubmit').disabled=true;
		xajax.$('replytopicSubmit').value="處理中";
		xajax_replytopic(xajax.getFormValues('replytopic'));
		return false;
		}
	}
	function chknewform(){
		if(xajax.$('publisherid').value=='0'){
			alert('請先登錄後在進行發言');
			xajax_founder('sign_member.php');
			return false;
		}
		if(xajax.$('title').value==''){
			alert('欄位輸入不完整');
			xajax.$('title').focus();
			return false;
		}
		if(xajax.$('context').value==''){
			alert('欄位輸入不完整');
			xajax.$('context').focus();
			return false;
		}
		return true;
	}
	function resetnewtopicform(){
		xajax.$('newtopic').reset();
		xajax.$('newtopicSubmit').disabled=false;
		xajax.$('newtopicSubmit').value="送出";
	}
	function resetreplytopicform(){
		xajax.$('replytopic').reset();
		xajax.$('replytopicSubmit').disabled=false;
		xajax.$('replytopicSubmit').value="送出";
	}
