function httpsCheck()
    {
    if(window.location.href.substring(0,7)=="http://")
        {
        var https = confirm("Do you prefer a https secure connection?\n\nPlease click 'OK' and be prepared to accept the verisign certificate from 'webserver.ispgateway.de manually. \nElse click 'Cancel' to go ahead without encrypted connection.\n");
        if(https) 
            {
            /*alert("https" + window.location.href.substring(4));*/
            window.location.href = "https" + window.location.href.substring(4);
            }
        }
    }

    