var sNewsLMsg;function main(){H_URL_BASE="http://help.msn.com/en_us";H_APP="MSN Health";H_CONFIG="MSN_Ch_Health_and_Fitness_v1.ini";H_BURL="http://health.msn.com/fs.htm";H_TOPIC="Ch_Health_TOC.HTM";L_H_APP=H_APP;bSearch=false}function callinsite(){var type,snid=[],re="http://"+document.domain+"/"+document.newsform.newsletter_confirmurl.value;for(var i=0;i<document.newsform.radiohtml.length;i++)if(document.newsform.radiohtml[i].checked)type=document.newsform.radiohtml[i].value;var i_flag=1;if(document.newsform.check1.checked)snid[snid.length]="136";if(document.newsform.check2.checked)snid[snid.length]="1048";if(snid.length<1)alert("Please select a newsletter to be subscribed.");else document.location.href="http://newsletters.msn.com/xs-v3/insite.asp?PC="+type+"&amp;SNID="+snid.join(",")+"&amp;CN=all&amp;RE="+re}function SetConfirmMsg(){var sURL,aSplitQry,sGERR="";sURL=document.location.href;var imax=0,re=/GERR=(\d+)/i,as=sURL.match(re);if(as!=null)imax=as.length;for(var i=0;i<imax;i++)sGERR=as[i];switch(sGERR){case "0":sNewsLMsg="You have been successfully subscribed.";break;case "24":sNewsLMsg="<font color='#ff0000'>The email address entered is unable to accept a subscription. Possible causes are a password protected account or you are not logged into Passport.  Please go to <a href='http://newsletter.msn.com' class='abtlink'>http://newsletter.msn.com</a> and sign in.</font>";break;case "25":sNewsLMsg="<font color='#ff0000'>Your subscription has been canceled.  If you still wish to subscribe, please enter your account information again.</font>";break;default:sNewsLMsg="<font color='#ff0000'>Sorry, we are unable to update your subscriptions due to technical problems. Please try again later.</font>"}document.write(sNewsLMsg);return true}function SendMail(){var strTo,strSubject,strBody;strTo="";strSubject="I recommended a page for you at MSN";strBody="I am sending this message to you so you can check out the following page:"+"%0d%0a%0d%0a"+escape(window.document.location)+"%0d%0a%0d%0a"+"To jump to the page, open your web browser and copy the address exactly as shown. Or, if your mail reader supports in-line links, simply click on the address.";window.location="mailto:"+strTo+"?subject="+strSubject+"&body="+strBody}function PopWin(pURL,pTitle){window.document.open(pURL,pTitle,"width=700,height=600,menubar=no,status=no,location=no,toolbar=no,scrollbars=yes,resizable=yes")}var w=window;if(typeof w.addEventListener!="undefined")w.addEventListener("load",SHFFocus,false);else if(typeof w.attachEvent!="undefined")w.attachEvent("onload",SHFFocus);else if(w.onload!=null){var oldOnload=w.onload;w.onload=function(e){oldOnload(e);SHFFocus()}}else w.onload=SHFFocus;function SHFFocus(){}main();function emailThis(){GetG();var strTo,strBody,sBody1,sBody2;sBody1=encodeForURL(bodyHeader+"\r\n\r\n");sBody2=encodeForURL("\r\n\r\n"+bodyFooter);strTo="";var pageTitle=document.title,pageURL=location.href;strBody=sBody1+escape(pageTitle)+encodeForURL("\r\n\r\n")+escape(pageURL)+sBody2;window.location.href="mailto:"+strTo+"?subject="+encodeForURL(subjectText)+"&body="+strBody}function GetG(){window.location=window.document.location}function encodeForURL(str){var out=str,re1=/%/g,re2=/%25%21%21%21/g;out=out.replace(re1,"%!!!");out=escape(out);out=out.replace(re2,"%");return out}