/* FILE ARCHIVED ON 15:49:14 Jan 16, 2009 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 5:02:25 Jul 7, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ function getPageLang(sUrl) { var sLang = "e"; if (sUrl.indexOf("/francais/") != -1) { sLang = "f"; } return sLang; } function show_email_page() { var str_url = document.URL; var sLang = getPageLang(str_url); var str_referrer = document.referrer; var str_referrer_pos = str_referrer.indexOf("?"); var str_active_host = "https://webarchive.library.unt.edu/eot2008/20090116154914/http://active.inspection.gc.ca/"; //var str_active_host = "https://webarchive.library.unt.edu/eot2008/20090116154914/http://10.130.3.204:89/"; if ((str_referrer != "") && (str_referrer_pos > -1)) { str_referrer = Left(str_referrer, str_referrer_pos) } if (sLang == "f") { var txt_1 = "Si vous voulez recommander cette page à un ami ou vous envoyer un rappel, vous n’avez qu’à indiquer votre nom et courriel ainsi que le nom et le courriel de la personne que vous désirez informer de l’Agence canadienne d’inspection des aliments et cliquer sur le bouton d’envoi." var txt_2 = "Cette page ne s’affichera pas si les paramètres de votre navigateur sont établis pour bloquer le renvoi à la dernière page visitée." var txt_3 = "Aucun courriel ou renseignement personnel ne sera conservé." var txt_4 = "mandataire" var txt_5 = "Votre nom :" var txt_6 = "Votre courriel :" var txt_7 = "Nom de votre ami :" var txt_8 = "Courriel de votre ami :" var txt_9 = "Voici le message qui sera envoyé :" var txt_10 = "Un ami qui a visité le site Web de l’Agence canadienne d’inspection des aliments (votre courriel) croyait que l’information à l’adresse suivante vous intéresserait :" var txt_11 = "Vous pouvez vous inscrire pour recevoir des avis électroniques concernant les mises à jour et les rappels d’aliments publiés dans le site Web de l’ACIA à l’adresse suivante : https://webarchive.library.unt.edu/eot2008/20090116154914/http://www.inspection.gc.ca/francais/tools/listserv/listsubf.shtml

" var txt_12 = "Vous pouvez vous inscrire à divers fils RSS concernant les mises à jour et les rappels d’aliments publiés dans le site Web de l’ACIA à l’adresse suivante : https://webarchive.library.unt.edu/eot2008/20090116154914/http://active.inspection.gc.ca/fra/util/rssf.asp

" var txt_13 = "Une copie de votre recommandation sera envoyée à votre courriel." var txt_14 = "Envoyer"; var txt_15 = "Vous devez sélectionner une page avant de la référer à un(e) ami(e)."; var txt_16 = " : Votre nom est invalid."; var txt_17 = " : Votre courriel est invalid."; var txt_18 = " : Nom de votre ami est invalid."; var txt_19 = " : Courriel de votre ami est invalid."; var txt_20 = "Erreur "; } else { var txt_1 = "If you would like to recommend this page to a friend, or if you want to send yourself a reminder, here is the easy way to do it! Simply fill in your name and e-mail address along with the name and e-mail address of the person you wish to tell about the Canadian Food Inspection Agency, and click the SEND button." var txt_2 = "This page will not work if your browser is set to block the referral to the last page you visited." var txt_3 = "No e-mail or personal information will be retained." var txt_4 = "mandatory" var txt_5 = "Your name:" var txt_6 = "Your e-mail:" var txt_7 = "Friend's Name:" var txt_8 = "Friend's e-mail:" var txt_9 = "Your message will say:" var txt_10 = "A visitor to the Canadian Food Inspection Agency web site (your e-mail address) thought you would be interested in the information found at:" var txt_11 = "You can subscribe to various e-mail notifications about CFIA web site updates and food recalls at: https://webarchive.library.unt.edu/eot2008/20090116154914/http://www.inspection.gc.ca/english/tools/listserv/listsube.shtml" var txt_12 = "You can subscribe to various RSS feeds about CFIA web site updates and food recalls at: https://webarchive.library.unt.edu/eot2008/20090116154914/http://active.inspection.gc.ca/eng/util/rsse.asp" var txt_13 = "A copy of your suggestion will be sent to your e-mail." var txt_14 = "Send"; var txt_15 = "You must choose a page before referring it to a friend."; var txt_16 = ": Your name is invalid."; var txt_17 = ": Your e-mail is invalid."; var txt_18 = ": Friend's name is invalid."; var txt_19 = ": Friend's e-mail is invalid."; var txt_20 = "Error "; } if (str_referrer == "") { document.write("

" + txt_15 + "

");; } var param_array = new Array(); param_array = parseQuery(); var str_name = ""; var str_email = ""; var str_f_name = ""; var str_f_email = ""; var str_send = ""; var i = 0; if (param_array["n"] != null) {str_name = param_array["n"];} if (param_array["e"] != null) {str_email = param_array["e"];} if (param_array["fn"] != null) {str_f_name = param_array["fn"];} if (param_array["fe"] != null) {str_f_email = param_array["fe"];} if (param_array["s"] != null) {str_send = param_array["s"];} if (param_array["u"] != null) {str_referrer = param_array["u"];} var regEx = new RegExp("'", 'gi'); str_name = str_name.replace(regEx, '''); str_f_name = str_f_name.replace(regEx, '''); document.write("
"); document.write(""); document.write(""); document.write("

" + txt_1 + "

"); document.write("

" + txt_2 + "

"); document.write("

" + txt_3 + "

"); document.write("

*" + txt_4 + "

"); if ((str_name == "") && (str_referrer != "") && (str_send == "y")) {i = i+1; document.write("

" + txt_20 + i + " " + txt_16 + "

")}; document.write("

" + txt_5 + "* 

"); if ((str_referrer != "") && (check_email(str_email) == false) && (str_send == "y")) {i = i+1; document.write("

" + txt_20 + i + " " + txt_17 + "

")}; document.write("

" + txt_6 + "* 

"); if ((str_f_name == "") && (str_referrer != "") && (str_send == "y")) {i = i+1; document.write("

" + txt_20 + i + " " + txt_18 + "

")}; document.write("

" + txt_7 + "* 

"); if ((str_referrer != "") && (check_email(str_f_email) == false) && (str_send == "y")) {i = i+1; document.write("

" + txt_20 + i + " " + txt_19 + "

")}; document.write("

" + txt_8 + "* 

"); document.write("

" + txt_9 + "

"); document.write("

" + txt_10 + "
"); displaypageurl(str_referrer); document.write("

"); document.write("

" + txt_11 + "

"); document.write("

" + txt_12 + "

"); document.write("

" + txt_13 + "

"); if (str_referrer == "") { document.write("

"); } else { document.write("

"); } document.write("
") } function check_email(str_email) { var emailRegxp = /^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[_a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+(?:[A-Za-z]{2}|com|org|net|gov|biz|info|name|aero|biz|info|jobs|museum)$/ if (str_email.match(emailRegxp)) {return true;} else {return false;} } function displaypageurl(str_referrer) { var str_url = document.URL; var sLang= getPageLang(str_url); if (sLang == "f") { var str_not_found_msg = "Page non trouvée."; } else { var str_not_found_msg = "Page not found."; } if (str_referrer != "") { document.write(str_referrer); } else { document.write("" + str_not_found_msg + ""); } } function parseQuery () { var params = new Object(); var str_url = document.URL; var sLang = getPageLang(str_url); var str_referrer = document.referrer; var str_query = document.location.search.substring(1); var val = ""; if (!str_query) { return params; // return empty object } else { var pairs = str_query.split("&"); for ( var i = 0; i < pairs.length; i++ ) { var KeyVal = pairs[i].split('='); var key = unescape( KeyVal[0] ); var val = unescape( KeyVal[1] ); params[key] = val; } return params; } } function Left(str, n){ if (n <= 0) return ""; else if (n > String(str).length) return str; else return String(str).substring(0,n); } function Right(str, n){ if (n <= 0) return ""; else if (n > String(str).length) return str; else { var iLen = String(str).length; return String(str).substring(iLen, iLen - n); } }