Verifying a PANID using regex
}function verify_pan(){
//match pattern1
let pin1 = document.getElementById("pin1").value.toUpperCase();
let pattern1 = /[A-Z]/;
let result1 = pin1.match(pattern1);
//match pattern2
let pin2 = document.getElementById("pin2").value.toUpperCase();
let pattern2 = /[PCHABGJLFT]/;
let result2 = pin2.match(pattern2);
//match pattern 3
let pin3 = document.getElementById("pin3").value.toUpperCase();
let pattern3 = /[A-Z]/;
let result3 = pin1.match(pattern3);
//match pattern 4
let pin4 = document.getElementById("pin4").value.toUpperCase();
let pattern4 = /[0-9]/;
let result4 = pin4.match(pattern4);
//match pattern 5
let pin5 = document.getElementById("pin5").value.toUpperCase();
let pattern5 = /[A-Z]/;
let result5 = pin1.match(pattern5);
let panid= (result1!==null)&&(result2!==null)&&(result3!==null)&&(result4!==null)&&(result5!==null)
if(panid==false){
alert("Invalid PANID. Please check again")
}