function underconstruction() { if (confirm("The software which monitors the status of services hasn't been written yet, the status tables are not accurate. Click okay to proceed.")) { txt = "Understood"; } else { notconfirmed() } } function notconfirmed() { if (confirm("You have not confirmed. The status table is not accurate. Please click okay to confirm.")) { txt = "Understood"; } else { notconfirmed() } } underconstruction()