function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


// vvvv  function to check for blank fields
function fCheckForm()
{
	if(document.media.newsletters.checked==true)
	{
		if(document.media.address.value=='' || document.media.city.value=='' || document.media.state.value=='' || document.media.zip.value=='')
		{
			alert('To receive project newsletters by mail, we need your mailing address.\r\rPlease provide your mailing address, or change your preferences in the \"GET INVOLVED!\" section of this page.');
			if(document.media.address.value=='')
			{	document.media.address.focus();	}
			else if(document.media.city.value=='')
			{	document.media.city.focus();	}
			else if(document.media.state.value=='')
			{	document.media.state.focus();	}
			else
			{	document.media.zip.focus();	}
			return false;
		}
	}
	if(document.media.emailupdates.checked==true)
	{
		if(document.media.email.value=='')
		{
			alert('To receive email updates, we need your email address.\r\rPlease provide your email address, or change your preferences in the \"GET INVOLVED!\" section of this page.');
			document.media.email.focus();
			return false;
		}
	}
	if(document.media.distribute.checked==true || document.media.contact.checked==true || document.media.presentation.checked==true)
	{
		if(document.media.email.value=='' && document.media.phone.value=='')
		{
			alert('In order for us to contact you, we need either your email address or phone number.\r\rPlease provide your email address and/or phone number, or change your preferences in the \"GET INVOLVED!\" section of this page.');
			if(document.document.media.phone.value=='')
			{	document.media.phone.focus();	}
			else
			{	document.media.email.focus();	}
			return false;
		}
	}
	// If everything checks okay, return to submission
	return true;
}
// ^^^^

// vvvv	draw the sidebar logo

function drawLogo(){
document.write('<div id="logo" style="position:relative; top:-54px; width:130; height:52; z-index:10;overflow:hidden;"><img src="images/logo.gif" width="130" height="52" border="0" alt="project logo"></div>');
}

// ^^^^



// vvvv	draw the box with shaded borders

function drawShadowBox(whichHalf,tableWidth){
if (whichHalf == "top"){
	document.write('<table width="'+tableWidth+'" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">');
	document.write('<tr>');
	document.write('<td background="images/shadowbox/topleft.jpg" width="15" height="15"></td>');
	document.write('<td background="images/shadowbox/top.jpg" height="15"></td>');
	document.write('<td background="images/shadowbox/topright.jpg" width="15" height="15"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td background="images/shadowbox/left.jpg" width="15"></td>');
	document.write('<td>');
	}
else{
		document.write('</td>');
		document.write('<td background="images/shadowbox/right.jpg" width="15"></td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td background="images/shadowbox/btmleft.jpg" width="15" height="15"></td>');
		document.write('<td background="images/shadowbox/btm.jpg" height="15"></td>');
		document.write('<td background="images/shadowbox/btmright.jpg" width="15" height="15"></td>');
		document.write('</tr>')
		document.write('</td>')
		document.write('</tr>');
		document.write('</table>');
	}
}
// ^^^^