﻿/*
* Copyright (C) 2000-2010 Komplett ASA. All rights reserved.
*/

/*
* Used to give the user an OK/Cancel dialog box with the given
* message before form submit.
*/
function registerEvent_ConfirmFormSubmit(formId, message)
{
    if (!document.getElementById) return;
    var f = document.getElementById(formId);

    if(f)
    {
        f.onsubmit = function() {return confirm(message);};
    }
}



