//=========================================================== // 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 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.macontraception.ca","www.mybirthcontrol.ca","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.adobe.com","www.hcp-nuvaring-de.com","www.fertilitetsguiden.nu","www.schildklierzorg.nl","www.nuvaring.nl","smpc.organon.nl","www.schering-plough.com","dev212.merry.merck.com","sms.nuvaring.de","smpc.organon.com","www.organon.es","www.spfiles.com","www.msd.no"); 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"; } } function showPearlNote(mouseEvent, noteInfo, noteWidth){ // gets note1 element var note=document.getElementById('note'); // shows note1 element note.innerHTML=unescape(noteInfo)//.replace("#39;","'"); //alert(note.innerHTML); note.style.width= noteWidth + "px" note.style.top=document.documentElement.scrollTop + mouseEvent.clientY + 15 + "px"; note.style.left=document.documentElement.scrollLeft + mouseEvent.clientX + 30 + "px"; //alert(document.documentElement.scrollHeight); note.style.visibility='visible'; } function showNote(mouseEvent, noteInfo, noteWidth){ // gets note1 element var note=document.getElementById('note'); // shows note1 element note.innerHTML=unescape(noteInfo)//.replace("#39;","'"); //alert(note.innerHTML); note.style.width= noteWidth + "px" note.style.top=document.documentElement.scrollTop + mouseEvent.clientY + 15 + "px"; note.style.left=document.documentElement.scrollLeft + mouseEvent.clientX + 30 + "px"; //alert(document.documentElement.scrollHeight); note.style.visibility='visible'; } function showNote1(mouseEvent, noteInfo, noteWidth){ // gets note1 element var note=document.getElementById('note'); // shows note1 element note.innerHTML=unescape(noteInfo)//.replace("#39;","'"); //alert(note.innerHTML); note.style.width= noteWidth + "px" note.style.top=document.documentElement.scrollTop + mouseEvent.clientY + -150 + "px"; note.style.left=document.documentElement.scrollLeft + mouseEvent.clientX + 30 + "px"; //alert(document.documentElement.scrollHeight); note.style.visibility='visible'; } function hideNote(){ // gets note1 element var note=document.getElementById('note'); // hides note1 element note.value=""; note.style.visibility='hidden'; } var frameWidth; var frameHeight; function scaleIframe(w, h) { alert(test); frameWidth = w; frameHeight = h; var d=document.getElementById("flashFrame"); d.style.height= frameHeight+"px"; }; //women's experience image event function onmouseoutImg(imgId) { document.getElementById("mouseout" + imgId).style.display="block"; document.getElementById("mouseover" + imgId).style.display="none"; } function onmouseoverImg(imgId) { document.getElementById("mouseout" + imgId).style.display="none"; document.getElementById("mouseover" + imgId).style.display="block"; } function Printout_Talk_to_Doc() { GATaggingfunctionCall("/Printout_Talk_to_Doc"); window.print(); } function getObj(name) { if (document.getElementById) { return document.getElementById(name); } else if (document.all) { return document.all[name]; } else if (document.layers) { return document.layers[name]; } else return false; } function getWindowWidth() { if (window.innerWidth){ MySize = window.innerWidth;} else{ MySize = document.body.clientWidth;} return MySize; } function getWindowHeight() { if (window.innerHeight){ MySize = window.innerHeight;} else{ MySize = document.body.clientHeight;} return MySize; } function SetToXY(DivId,x,y) { try { document.getElementById(DivId).style.left = x +"px"; document.getElementById(DivId).style.top = y +"px"; //alert(y); } catch (e) { setTimeout("SetToXY('"+DivId+"','"+x+"','"+y+"');",1000); } } StockWidthPopup="0"; StockHeightPopup="0"; function resizeLoader() { jQuery("#layerfullpage").css({height:Math.max(jQuery(window).height(), jQuery(document.body).height())}); PositionneLelayPopup(); } function PositionneLelayPopup() { PosLeft=parseInt(getWindowWidth()-StockWidthPopup)/2; if (window.innerHeight) { PosTop=parseInt(document.documentElement.scrollTop + ((window.innerHeight-StockHeightPopup)/2)); } else { PosTop=parseInt(document.documentElement.scrollTop + ((document.documentElement.offsetHeight-StockHeightPopup)/2)); } SetToXY('contenerPopupSite',PosLeft,PosTop) } var htmlElement = top.document.getElementsByTagName('html')[0]; function windowproper() { var pageHeight; var pageWidth; if( window.innerHeight && window.scrollMaxY ) { pageWidth = window.innerWidth + window.scrollMaxX; pageHeight = window.innerHeight + window.scrollMaxY; } else if( document.body.scrollHeight > 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; } //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=350; StockHeightPopup= 160; 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.height='1000px' 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 Added for PDF Print Page // Function is for master check box. If checked all the child links will be checked. // On Unchecking, all will be unchecked. function fncchkboxes(obj) { //alert("hi123"); var intMstCountChk; intMstCountChk = document.getElementById("MasterCheckCount").value; //alert(intMstCountChk); //alert(obj.id); var namChkBox = obj.id; //alert(nam.charAt(nam.length-1)); var intMstChk; intMstChk = namChkBox.charAt(namChkBox.length-1); //for(intMstChk=1; intMstChk<=intMstCountChk; intMstChk++) //{ var mstChkBxName; mstChkBxName = "mstCheckBox_" + intMstChk; //alert(mstChkBxName); if(document.getElementById(mstChkBxName).checked) { var intChildCountChk; intChildCountChk = "ChildCheckCount_mst_" + intMstChk; var childChkBoxName; intChildCountChk = document.getElementById(intChildCountChk).value; //alert(intChildCountChk); var intChildCount; for (intChildCount=1; intChildCount<=intChildCountChk; intChildCount++) { var childChkBoxName = "ChildChkBox" + intChildCount + "_mst_" + intMstChk; document.getElementById(childChkBoxName).checked = true; //document.getElementById(childChkBoxName).disabled = true; } } else { var intChildCountChk; intChildCountChk = "ChildCheckCount_mst_" + intMstChk; var childChkBoxName; intChildCountChk = document.getElementById(intChildCountChk).value; //alert(intChildCountChk); var intChildCount; for (intChildCount=1; intChildCount<=intChildCountChk; intChildCount++) { var childChkBoxName = "ChildChkBox" + intChildCount + "_mst_" + intMstChk; document.getElementById(childChkBoxName).checked = false; //document.getElementById(childChkBoxName).disabled = false; } } //} } function fncChildchkboxes() { //alert("test"); var intMstCountChk; intMstCountChk = document.getElementById("MasterCheckCount").value; var intMstChk; for(intMstChk=1; intMstChk<=intMstCountChk; intMstChk++) { var intChildCountChk; intChildCountChk = "ChildCheckCount_mst_" + intMstChk; var childChkBoxName; intChildCountChk = document.getElementById(intChildCountChk).value; var intChildCount; for (intChildCount=1; intChildCount<=intChildCountChk; intChildCount++) { var childChkBoxName = "ChildChkBox" + intChildCount + "_mst_" + intMstChk; if (document.getElementById(childChkBoxName).checked) {} else { var mstChkBxName = "mstCheckBox_" + intMstChk; document.getElementById(mstChkBxName).checked = false; } //document.getElementById(childChkBoxName).disabled = false; } } } function showToolTip(msg,evt){ if (evt) { var url = evt.target; } else { evt = window.event; var url = evt.srcElement; } var scrollwidth = (document.all ? document.documentElement.scrollLeft : window.pageXOffset); var scrollHight = (document.all ? document.documentElement.scrollTop : window.pageYOffset); xPos = evt.clientX+scrollwidth; yPos = evt.clientY+scrollHight; var toolTip = document.getElementById("toolTip"); toolTip.innerHTML = unescape(msg); toolTip.style.visibility = "visible"; toolTip = document.getElementById('tip'); toolTip.style.top = parseInt(yPos)+5 + "px"; toolTip.style.left = parseInt(xPos)+5 + "px"; toolTip.style.visibility = "visible"; } function hideTip() { var tipDiv=document.getElementById('toolTip'); tipDiv.value=""; tipDiv.style.visibility='hidden'; document.getElementById('tip').style.visibility = "hidden"; }