/* AZ Australia additional JS functions */ //define the message for the exit ramp exitMessage='Thank you for visiting the AstraZeneca website. You are now leaving the site.\n\nPlease note:\n\n 1. The information provided on external sites may not comply with Australian regulations.\n 2. Australian readers should refer to the Consumer Medicine Information for products.\n 3. The material provided by other web sites is for information and not intended as advice\n 4. Information provided by other websites should be discussed with your health care professional and should not replace their advice.'; function addMasterScript(){ //this adds in the master root.js file which includes all basic JS functionality //this must be included in all local js files //Do not copy code from the root.js file, use this function to import it instead if(document.getElementById){ //browser supports getElementById - attempt to add js functionality //this is a site-specific js file so include the master //create a script element if(document.createElement){ elScript=document.createElement('script'); if(elScript){ //include master file elScript.src='/_mshost81109/system/styles/root/javascript/root.js'; //elScript.src='../styles/root/javascript/root.js'; elScript.type='text/javascript'; //get a handle to this script file elHead=document.getElementsByTagName('head'); if(elHead){ //get script elExistingScript=document.getElementsByTagName('script'); if(elExistingScript){ //add into head before previous element elHead[0].insertBefore(elScript,elExistingScript[0]); //attachEvents function is called when the master file loads //so global functionality is still enabled } } } } } } //call the above function addMasterScript();