function getCookie( check_name ){ var a_all_cookies = document.cookie.split( ';' ); var a_temp_cookie = ''; var cookie_name = ''; var cookie_value = ''; var b_cookie_found = false; for ( i = 0; i < a_all_cookies.length; i++ ){ a_temp_cookie = a_all_cookies[i].split( '=' ); cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, ''); if ( cookie_name == check_name ){ b_cookie_found = true; if ( a_temp_cookie.length > 1 ){ cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') ); } return cookie_value; break; } a_temp_cookie = null; cookie_name = ''; } if ( !b_cookie_found ){ return null; } } function getCountry(country) { var userCountry = getCookie("Country_Temp"); if(userCountry == null ||userCountry == "") { userCountry = getCookie("Country"); } if(userCountry == null ||userCountry == "") { userCountry = country; } return userCountry.toUpperCase(); } function getLanguage(locale) { var userLang = getCookie("Locale_Temp"); if(userLang == null || userLang == "") { userLang = getCookie("Locale"); } if(userLang == null || userLang == "") { userLang = locale; } return userLang.toLowerCase(); } function getContactUSCountryLang(){ var countryVal = contentCountry; var langVal = contentLang; return countryVal.toUpperCase() + "_" + langVal.toLowerCase() + "_ContactUs"; //return countryVal.toUpperCase(); } function contactUs(sender) { var temp = sender.split("_"); var indx=""; //var site = getCountry("") + "_" + getLanguage("")+ "_ContactUs"; var site = getContactUSCountryLang(); if (temp[2]) { if (temp[1].length ==1 && temp[2].length ==3 ) { sender = temp[0]; indx = "_" + temp[1] + "_" + temp[2]; } } var secureHost = 'www.ey.com'; //var contactUsURL = 'https://' + secureHost + '/echannel/Content.nsf/DContactus_New?Openform&EmailId='+sender+'&Indx='+indx+'&site='+site+'&URL='+location.href; var contactUsURL = '/echannel/Content.nsf/DContactus_New?Openform&EmailId='+sender+'&Indx='+indx+'&site='+site+'&URL='+location.href var windowtitle = "sWin"; var options = 'width=770,height=700,screenX=0,screenY=0,alwaysRaised=yes,toolbar=no,scrollbars=yes,status=no'; window.open(contactUsURL,windowtitle,options); //generic_link_options(contactUsURL, '', '', windowtitle, options); } function generic_link_WT(url, taxonomy, linktitle, target) { //alert (url) if (taxonomy == "") { if (target=="" || target==null || target==undefined || target=="_blank") { window.open(url) } else { //url = "http://" + document.domain + url; //alert (url); location.href = url; } } else { if(target=='_self') { var newURL; newURL = "/" + _webDbName + "/vwContentByURL" + url + "?OpenDocument&preview"; location.href = newURL; } if(target=='_blank') { var newURL; newURL = "/" + _webDbName + "/vwContentByURL" + url + "?OpenDocument&preview"; window.open(newURL); } if(target=='_top') { var newURL; newURL = "/" + _webDbName + "/vwContentByURL" + url + "?OpenDocument&preview"; window.open(newURL); } if (target=="" || target==null || target==undefined) { var newURL; newURL = "/" + _webDbName + "/vwContentByURL" + url + "?OpenDocument&preview"; location.href = newURL; } } }