Compare 2 Text Fields in a FileBound Form

This is a script to put in the FileBound Form Designer to compare two text fields and throw a popup error after clicking SUBMIT that says they don't match:

function checkform(){
    if(document.getElementById("SingleLineText6").value != document.getElementById("SingleLineText7").value)
    {
        alert("Answers must be the same");
        return false;
    }
    return true;
}

Refer to the provided screenshot below to identify the correct ID values to be used in the script mentioned above.