var isNull=/^[\s' ']*$/
 

if(isNull.test(tel)&&isNull.test(mobile))
 {
    alert('Phone number and mobile phone number cannot be empty .'); return;  
 }