function send_contacts(){ if (document.getElementById('email').value.length<=5 ){ alert("Please check : email"); }else if (document.getElementById('tel').value.length<=5 ){ alert("Please check : Tel"); }else if (document.getElementById('names').value.length<=2 ){ alert("Please check : Name"); }else if (document.getElementById('txarea').value.length<=5 ){ alert("Please check : Content"); }else{ xajax_send_contactx( document.getElementById('org').value, document.getElementById('names').value, document.getElementById('email').value, document.getElementById('tel').value, document.getElementById('fax').value, document.getElementById('txarea').value ); } } function OMOver(OMO){ OMO.style.backgroundColor='saddlebrown'; } function OMOut(OMO){ OMO.style.backgroundColor=''; } function show_reply(title_id){ xajax_show_reply(title_id); } function show_new_post(){ html_loading='
'; document.getElementById('forum').innerHTML=html_loading; xajax_show_new_post(); } function click_reply(title_id){ //檢查表單內容 if( document.forms['f_reply'].author.value.length<2 ){ alert("Please check : Author"); }else if( document.forms['f_reply'].email.value.length<5 ){ alert("Please check : email"); }else if( document.forms['f_reply'].content.value.length<10 ){ alert("Please check : content"); }else{ xajax_reply_form(title_id, xajax.getFormValues('f_reply')); } }//end function function click_new_post(){ //檢查 發新帖 表單內容 if( document.forms['f_reply'].author.value.length<2 ){ alert("Please check : Author"); }else if( document.forms['f_reply'].email.value.length<5 ){ alert("Please check : email"); }else if( document.forms['f_reply'].title.value.length<2 ){ alert("Please check : Title"); }else if( document.forms['f_reply'].content.value.length<10 ){ alert("Please check : content"); }else{ xajax_click_new_post(xajax.getFormValues('f_reply')); } }//end function function reload_title_id(title_id){ var turl="?forum=1&title_id="+title_id; window.open(turl,'_top'); }