var dhtmEnabled = (document.getElementById || document.all || document.layers);

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
  return this;
}

function Toggle(id)
{
	if (dhtmEnabled)
	{
		var obj = getObj(id);
		if (obj!=undefined)
		{
			if (obj.style.display!="")
				obj.style.display = obj.style.display=="none" ? "block" : "none";
			else	
				obj.style.display = "block";
		}

		if (obj.style.display=="block")
		{
			obj.obj.scrollIntoView(false);
		}

	}
}



function MicroSitePopup(url)
{
	var MSPopup = open(url,"MicroSitePopup", "width=612,height=376,status=1,toolbar=0,menubar=0,scrollbars=0,resizable=0,location=0"); 
	if (MSPopup!=null)
	{
		window.close();
		MSPopup.focus();
	}
}