function redirigerAccueil(msg, lang) { alert(msg); if (lang == 'en') { location.href = "http://www.immigration-quebec.gouv.qc.ca/en/electronic-services/index.html"; } else if (lang == 'es') { location.href = "http://www.immigration-quebec.gouv.qc.ca/es/servicios-electronicos/index.html"; } else { location.href = "http://www.immigration-quebec.gouv.qc.ca/fr/services/index.html"; } } function parseUrlParameters(url) { var obj = new Object(); var nvpairs = url.substring(1).split("&"); for (var idx = 0; idx < nvpairs.length; idx++) { var tokens = nvpairs[idx].split("="); obj[unescape(tokens[0])] = tokens.length == 2 ? unescape(tokens[1]) : undefined; } return obj; } //-------------------------------------- bloquer copier coller -------------------------------- function bloqueCopierColler(e) { if (!e) var e = window.event; e.cancelBubble = true; if (e.stopPropagation) e.stopPropagation(); return false; } function appliqueRegleCopierColler() { for (var iForm = 0; iForm < document.forms.length; iForm++) { var formCourante = document.forms[iForm]; for (var iInput = 0; iInput < formCourante.length; iInput++) { var inputCourant = formCourante[iInput]; var styles = inputCourant.className.split(" "); for (var iStyle = 0; iStyle < styles.length; iStyle++) { var style = styles[iStyle]; if (style == "nocopy") { inputCourant.oncopy = bloqueCopierColler; } else if (style == "nopaste") { inputCourant.onpaste = bloqueCopierColler; inputCourant.ondrop = bloqueCopierColler; } else if (style == "nocut") { inputCourant.oncut = bloqueCopierColler; } } } } } //-------------------------------------- end / bloquer copier coller --------------------------------