// JavaScript Document
var browserType;
browserType = "ie"

if (document.layers) {browserType = "nn4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {
   browserType= "gecko"
}
if (document.all) {browserType = "ie"}


function setText(itemName, itemText) {
  if (browserType == "gecko" )
     myVar = document.getElementById(itemName);
  else if (browserType == "ie")
     myVar = document.all[itemName];
  else
     myVar = document.layers[itemName];
	 
  myVar.innerHTML  = itemText;
}


function frameSet( location ) {
	isTop = true;
		
	if (frames.length > 0)
		isTop = false;
		
	Location = "" + window.location;
	locLength = Location.length;
	Location = Location.substring(locLength-3,locLength)
	
	if(Location != "asp")
		if(isTop)
			//alert(window.location + ' length: ' + locLength + ' part: ' + Location);
			window.location = location;
	}

/*=====================================================================
Hide DIV
======================================================================*/ 
function hide(itemName) {
  if (browserType == "gecko" )
     myVar = document.getElementById(itemName);
  else if (browserType == "ie")
     eval("myVar = document.all."+itemName);
  else
     myVar = document.layers[itemName];
  try { myVar.style.display = "none"; }
  catch (e) {a=1; }
}

/*=====================================================================
Show DIV
======================================================================*/ 
function show(itemName) {
  if (browserType == "gecko" )
     myVar = document.getElementById(itemName);
  else if (browserType == "ie")
     eval("myVar = document.all."+itemName);
  else
     myVar = document.layers[itemName];
  try { myVar.style.display = "block"; }
  catch (e) {a=1; }
}
