//=========================================================== // 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='no';} // 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.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","www.nuvaring.nl","smpc.organon.nl","t212.organon-demo01.com","smpc.organon.com","www.schering-plough.com","www.schering-plough.co.uk","www.bridion.com","www.bridion.co.uk"); 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"; } } //Cokkie // JavaScript Document function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function doUnload() { var strBrowser,strWSLeft,strSWidth; strBrowser = navigator.appName; strSWidth=parseInt(screen.width); var cName; cName="BridionUKSID" + document.getElementById("sessID").value; if (strBrowser=="Microsoft Internet Explorer") { strWSLeft=window.screenLeft; if(strWSLeft>strSWidth) { createCookie(cName,"No",365); } } else { strWSLeft= window.screenX; if(strWSLeft < strSWidth) { createCookie(cName,"No",365); } } } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function checkSimilarCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); //Code newly added //check for initial letters cookieName=c.split('='); //alert(cookieName); if(cookieName[0].substring(0,12)=="BridionUKSID") { if (cookieName[1]=="UKHCP" || cookieName[1]=="UKConsumer") {return cookieName[1]; } else { continue; } } //end //if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function checkEarlyCookie() { //alert("camein to the firefox"); var status="no"; status=checkSimilarCookie("BridionUKSID"); //alert("aftercall" + status); var cName; cName="BridionUKSID" + document.getElementById("sessID").value; if(status=="UKHCP") { //alert("From HCP" + status); createCookie(cName,"UKHCP",365); window.location.href="/hcp/index.asp"; } else if (status=="UKConsumer") { //alert("From UKC" + status); createCookie(cName,"UKConsumer",365); window.location.href="/public/index.asp"; } else { //alert(status); } } function checkCookie(redirectUrl) { var strBrowser; strBrowser = navigator.appName; var cName; cName="BridionUKSID" + document.getElementById("sessID").value; var status; status=readCookie(cName); if (strBrowser=="Microsoft Internet Explorer") { if (status=="No" || status=="" || status==null) { if(redirectUrl=="/hcp/index.asp") { createCookie(cName,"UKHCP",365); //alert("HCPCookieCreated" + cName); } else { createCookie(cName,"UKConsumer",365); //alert("consumerCookieCreated" + cName); } window.location.href=redirectUrl; } else { //alert("CookienotCreated"); var status; status=readCookie(cName); if(status=="UKHCP") { window.location.href="/hcp/index.asp"; } else { window.location.href="/public/index.asp"; } } } else { var cook; cook=document.getElementById("cook").value; if (cook=="" || cook==null) { if(redirectUrl=="/hcp/index.asp") { createCookie(cName,"UKHCP",365); //alert("HCPCookieCreated" + cName); } else { createCookie(cName,"UKConsumer",365); //alert("HCPCookieCreated" + cName); } window.location.href=redirectUrl; } else { var status; status=readCookie(cName); if(status=="UKHCP") { window.location.href="/hcp/index.asp"; } else { window.location.href="/public/index.asp"; } } } } function CheckDirectNavigation() { var DirectNavigation =document.getElementById("DN").value; var url = document.getElementById("url").value; if ( DirectNavigation =="" || DirectNavigation == null ) { window.location.href = url; } } function redirectViceVersa(url) { var status; var cName; cName="BridionUKSID" + document.getElementById("sessID").value; status=readCookie(cName); if(url=="/hcp/index.asp") { createCookie(cName,"UKHCP",365); } else { createCookie(cName,"UKConsumer",365); } window.location.href=url; }