var dtDate = new Date();
var intCurYear = dtDate.getFullYear();
var strFooter
var strPrivacy = "javascript:PopUp('http://www.frx.com/privacy.htm','500','600','yes','no','no','no','no','no')";
var strLegal = "javascript:PopUp('http://www.frx.com/legal.htm','500','600','yes','no','no','no','no','no')"  ;
var strCopyRight = '<A  href="http://www.frx.com" target="_blank">&copy; ' + intCurYear + ' Forest Pharmaceuticals, Inc.</a>'; 

			strFooter = '<div align="center"><font size="1" face="Arial, Helvetica, sans-serif">' + 
			strCopyRight + ' || '  + 
			'<A href="' + strPrivacy + ' ">Privacy Statement</a> || ' + 
			'<A href="' + strLegal + ' ">Legal</a> || ' +
			'<A href="default.aspx">Home</a> || ' + 
			'<A href="http://www.armourthyroid.com/hypothyroidism/index.html" target="_new">Hypothyroidism Home</a> || ' +  
			'<A href="Glossary.aspx">Glossary</a> || ' +  
			'<A href="Levothroid_pi.aspx">Prescribing Information</a> || ' + 
			'<A href="http://www.Armourthyroid.com" target="_new">Armour&trade; Thyroid Home</A> || ' + 
			'<A href="http://www.Thyrolar.com" target="_new">Thyrolar<sup>&reg;</sup> Home</A> </font></div>' + 
			'<p style="text-align:right; font-size:9px;">55-1016150 &nbsp;&nbsp;&nbsp; 09/09</p>'


//-----------------------------------------------------
//Launches a pop up window for a session
//------------------------------------------------------
function launchPopUp()
{
	if(window.navigator.cookieEnabled)
	{//Load a pop up if cookies are enabled in the browser
	
		// Use sCookieValue if you don't want to prompt users on their next visit
		sCookieValue = GetCookie("LevInfo");
	
		//Cookie does not exist
		if(sCookieValue != "yes")
		{
  			document.cookie = "LevInfo=yes; path=/";
			PopUp('LevInfo.htm','290','500','no','no','no','no','no','no');
		}
	}
		
//
	
}


//-------------------------
// Function: GetCookie
// Purpose: Retrieve the value of the cookie with the specified name.
//-------------------------
function GetCookie(sName)
{
  // cookies are separated by semicolons
  var aCookie = document.cookie.split("; ");
  for (var i=0; i < aCookie.length; i++)
  {
    // a name/value pair (a crumb) is separated by an equal sign
    var aCrumb = aCookie[i].split("=");
    if (sName == aCrumb[0]) 
      return unescape(aCrumb[1]);
  }

  // a cookie with the requested name does not exist
  return null;
}

//-----------------------------------------------------
//Renders Menu information at the bottom
//of a page to be used in all applicable pages
//------------------------------------------------------
function WriteFooter()
{
   	document.write(strFooter);
}

//-----------------------------------------------------
//Renders Copyright information as a link
//------------------------------------------------------
function WriteCopyright()
{
   	document.write(strLegal);
}

//---------------------------------------------------
// Functions used with PopUp function 
//---------------------------------------------------
rnd.today=new Date();
rnd.seed=rnd.today.getTime();
function rnd() {
  rnd.seed = (rnd.seed*9301+49297) % 233280;
  return rnd.seed/(233280.0);
}

function rand(number) {
  return Math.ceil(rnd()*number);
}

function PopUp(url,h,w,sb,rs,st,tb,mb,ti,lc)
{
  lft = (screen.availWidth -w)/2;
  t = (screen.availHeight -h)/2;
  p = "scrollbars=" + sb + ",resizable=" + rs + ",status=" + st + ",toolbar=" + tb + ",menubar=" + mb + ",titlebar=" + ti + ",location=" + lc + ",top=" + t + ",left=" +lft + ",width=" + w + ",height=" + h;
  window.open(url, rand(101)-1, p);
}

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);strFriendlyName = args[i+1];
		if (val) { nm=val.name; if ((val=val.value)!="") {
		  if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
		    if (p<1 || p==(val.length-1)) errors+='- '+strFriendlyName+' must contain an e-mail address.\n';
		  } else if (test!='R') {
		    if (isNaN(val)) errors+='- '+strFriendlyName+' must contain a number.\n';
		    if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
		      min=test.substring(8,p); max=test.substring(p+1);
		      if (val-0<min || max<val-0) errors+='- '+strFriendlyName+' must contain a number between '+min+' and '+max+'.\n';
		} } } else if (test.charAt(0) == 'R') errors += '- '+strFriendlyName+' is required.\n'; }
  } 
  
    if (val.length == 0) 
				{errors = strFriendlyName+' is required.\n'; }

  
  if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}

