//=========================================================== // This function is required for IE only, as it doesn't support // the :hover pseudo class on elements other then //============================================================ function InitializeMenu() { if (document.all && document.getElementById) { var navRoot = document.getElementById("Nav"); 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; } //================================================= // Open an new window with customized properties //================================================= function openWindow(URL, Name, Args){ popupWin = window.open(URL, Name, Args); popupWin.focus(); } function openWindowNew(URL){ popupWin = window.open(URL); popupWin.focus(); } 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.organon.com.au","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.organon.de", "www.hcp-nuvaring-de.com","www.fertilitetsguiden.nu","www.schildklierzorg.nl","www.nuvaring.nl","smpc.organon.nl","www.schering-plough.com","www.schering-plough.nl","dev212.merry.merck.com","sms.nuvaring.de","smpc.organon.com","www.organon.es","www.spfiles.com","www.msd.no","www.simponi.se","www.schering-plough.no","dev210.boromir.merck.com","www.simponiforme.nl","www.msd.nl","content.msd.nl","productinfo.msd.nl"); function ReplaceLinks() { var currentdomain = document.domain; if (ExitPopUpsEnabled) { for (l=0; l 0) { if (this[i-1].toUpperCase() === search_term) return true; } } while (--i); return false; } function faq(faqno) { if(document.getElementById("faqans" + faqno).style.display.match("none")) { //alert(test); document.getElementById("faqans" + faqno).style.display="block"; } else { //alert(test); document.getElementById("faqans" + faqno).style.display="none"; } } var min=8; var max=16; var p_min=8; var p_max=16; var h1_min=12; var h1_max=20; var h2_min=10; var h2_max=18; var h3_min=9; var h3_max=17; var li_max=16; var li_min=8; var a_max=16; var a_min=8; var div_max=16; var div_min=8; var td_min=8; var td_max=16; var span_min=8; var span_max=16; function increaseFontSize() { var body = document.getElementById('contentarea'); if (document.getElementsByTagName('p')) { var p = document.getElementsByTagName('p'); for(i=0;i document.body.offsetHeight ) { pageWidth = document.body.scrollWidth; pageHeight = document.body.scrollHeight; } else { pageWidth = document.body.offsetWidth + document.body.offsetLeft; pageHeight = document.body.offsetHeight + document.body.offsetTop+700; } //alert(pageHeight); return pageHeight; } function OpenPopup(Url,HeidthPopup,WidthPopup) { var pageHeight; pageHeight = windowproper(); htmlElement.style.overflowY = 'hidden'; htmlElement.style.overflowX = 'hidden'; //alert(pageHeight); //window.scrollTo(0,pageHeight); StockWidthPopup=700; StockHeightPopup= 350; PositionneLelayPopup(); getObj('contenerPopupSite').style.display='block'; getObj('contenerPopupSite').style.height=StockHeightPopup + "px" getObj('contenerPopupSite').style.width=StockWidthPopup + "px" getObj('layerfullpage').style.display='block'; //getObj('layerfullpage').style.height=document.documentElement.scrollTop + 600 + "px" getObj('layerfullpage').style.height=pageHeight + "px"; getObj('layerfullpage').style.filter='alpha(opacity=60)'; //window.scrollTo(0,pageHeight); } function closePopup() { //location.reload(true); top.getObj('contenerPopupSite').style.display='none'; top.getObj('layerfullpage').style.height=""; top.getObj('layerfullpage').style.display='none'; //objFramePop=top.getObj("FramePopSite"); //objFramePop.src=""; htmlElement.style.overflowY = 'scroll'; //document.body.style.marginRight='0px'; //top.document.getElementById('contenerPopupSite').style.left ="0px"; //top.document.getElementById('contenerPopupSite').style.top = "0px"; } function OpenspotlightPopup(Url,HeidthPopup,WidthPopup) { var pageHeight; pageHeight = windowproper(); htmlElement.style.overflow = 'hidden'; htmlElement.style.overflowX = 'hidden'; //alert(pageHeight); //window.scrollTo(0,pageHeight); StockWidthPopup=WidthPopup; PositionneLelayPopupsSpotlight(); objFramePop=getObj("FramePopSite"); objFramePop.width=WidthPopup; objFramePop.height=HeidthPopup; objFramePop.src=Url; getObj('contenerPopupspotlight').style.display='block'; getObj('layerfullpage').style.display='block'; //getObj('layerfullpage').style.height=document.documentElement.scrollTop + 600 + "px" getObj('layerfullpage').style.height=pageHeight + "px"; getObj('layerfullpage').style.filter='alpha(opacity=60)'; //window.scrollTo(0,pageHeight); } function closePopupSpotlight() { //location.reload(true); top.getObj('contenerPopupspotlight').style.display='none'; top.getObj('layerfullpage').style.height=""; top.getObj('layerfullpage').style.display='none'; //objFramePop=top.getObj("FramePopSite"); //objFramePop.src=""; htmlElement.style.overflowY = 'scroll'; //document.body.style.marginRight='0px'; //top.document.getElementById('contenerPopupspotlight').style.left ="0px"; //top.document.getElementById('contenerPopupspotlight').style.top = "0px"; } function OpenSpotlight() { //alert('test') //OpenspotlightPopup('/HCP/Includes/video/MOV.asp','260','350') //OpenPopupRel('/include/locatoropen.do','398','638') } //Form Validation var validation_Msg_Name_Empty = "Vul uw naam in." var validation_Msg_Address_Empty = "Vul uw adres in." var validation_Msg_Postcode_Empty = "Vul uw postcode in." var validation_Msg_city_Empty = "Vul uw woonplaats in." var validation_Msg_chkBox = "Vink minimaal één optie aan" function validateForm(theForm) { if (theForm.name) { if (Trim(theForm.name.value) == "") { alert(validation_Msg_Name_Empty); theForm.name.focus(); return false; } } if (theForm.address) { if (Trim(theForm.address.value) == "") { alert(validation_Msg_Address_Empty); theForm.address.focus(); return false; } } if (theForm.postcode) { if (Trim(theForm.postcode.value) == "") { alert(validation_Msg_Postcode_Empty); theForm.postcode.focus(); return false; } } if (theForm.city) { if (Trim(theForm.city.value) == "") { alert(validation_Msg_city_Empty); theForm.city.focus(); return false; } } if (theForm.demoSmartJectYN.checked == false && theForm.simponiInfo.checked == false) { alert(validation_Msg_chkBox); return false; } return true; } // Trim function in javascript function Trim(str) { while (str.substring(0,1) == ' ') // check for white spaces from beginning { str = str.substring(1, str.length); } while (str.substring(str.length-1, str.length) == ' ') // check white space from end { str = str.substring(0,str.length-1); } return str; } function Select_Autheticate(section) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { //alert(xmlhttp.responseText); } } xmlhttp.open("GET","/hcp/main/opp/authentication_select.asp?q="+section,true); xmlhttp.send(); }