function setActiveStyleSheet(title) {
   var i, a, main;
   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
     if(a.getAttribute("rel").indexOf("style") != -1
        && a.getAttribute("title")) {
       a.disabled = true;
       if(a.getAttribute("title") == title) a.disabled = false;
     }
   }
}


function chgcls(id, newclass)
{
identity=document.getElementById(id);
identity.className=newclass;
}

function chgcont(id, newtxt)
{
//document.getElementById(id)
//.style.visibility="hidden";
// alert(id);
// document.getElementById(id).src = "./images/illum_t.gif";
}

function chgvis()
{
document.getElementById("page2")
//.style.visibility="hidden";
.style.color="teal";
alert("brwsr_script_m!");
}

function chgwindow(docnbr)
{
var path="./epic";
var suffix=".php";
docstr= LPad(docnbr,5,"0");
url= path+docstr+suffix;
// alert(url);
window.open(url, "_self");
}

function chgwindow2(url)
{
window.open(url, "_self");
}

function LPad(MyContent,Length,Char)
  {
    var OutString=MyContent.toString();
	var j=OutString.length;
     for(i=j+1;i<=Length;i++)
     {
         OutString=Char+OutString;
     }
     return OutString;
  }

function browsertype()
{
//Client engine detection as found on MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006-2007 Valerio Proietti, <http://mad4milk.net>, MIT Style License.
var Client = {
	Engine: {'name': 'unknown', 'version': ''},
	Platform: {},
	Features: {}
};
//Client.Features
Client.Features.xhr = !!(window.XMLHttpRequest);
Client.Features.xpath = !!(document.evaluate);

//Client.Engine
if (window.opera) Client.Engine.name = 'opera';
else if (window.ActiveXObject) Client.Engine = {'name': 'ie', 'version': (Client.Features.xhr) ? 7 : 6};
else if (!navigator.taintEnabled) Client.Engine = {'name': 'webkit', 'version': (Client.Features.xpath) ? 420 : 419};
else if (document.getBoxObjectFor != null) Client.Engine.name = 'gecko';
Client.Engine[Client.Engine.name] = Client.Engine[Client.Engine.name + Client.Engine.version] = true;

//Client.Platform
Client.Platform.name = navigator.platform.match(/(mac)|(win)|(linux)|(nix)/i) || ['Other'];
Client.Platform.name = Client.Platform.name[0].toLowerCase();
Client.Platform[Client.Platform.name] = true;
// end Client detection -------------------------------- //

style = ''

if (Client.Engine.ie && !Client.Engine.ie7) {
	style = 'IE6';
	return style;
	}
if (Client.Engine.ie && Client.Engine.ie7) {
	style = 'IE7';
	return style;
	}
}