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."; //=========================================================== // This function is required for IE only, as it doesn't support // the :hover pseudo class on elements other then //============================================================ function InitializeMenu() { } function onloadFunctionsPopup(){ if (window.focus) window.focus(); } //================================================= // Open an new window for send page to a frind with // customized properties //================================================= function sendToFriend(objLink) { // get the url of the document being sent var strCurrentUrl = escape ( parent.document.URL ) ; // get the page 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=459,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; } //================================================= // Open an new window with customized properties //================================================= 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) { return (strEmail.indexOf(".") > 2) && (strEmail.indexOf("@") > 0); } function isAlphaNumeric(str) { var numeric = str; for(var j=0; j<numeric.length; j++) { var alphaa = numeric.charAt(j); var hh = alphaa.charCodeAt(0); if((hh > 47 && hh<59) || (hh > 64 && hh<91) || (hh > 96 && hh<123) || (hh == 32)) { } else { return false; } } return true; } function trackEvent(type){ if (document.getElementById) document.getElementById('trackingFrame').src = 'tracking.asp?type=' + type; } function isMessageCommentLengthOK(strComment,len){ if ((trim(strComment)).length>len)return false; return true; } function printPage(){ if (window.print) window.print(); else alert('Your browser does not support javascript printing.\nTo print this page, select File: Print from your menu.\nThis page is already printer friendly.'); } //================================================= // Open an new window with for popupimage //================================================= function popupwindowscroll(url, intWidth,intHeight,blnScroll){ if (intWidth == null || intHeight == null) {intWidth=750;intHeight=535;} if (blnScroll == null) {blnScroll='yes';} // this is the common window for popups. it resizes to the size needed //NewWindow = window.open(url,"POPUPWINDOWSCROLL","toolbar=no,width="+intWidth+",height="+intHeight+",directories=no,status=no,scrollbars=yes,resizable=no,menubar=no,top=0,left=20"); window.name ="NewWindow"; NewWindow = window.open(url,"POPUPWINDOWSCROLL","toolbar=no,width="+intWidth+",height="+intHeight+",directories=no,status=no,scrollbars="+blnScroll+",resizable=no,menubar=no,top=0,left=20"); NewWindow.resizeTo(intWidth, intHeight); NewWindow.focus(); } //================================================= // show leaving the site warning //================================================= var ExitPopUpsEnabled = true; var SiteExceptions = new Array ("www.organon.com","hcp.organon.com","www.organon-conferences.com","www.psychiatrymatters.md","www.remeronsoltab.md","www.nuvaring.md","www.orgyn.com","www.implanon.md","www.cerazette.md","www.contraception.net","www.nuvaring.com","www.mycontraceptive.com","www.cyclessa.com","www.marvelon.ca","www.puregonpen.com","www.puregon.md","www.puregon.com","www.follistim.com","www.fertilityjourney.com","www.livial.md","www.liviella.de","hcp.livial.info","www.livial.com","www.andriol.md","www.andriol.com","www.andropause.com","www.anesthesianow.com","www.esmeron.md","www.zemuron.com","www.oncotice.md", "www.kinderwens.nl", "www.fertilityjourney.com.sg", "www.unserwunschkind.at", "www.kinderwunsch.de", "www.jeveux1bebe.be", "www.viajandohacialafertilidad.com","www.organon.nl", "www.kinderwens.be", "www.fertilityjourney.com.my", "www.fertilitetsguiden.nu","www.schildklierzorg.nl","http://www.puregon.com","www.schering-plough.nl","smpc.organon.nl","www.schering-plough.com"); function ReplaceLinks() { var currentdomain = document.domain; if (ExitPopUpsEnabled) { for (l=0; l<document.links.length; l++) { current_href = document.links[l].href.toLowerCase(); if (current_href.indexOf(currentdomain) == -1 && current_href.substring(0,1) != "/" && current_href.indexOf("(") == -1 ) { if (!(SiteExceptions.in_array(document.links[l].hostname)) && (current_href.indexOf("mailto:")== -1)) { var link = document.links[l]; if (link) AttachEvent(link,"click",ExitPopUp,false) } } } } } function ExitPopUp(e){ if (!e) var e = window.event; if (!confirm("U verlaat nu " + document.domain + ". Schering-Plough is niet verantwoordelijk voor de inhoud van de site die u nu gaat bezoeken.")) { if (e.preventDefault) e.preventDefault(); e.returnValue = false; } e.cancelBubble = true; if (e.stopPropagation) e.stopPropagation(); } function ExitPopUpFlash(url,popuptreatment) { if (confirm("U verlaat nu " + document.domain + ". Schering-Plough is niet verantwoordelijk voor de inhoud van de site die u nu gaat bezoeken.")) { window.name ="NewWindow"; NewWindow = window.open(url,"PopupWindow",popuptreatment); NewWindow.focus(); } } //Use to attach an event to an object function AttachEvent(obj,evt,fnc,useCapture){ if (!useCapture) useCapture=false; if (obj.addEventListener){ obj.addEventListener(evt,fnc,useCapture); return true; } else if (obj.attachEvent) return obj.attachEvent("on"+evt,fnc); else{ MyAttachEvent(obj,evt,fnc); obj['on'+evt]=function(){ MyFireEvent(obj,evt) }; } } function clickSpotlight(strId) { if (document.getElementById) { if (document.getElementById(strId) && document.getElementById(strId).firstChild && document.getElementById(strId).firstChild.nodeName == "A") { var strHref = document.getElementById(strId).firstChild.getAttribute("href"); var clickOk = true; if (document.getElementById(strId).firstChild.getAttribute("target") != "_blank") { document.location = strHref; } else { window.open(strHref,strId); } } return false; } else { return true; } } function ClearField(formField) { if (formField.value == '') { formField.value= ""; } } //The following are for browsers like NS4 or IE5Mac which don't support either //attachEvent or addEventListener function MyAttachEvent(obj,evt,fnc){ if (!obj.myEvents) obj.myEvents={}; if (!obj.myEvents[evt]) obj.myEvents[evt]=[]; var evts = obj.myEvents[evt]; evts[evts.length]=fnc; } function MyFireEvent(obj,evt){ if (!obj || !obj.myEvents || !obj.myEvents[evt]) return; var evts = obj.myEvents[evt]; for (var i=0,len=evts.length;i<len;i++) evts[i](); } // Add in_array functionality to an array Array.prototype.in_array = function(search_term) { var i = this.length; search_term=search_term.toUpperCase(); do { if (i > 0) { if (this[i-1].toUpperCase() === search_term) return true; } } while (--i); return false; } 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 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; } //Homepage Design function changeDescription(section){ if (document.getElementById) { var arrSections = new Array(); arrSections[0] = '<h2> </h2><p>Ga met uw muis over de navigatie om de verschillende onderdelen te zien.</p>'; arrSections[1] = '<h2>over vruchtbaarheid</h2><p>Hier vindt u uitgebreide basisinformatie over (verminderde) vruchtbaarheid.</p>'; arrSections[2] = '<h2>onderzoeken en diagnoses</h2><p>In dit gedeelte van de website worden allerlei onderwerpen rond vruchtbaarheidsonderzoeken en oorzaken van verminderde vruchtbaarheid behandeld.</p>'; arrSections[3] = '<h2>behandelingsopties</h2><p>Behandelingen variĆ«ren van het voorschrijven van geneesmiddelen tot meer ingrijpende behandelingen zoals IVF.</p>'; arrSections[4] = '<h2>na de behandelingsfase</h2><p>Een periode die voor elk koppel een geheel andere betekenis kan krijgen.</p>'; arrSections[5] = '<h2>verwerking</h2><p>Hoe u omgaat met uw vruchtbaarheidsproblemen hangt sterk af van uw persoonlijkheid en van uw situatie. Iedereen reageert immers verschillend en elk vruchtbaarheidsprobleem is uniek.</p>'; arrSections[6] = '<h2>financiële aspecten</h2><p>De kosten van een behandeling kunnen behoorlijk oplopen. Het is dan ook belangrijk vooraf te weten welke kosten vergoed worden door uw mutualiteit of ziektekostenverzekering.</p>'; arrSections[7] = '/Images/HOMEPAGE_NAV_IMAGE_0.jpg'; arrSections[8] = '/Images/HOMEPAGE_NAV_IMAGE_1.jpg'; arrSections[9] = '/Images/HOMEPAGE_NAV_IMAGE_2.jpg'; arrSections[10] = '/Images/HOMEPAGE_NAV_IMAGE_3.jpg'; arrSections[11] = '/Images/HOMEPAGE_NAV_IMAGE_4.jpg'; arrSections[12] = '/Images/HOMEPAGE_NAV_IMAGE_5.jpg'; arrSections[13] = '/Images/HOMEPAGE_NAV_IMAGE_6.jpg'; var objNavDescription = document.getElementById('navDescription'); var objNavImg = document.getElementById('navImg'); objNavDescription.innerHTML = arrSections[section]; objNavImg.src = arrSections[section+7]; } } srcTop1_off = '/Images/TOPNAV1_0.jpg'; srcTop2_off = '/Images/TOPNAV2_0.jpg'; srcTop3_off = '/Images/TOPNAV3_0.jpg'; srcTop4_off = '/Images/TOPNAV4_0.jpg'; srcTop5_off = '/Images/TOPNAV5_0.jpg'; srcTop6_off = '/Images/TOPNAV6_0.jpg'; srcTop1_on = '/Images/TOPNAV1_1.jpg'; srcTop2_on = '/Images/TOPNAV2_1.jpg'; srcTop3_on = '/Images/TOPNAV3_1.jpg'; srcTop4_on = '/Images/TOPNAV4_1.jpg'; srcTop5_on = '/Images/TOPNAV5_1.jpg'; srcTop6_on = '/Images/TOPNAV6_1.jpg'; srcBot1_off = '/Images/TOPNAV1_BOT0.jpg'; srcBot2_off = '/Images/TOPNAV2_BOT0.jpg'; srcBot3_off = '/Images/TOPNAV3_BOT0.jpg'; srcBot4_off = '/Images/TOPNAV4_BOT0.jpg'; srcBot5_off = '/Images/TOPNAV5_BOT0.jpg'; srcBot6_off = '/Images/TOPNAV6_BOT0.jpg'; srcBot1_on = '/Images/TOPNAV1_BOT1.jpg'; srcBot2_on = '/Images/TOPNAV2_BOT1.jpg'; srcBot3_on = '/Images/TOPNAV3_BOT1.jpg'; srcBot4_on = '/Images/TOPNAV4_BOT1.jpg'; srcBot5_on = '/Images/TOPNAV5_BOT1.jpg'; srcBot6_on = '/Images/TOPNAV6_BOT1.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) { if (document.getElementById('textNav')) { textNavTr = document.getElementById('textNav'); arrLinks = textNavTr.getElementsByTagName('a'); for (i=0;i<arrLinks.length;i++){ if (arrLinks[i].className == 'topnavOn') { strId = arrLinks[i].id; intNavNo = strId.slice(6,7); imgTop = eval('document.' + 'navImg_top' + intNavNo); if(imgTop) imgTop.src = eval('srcTop' + intNavNo + '_on'); imgBot = eval('document.' + 'navImg_bot' + intNavNo); if(imgBot) imgBot.src = eval('srcBot' + intNavNo + '_on'); } } } } } function onloadFunctions(){ showOnstate(); } 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); } } }