$(document).ready(function() {
  $("a[href^=http]").each(
    function(){
      if(this.href.indexOf(location.hostname.replace("www\.","")) == -1) {
        $(this).attr('target', '_blank');
      }
    }
  )
});

//used for header form submit
function onSubmitHandler(frm) { 
   try {   
        window.location = frm.action +
        frm.insurance.options[frm.insurance.selectedIndex].value;
    } catch (e) { }
}

jQuery(function ($) { 
    // add class last to the articles from gbr module
    $("div.articles-wrapper > div > ul > li:last-child").addClass('last');
});

