﻿       
        function AddCommissionSub(){
            var strContent=TrimTextBoxValue(document.getElementById('txtContent').value);
            var strName=TrimTextBoxValue(document.getElementById('txtUserName').value);
            var strTEL=TrimTextBoxValue(document.getElementById('txtTEL').value);
            var strMobile=TrimTextBoxValue(document.getElementById('txtMobile').value);
            var strEmail = TrimTextBoxValue(document.getElementById('txtE').value);
            var strAlert='';
            strAlert += RadioMustSelectOne("radlstCommission_","請選擇委託項目");
            if (strContent==''){strAlert += '請填入您的委託內容\n\n';}
            if (strName==''){strAlert += '請填入您的姓名\n\n';}
            if ((strTEL == '') && (strMobile == '') && (strEmail == '')) { strAlert += '連絡電話、手機、Email請擇一填入\n\n'; }
            strAlert += TextBoxMustFill('txtImgA', '請填入驗證碼');
            strAlert += FormStopWord('您所輸入的委託資料中請勿有\'script\', \'iframe\', \'style\', \'link\'字句',new Array('script','iframe','style','link'));
		    if( strAlert != '' ){
			    alert(strAlert);
			    return false;
		    }
            
            document.getElementById('divBlockBackGround').style.display='block';
            document.getElementById('divPopUpMsg').style.display='block';
            setPopUpPosition('divPopUpMsg');
            SetBGDIVWH();
		    return true;
        }
         
         
