function Outsideclick2(e){
    if(e.target == modal2){
    modal2.style.display='none';
}
}
//function to close modal if outside click

function to close modal if outside click
function to close modal if outside click
function Outsideclick2(e){
    if(e.target == modal2){
    modal2.style.display='none';
}
}
function Outsideclick2 ( e ) { if ( e . target == modal2 ) { modal2 . style . display = 'none' ; } }
function to close modal if outside click
function to close modal if outside click