﻿// JScript File

function Enter(e,btn) {

    if(window.event){ 
        characterCode = window.event.keyCode; //character code is contained in IE's keyCode property
    }
    else{
        characterCode = e.which; //character code is contained in NN4's which property
    }

    if(characterCode == 13){ //if generated character code is equal to ascii 13 (if enter key)
        //Search();//submit the form
        eval(document.getElementById(btn).href);
        return false 
    }
    else{
        return true 
    }

}

$(document).ready(function() {

    $("a font").contents().unwrap();


    $("#content3 a").each(function() {
        var className = $(this).attr("class");
        var href = $(this).attr("href");
        if (className == "" && href != null) {
            if (href.substring(0, 4) == "http" && href.substring(0, 21) != "http://www.cggz-brussel" && href.substring(0, 17) != "http://cggz-brussel") {
                $(this).attr("class", "External");
                //$(this).attr("target", "_blank");
            }
            else {
                $(this).attr("class", "Internal");
            }
        }
    });

});
