function setHeight()
{
	//this function sets the height of the wrapper div
	document.getElementById('wrapper').style.height = document.getElementById('header').clientHeight + document.getElementById('mainContent').clientHeight + 'px';
}

function submitsearch()
{
	document.frmsearch.submit();
}

function leaveHCP()
{
	return confirm('You are now entering the Patient site. Would you like to continue?');
}
function openOvarian()
{
	window.open('/hcp/ovarian-cancer','ovarian','width=1000,height=600,scrollbars=1,toolbar=0,menubar=0,resizable=1');
}

function setCookie(c_name,value,expiredays)
{
	var exdate = new Date()
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}
function getCookie(c_name)
{
	if (document.cookie.length > 0)
	{
		c_start=document.cookie.indexOf(c_name + "=");
		if (c_start != -1)
		{ 
			c_start = c_start + c_name.length + 1;
			c_end = document.cookie.indexOf(";", c_start);
			if (c_end == -1)
				{c_end = document.cookie.length;
			}
			return unescape(document.cookie.substring(c_start,c_end));
		} 
	}
	return "";
}

function FollowURL ()
{
	return confirm("You are now leaving the MedImmune ETHYOL.com Web site. This link will take you to a site maintained by a third party who is solely responsible for the site's content.");
}

//rollover functions
function AZ_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.AZ_p) d.AZ_p=new Array();
    var i,j=d.AZ_p.length,a=AZ_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.AZ_p[j]=new Image; d.AZ_p[j++].src=a[i];}}
}
function AZ_swapImgRestore() { //v3.0
  var i,x,a=document.AZ_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function AZ_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=AZ_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function AZ_swapImage() { //v3.0
  var i,j=0,x,a=AZ_swapImage.arguments; document.AZ_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=AZ_findObj(a[i]))!=null){document.AZ_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}