/*********************************************************************************
 *
 *      loginFunctions.js
 *
 *      Ensure use of HTTPS when logging in
 *
 *
 *      Version:        1.0
 *      Date:           15 Mar 2005
 *      Author:         David Cooper
 *
 */


/*
 * Using HTTPS submit the form setting the form action 
 * to the indicated URL.
 */
function secureSubmit( form, actionURL ) 
{
    form.action.value = "https://" + location.hostname + actionURL;
    return form.submit();
}

/*
 * Logoff and switch back to HTTP
 */
function logout( form, actionURL ) 
{
    form.action = "http://" + location.hostname + actionURL;
    return form.submit();
}