JS_SEARCH_MISSING_ERROR = "Please enter your search criteria.";
JS_SEARCH_FORMAT_ERROR = "Please enter valid search criteria.";
JS_YOUR_NAME_MISSING_ERROR = "Please enter your name.";
JS_FRIEND_NAME_MISSING_ERROR = "Please enter your friends name.";
JS_YOUR_EMAIL_MISSING_ERROR = "Please enter your email address.";
JS_FRIEND_EMAIL_MISSING_ERROR = "Please enter your friend's email address.";
JS_YOUR_NAME_FORMAT_ERROR = "Please enter a valid e-mail address.";
JS_FRIEND_NAME_FORMAT_ERROR = "Please use only letters and/or numerals.";
JS_EMAILADDRESS_MISSING_ERROR = "Please use only letters and/or numerals.";
JS_EMAILADDRESS_FORMAT_ERROR = "Please enter a valid e-mail address.";
JS_COMMENTS_MESSAGE_TOO_LONG = "Please enter maximum of 500 characters.";
//onloadFunctions will set this on true if enabled in copyconstants
var ExitPopUpsEnabled = false;
function onloadFunctions(){
var strDummy;
if ( "yes" == "yes") ExitPopUpsEnabled = true;
if (ExitPopUpsEnabled) ReplaceLinks();
}
function onloadFunctionsPopup(){
if (window.focus) window.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.');
}
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;
}
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 = /^([ÓŔǕɖ˗͘ϙњӛ֝y{}a-zA-Z0-9]+[ÓŔǕɖ˗͘ϙњӛ֝y{}\'\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 = "ÓŔǕɖ˗͘ϙњӛ֝y{}"
function isValid(str){
var theText = "~!@#$%^&*()_-+{}[]='/:;,><";
var strLen = str.length;
var i;
for(i=0;i 0) {
if (this[i-1].toUpperCase() === search_term)
return true; }
} while (--i);
return false;
}
String.prototype.stripSpaces = function( ){ return this.replace( /\s/g, "" ); };
var SiteExceptions = "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.cok,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.kinderwens.be, www.fertilityjourney.com.my, www.fertilitetsguiden.nu, www.organon.de, www.adobe.com,www.hcp-nuvaring-de.com, sms.nuvaring.de, smpc.organon.com,www.fertilityjourney.co.uk,www.organon.co.uk".stripSpaces().split(',')
function ReplaceLinks()
{
var currentdomain = document.domain;
if (ExitPopUpsEnabled)
{
for (l=0; l