function gantiGambar(){
    document.getElementById("previewImage").style.display="block";
    document.getElementById("previewImage2").style.display="none";
    document.getElementById("previewImage3").style.display="none";
    document.getElementById("previewImage4").style.display="none";
    document.getElementById("previewImage5").style.display="none";
    document.getElementById("previewImage6").style.display="none";

    document.getElementById('textnums').innerHTML="1 / 6";
    document.getElementById('caption').innerHTML= "K<NAME>";
    document.getElementById('kmrbiasa').style.opacity = "1";
    document.getElementById('kmrbiasa2').style.opacity = "0.6";
    document.getElementById('kmrbiasa3').style.opacity = "0.6";
    document.getElementById('kmrmndi').style.opacity = "0.6";
    document.getElementById('kmrmndi2').style.opacity = "0.6";
    document.getElementById('kmrmndi3').style.opacity = "0.6";
}


function gantiGambar2(){
    document.getElementById("previewImage").style.display="none";
    document.getElementById("previewImage2").style.display="block";
    document.getElementById("previewImage3").style.display="none";
    document.getElementById("previewImage4").style.display="none";
    document.getElementById("previewImage5").style.display="none";
    document.getElementById("previewImage6").style.display="none";


    document.getElementById('textnums').innerHTML="2 / 6";
    document.getElementById('caption').innerHTML= "K<NAME>";
    document.getElementById('kmrbiasa').style.opacity = "0.6";
    document.getElementById('kmrbiasa2').style.opacity = "1";
    document.getElementById('kmrbiasa3').style.opacity = "0.6";
    document.getElementById('kmrmndi').style.opacity = "0.6";
    document.getElementById('kmrmndi2').style.opacity = "0.6";
    document.getElementById('kmrmndi3').style.opacity = "0.6";
}

function gantiGambar3(){
    document.getElementById("previewImage").style.display="none";
    document.getElementById("previewImage2").style.display="none";
    document.getElementById("previewImage3").style.display="block";
    document.getElementById("previewImage4").style.display="none";
    document.getElementById("previewImage5").style.display="none";
    document.getElementById("previewImage6").style.display="none";


    document.getElementById('textnums').innerHTML="3 / 6";
    document.getElementById('caption').innerHTML= "<NAME>";
    document.getElementById('kmrbiasa').style.opacity = "0.6";
    document.getElementById('kmrbiasa2').style.opacity = "0.6";
    document.getElementById('kmrbiasa3').style.opacity = "1";
    document.getElementById('kmrmndi').style.opacity = "0.6";
    document.getElementById('kmrmndi2').style.opacity = "0.6";
    document.getElementById('kmrmndi3').style.opacity = "0.6";
}

function gantiGambar4(){
    document.getElementById("previewImage").style.display="none";
    document.getElementById("previewImage2").style.display="none";
    document.getElementById("previewImage3").style.display="none";
    document.getElementById("previewImage4").style.display="block";
    document.getElementById("previewImage5").style.display="none";
    document.getElementById("previewImage6").style.display="none";


    document.getElementById('textnums').innerHTML="4 / 6";
    document.getElementById('caption').innerHTML= "<NAME>";
    document.getElementById('kmrbiasa').style.opacity = "0.6";
    document.getElementById('kmrbiasa2').style.opacity = "0.6";
    document.getElementById('kmrbiasa3').style.opacity = "0.6";
    document.getElementById('kmrmndi').style.opacity = "1";
    document.getElementById('kmrmndi2').style.opacity = "0.6";
    document.getElementById('kmrmndi3').style.opacity = "0.6";
}

function gantiGambar5(){
    document.getElementById("previewImage").style.display="none";
    document.getElementById("previewImage2").style.display="none";
    document.getElementById("previewImage3").style.display="none";
    document.getElementById("previewImage4").style.display="none";
    document.getElementById("previewImage5").style.display="block";
    document.getElementById("previewImage6").style.display="none";


    document.getElementById('textnums').innerHTML="5 / 6";
    document.getElementById('caption').innerHTML= "<NAME>";
    document.getElementById('kmrbiasa').style.opacity = "0.6";
    document.getElementById('kmrbiasa2').style.opacity = "0.6";
    document.getElementById('kmrbiasa3').style.opacity = "0.6";
    document.getElementById('kmrmndi').style.opacity = "0.6";
    document.getElementById('kmrmndi2').style.opacity = "1";
    document.getElementById('kmrmndi3').style.opacity = "0.6";
}


function gantiGambar6(){
    document.getElementById("previewImage").style.display="none";
    document.getElementById("previewImage2").style.display="none";
    document.getElementById("previewImage3").style.display="none";
    document.getElementById("previewImage4").style.display="none";
    document.getElementById("previewImage5").style.display="none";
    document.getElementById("previewImage6").style.display="block";


    document.getElementById('textnums').innerHTML="6 / 6";
    document.getElementById('caption').innerHTML= "<NAME>";
    document.getElementById('kmrbiasa').style.opacity = "0.6";
    document.getElementById('kmrbiasa2').style.opacity = "0.6";
    document.getElementById('kmrbiasa3').style.opacity = "0.6";
    document.getElementById('kmrmndi').style.opacity = "0.6";
    document.getElementById('kmrmndi2').style.opacity = "0.6";
    document.getElementById('kmrmndi3').style.opacity = "1";
}
