function DefaultUnload()
{
  if(self.location.search) { alert("DefaultUnload"); self.location = "default.aspx"}
}
   
//Javascript Browser Sniff 1.0
var isIE = false;
var isOther = false;
var isNS4 = false;
var isNS6 = false;
if(document.getElementById)
{
	if(!document.all)
	{
		isNS6=true;
	}
	if(document.all)
	{
		isIE=true;
	}
}
else
{
	if(document.layers)
	{
		isNS4=true;
	}
	else
	{
		isOther=true;
	}
}


//End of Browser Sniff 1.0


/*
Access Layer Style Properties
Required components:  Javascript Browser Sniff 1.0
*/

function aLs(layerID)
{
var returnLayer;
	if(isIE)
	{
		returnLayer = eval("document.all." + layerID + ".style");
	}
	if(isNS6)
	{
		returnLayer = eval("document.getElementById('" + layerID + "').style");
	}
	if(isNS4)
	{
		returnLayer = eval("document." + layerID);
	}
	if(isOther)
	{
		returnLayer = "null";
		alert("-[Error]-\nDue to your browser you will probably not\nbe able to view all of the following page\nas it was designed to be viewed. We regret\nthis error sincerely.");
	}
return returnLayer;
}


//End of Accessing Layer Style Properties



/*
HideShow 1.0
Required components:  Accessing Layer Style Properties (and Req. Comp.)
*/

function HideShow(Id)
{
	if((aLs(Id).visibility == "visible") || (aLs(Id).visibility == ""))
	{
		aLs(Id).visibility = "hidden";
	}
	else if(aLs(Id).visibility == "hidden")
	{
		aLs(Id).visibility = "visible";
	}
}
/*
End of HideShow 1.0
*/



