I have this function which works only for 10 digits.
function telValide( tel ) { var reg = new RegExp(\'^[0-9]{10}$\', \'i\'); return reg.test(tel); } <
var reg = new RegExp('^((06)|(07))[0-9]{8}$', 'i');