function isSecure()
      {
        return location.protocol == 'https:';
      }
      
function checkUrl(url)
{

var cur_url = window.location.href;

var url_check = cur_url.indexOf(url);

if(url_check != -1){

    return true;

}

return false;

}

if(! isSecure() && ( checkUrl('/Kurv.aspx?ID=196') || checkUrl('/Kurv.aspx?ID=199') || checkUrl('/Kurv.aspx?ID=197') || checkUrl('/Kurv.aspx?ID=201') || checkUrl('/Kurv.aspx?ID=303') ) ){
    
   var url = window.location.href;
   window.location = url.replace("http://", "https://");
   
} else if(isSecure() && !( checkUrl('/Kurv.aspx?ID=196') || checkUrl('/Kurv.aspx?ID=199') || checkUrl('/Kurv.aspx?ID=197') || checkUrl('/Kurv.aspx?ID=201') || checkUrl('/Kurv.aspx?ID=303') )){
    
    var url_https = window.location.href;
    window.location = url_https.replace("https://", "http://");
    
}    


