function Validate()
        {          
           
var _vendor = document.getElementById(txtVendorCode);
           
var _receiver = document.getElementById(txtReceiver);
           
var _payment = document.getElementById(ddlPayment);
           
var _x = _payment.options[_payment.selectedIndex].value;           
                                   
           
var _str = “”;           
           
           
if (_vendor.value.length == 0)
            {
               
if (_str.length != 0) {_str += , ; }
                _str
+= Venfor code;                  
            }
           
           
if (_payment.selectedIndex == 0)
            {  
               
if (_str.length != 0) {_str += , ; }
                _str
+= Payment method;
            }
           
           
if (_receiver.value.length == 0)
            {
               
if (_str.length != 0) {_str += , ; }
                _str
+= ชื่อผู้รับเงิน;               
            }                       
           
           
if (_str.length != 0)
            {
                alert(
กรุณาระบุ + _str);
               
return false;           
            }
           
           
return;
           
        }