JS_SEARCH_MISSING_ERROR = "Vul aub een zoekterm in."; JS_SEARCH_FORMAT_ERROR = "Vul aub een geldige zoekterm in."; JS_YOUR_NAME_MISSING_ERROR = "Vul aub uw naam in"; JS_FRIEND_NAME_MISSING_ERROR = "Vul aub de naam in van uw vriend(in)"; JS_YOUR_EMAIL_MISSING_ERROR = "Vul aub uw e-mail adres in"; JS_FRIEND_EMAIL_MISSING_ERROR = "Vul aub het e-mail adres in van uw vriend(in)"; JS_YOUR_NAME_FORMAT_ERROR = "Gebruik aub alleen letters en/of cijfers."; JS_FRIEND_NAME_FORMAT_ERROR = "Gebruik aub alleen letters en/of cijfers."; JS_EMAILADDRESS_MISSING_ERROR = "Vul aub uw e-mail adres in"; JS_EMAILADDRESS_FORMAT_ERROR = "Vul aub een geldig e-mail adres in"; JS_COMMENTS_MESSAGE_TOO_LONG = "Gebruik aub niet meer dan 500 karakters."; srcTop1_off = '/Authfiles/Images/488_89069.jpg'; srcTop2_off = '/Authfiles/Images/488_89071.jpg'; srcTop3_off = '/Authfiles/Images/488_89073.jpg'; srcTop4_off = '/Authfiles/Images/488_89075.jpg'; srcTop5_off = '/Authfiles/Images/488_89078.jpg'; srcTop6_off = '/Authfiles/Images/488_89080.jpg'; srcTop1_on = '/Authfiles/Images/488_89070.jpg'; srcTop2_on = '/Authfiles/Images/488_89072.jpg'; srcTop3_on = '/Authfiles/Images/488_89074.jpg'; srcTop4_on = '/Authfiles/Images/488_89076.jpg'; srcTop5_on = '/Authfiles/Images/488_89079.jpg'; srcTop6_on = '/Authfiles/Images/488_89081.jpg'; srcBot1_off = '/Authfiles/Images/488_89580.jpg'; srcBot2_off = '/Authfiles/Images/488_89582.jpg'; srcBot3_off = '/Authfiles/Images/488_89584.jpg'; srcBot4_off = '/Authfiles/Images/488_89586.jpg'; srcBot5_off = '/Authfiles/Images/488_89588.jpg'; srcBot6_off = '/Authfiles/Images/488_89592.jpg'; srcBot1_on = '/Authfiles/Images/488_89581.jpg'; srcBot2_on = '/Authfiles/Images/488_89583.jpg'; srcBot3_on = '/Authfiles/Images/488_89585.jpg'; srcBot4_on = '/Authfiles/Images/488_89587.jpg'; srcBot5_on = '/Authfiles/Images/488_89589.jpg'; srcBot6_on = '/Authfiles/Images/488_89593.jpg'; function topnavOver(intNavNo){ imgTop = eval('document.' + 'navImg_top' + intNavNo); imgTop.src = eval('srcTop' + intNavNo + '_on'); imgBot = eval('document.' + 'navImg_bot' + intNavNo); imgBot.src = eval('srcBot' + intNavNo + '_on'); } function topnavOut(intNavNo){ imgTop = eval('document.' + 'navImg_top' + intNavNo); imgTop.src = eval('srcTop' + intNavNo + '_off'); imgBot = eval('document.' + 'navImg_bot' + intNavNo); imgBot.src = eval('srcBot' + intNavNo + '_off'); } function showOnstate(){ if (document.getElementsByTagName) { textNavTr = document.getElementById('textNav') arrLinks = textNavTr.getElementsByTagName('a'); for (i=0;i of the document being sent var strPageTitle = escape( parent.document.title ); var strURLParams = '?ForceUserDeserialize=-1&pageToSend=' + strCurrentUrl + '&pageTitle=' + strPageTitle + '&mode=submitted'; var strURL = objLink.href + strURLParams; var strWindowProperties = 'width=409,height=460,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; // open the window openWindow(strURL ,'send_to_a_friend', strWindowProperties); // prevent any further code from executing return false; } function openWindow(URL, Name, Args){ popupWin = window.open(URL, Name, Args); popupWin.focus(); } function isEmailChars(str){ var theText = /^[\@\.a-z0-9_-]+$/gi; var result = str.match(theText); if(result != null)return true; else return false; } function isValidEmail(strEmail){ if (trim(strEmail)=='') return false; if (!isEmailChars(strEmail)) return false; var emailPattern = /^[a-z0-9]+([_.-][a-z0-9]+)*@[a-z0-9]+([-.][a-z0-9]+)*[.]{1}[a-z]{2,}$/gi; var result = strEmail.match(emailPattern); if(result != null) return true; else return false; } function isAlphaNumeric(str){ var theText = /^([ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿa-zA-Z0-9]+[ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ\'\s\.a-zA-Z0-9_-]*)$/; var result = str.match(theText); if(result != null) return true; else return false; } function isMessageCommentLengthOK(strComment,len){ if ((trim(strComment)).length>len)return false; return true; } blanks = " \t\n\r"; phoneNumberDelimiters = "()- "; invalidChar="`!@#$%^&*||~?<>:;\"{}()[]\\/,"; period ="."; underscore="_"; dash ="-"; empty=''; open_bracket="("; close_bracket=")"; slash="/"; space=" "; apostrophe ="'"; intCharSet = "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ" function validateForm(theForm){ if(theForm.textFriendName){ if(trim(theForm.textFriendName.value) == ""){ alert(JS_FRIEND_NAME_MISSING_ERROR); theForm.textFriendName.focus(); return false; } else{ if(!isAlphaNumeric(trim(theForm.textFriendName.value))){ alert(JS_YOUR_NAME_FORMAT_ERROR); theForm.textFriendName.focus(); return false; } theForm.textFriendName.value = trim(theForm.textFriendName.value); } } if(theForm.textFriendEmail){ if(trim(theForm.textFriendEmail.value) == ""){ alert(JS_FRIEND_EMAIL_MISSING_ERROR); theForm.textFriendEmail.focus(); return false; }else{ if(!isValidEmail(trim(theForm.textFriendEmail.value))){ alert(JS_EMAILADDRESS_FORMAT_ERROR); theForm.textFriendEmail.focus(); return false; } theForm.textFriendEmail.value = trim(theForm.textFriendEmail.value); } } if(theForm.textYourName){ if(trim(theForm.textYourName.value) == ""){ alert(JS_YOUR_NAME_MISSING_ERROR); theForm.textYourName.focus(); return false; } else{ if(!isAlphaNumeric(trim(theForm.textYourName.value))){ alert(JS_YOUR_NAME_FORMAT_ERROR); theForm.textYourName.focus(); return false; } theForm.textYourName.value = trim(theForm.textYourName.value); } } if(theForm.textYourEmail){ if(trim(theForm.textYourEmail.value) == ""){ alert(JS_YOUR_EMAIL_MISSING_ERROR); theForm.textYourEmail.focus(); return false; }else{ if(!isValidEmail(trim(theForm.textYourEmail.value))){ alert(JS_EMAILADDRESS_FORMAT_ERROR); theForm.textYourEmail.focus(); return false; } theForm.textYourEmail.value = trim(theForm.textYourEmail.value); } } if(theForm.textMessage){ if (!isMessageCommentLengthOK(trim(theForm.textMessage.value),500)){ alert(JS_COMMENTS_MESSAGE_TOO_LONG); theForm.textMessage.focus(); return false; } } return true; } function ValidateSearch (theForm) { if(theForm.searchword){ if(trim(theForm.searchword.value) == ""){ alert(JS_SEARCH_MISSING_ERROR); theForm.searchword.focus(); return false; } else{ if(!isAlphaNumeric(trim(theForm.searchword.value))){ alert(JS_SEARCH_FORMAT_ERROR); theForm.searchword.focus(); return false; } theForm.searchword.value = trim(theForm.searchword.value); } } } function trim(inputString) { // Removes leading and trailing spaces from the passed string. Also removes consetrimive spaces and replaces it with one space. var returnValues = inputString; var ch = returnValues.substring(0, 1); while (ch == " ") { // Check for spaces at the beginning of the string returnValues = returnValues.substring(1, returnValues.length); ch = returnValues.substring(0, 1); } ch = returnValues.substring(returnValues.length-1, returnValues.length); while (ch == " ") { // Check for spaces at the end of the string returnValues = returnValues.substring(0, returnValues.length-1); ch = returnValues.substring(returnValues.length-1, returnValues.length); } while (returnValues.indexOf(" ") != -1) { // Note that there are two spaces in the string - look for multiple spaces within the string returnValues = returnValues.substring(0, returnValues.indexOf(" ")) + returnValues.substring(returnValues.indexOf(" ")+1, returnValues.length); // Again, there are two spaces in each of the strings } return returnValues; } function trackEvent(type){ if (document.getElementById) document.getElementById('trackingFrame').src = 'tracking.asp?type=' + type; }