﻿//Opens email contact forms for customer when called
function ContactExisting() { 
    var popup = window.open('https://secure.skandiabanken.no/skcert/Market/CustomerService/CustomerService.aspx?channel=nonsecure','','width=850,height=650,scrollbars=yes,toolbars=no,location=no,status=no,resizable=yes');
    popup.focus();
}

function ContactNonCustomer() {
    var popup = window.open('https://secure.skandiabanken.no/skcert/Market/CustomerService/CustomerService.aspx?channel=noncustomer','','width=850,height=650,scrollbars=yes,toolbars=no,location=no,status=no,resizable=yes');
    popup.focus();
}

//jQuery stuff
$(document).ready(function() {
    
        // handle longrunning processes
        $(".forwardBtn").click(function() {       
            $('.longrunning').block({
            message: '<br/><div><img src="/Templates/Styles/Black/Progress-indicator20fr.gif"/></div><br/><h4>Vennligst vent...</h4>',
            css: { 'background-color': '#F4F4F5' }
            });
            return true;
        });

    $("form").preventDoubleSubmit();
});



