function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
	// if the style.display value is blank we try to figure it out here
	//MM_swapImage(whichLayer+'Img','','/global/images/but_closed.gif',1);
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined) //{
	//MM_swapImage(whichLayer+'Img','','/global/images/but_opened.gif',1);
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none'; 
	//}
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

function checkEmail(myForm) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.email.value)){
	return (true)
	}
	myForm.email.focus();
	alert("Please enter a valid return e-mail address to proceed.")
	return (false)
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function errorfield(o, status)
{
	var tr = getParentNodeByName(o, 'TR');
	if (!tr)
		return false;
	tr.className = status ? 'error' : '';
	return true;
}


function showMs(textstring) {
alert (textstring) 
}

