// DETECT BROWSER

java3		= false;
browserVer	= parseInt(navigator.appVersion);
browerName 	= navigator.appName; 

if (browerName == "Netscape" && browserVer >= 3 || browerName == "Microsoft Internet Explorer" && browserVer >= 4) {
	java3 = true;
}

// MOUSEOVER SCRIPTS
function mouseOverMulti(Name, No, Img) {
  document [Img].src = eval(Name + No + ".src");
  
  txt = eval(Name + 'txt');

  if (window.status == txt){
    window.status = "";
  }else{
    window.status = txt;  
  }  
}

function mouseOver(No) {
  for (var i = 1; i < mouseOver.arguments.length; i++){
    Name = mouseOver.arguments[i];
    change(Name, No);
  }
  
  txt = eval(mouseOver.arguments[1] + 'txt');

  if (window.status == txt){
    window.status = "";
  }else{
    window.status = txt;  
  }  
}



function change(Name, No) {
  if (java3) {
      document [Name].src = eval(Name + No + ".src");
  }
}

// COOKIE SCRIPTS

function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break;
  }
  return null;
}

function SetCookie (name,value,expires,path,domain,secure) {
  document.cookie = name + "=" + escape (value) +
    ((expires) ? "; expires=" + expires.toGMTString() : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
}

function go(theForm, theValue){
	if (theValue != 'null'){
		document [theForm].mode.value = theValue;
	}

	document [theForm].submit();
}

function checkValue(theValue, theField){
}
