var badUnix = false;
var version = parseInt(navigator.appVersion.substring(0,1));

function badUnixTest() {
  if ((navigator.appVersion.indexOf("X11") != -1) && (version < 4)) {
    badUnix = true;
  }
}

if (navigator.appName == "Microsoft Internet Explorer") {
  var isIE4 = false;
  var isIE3 = false;
  if (version == 3) {
    isIE3 = true;
  }
  else if (version >= 4) {
    isIE3 = true;
    isIE4 = true;
  }
  if (isIE3 | isIE4) {
    theClient = true;
  }
}

if (navigator.appName == "Netscape") {
   var isNS4 = false;
   var isNS3 = false;
   badUnixTest();
   if (version == 3) {
      isNS3 = true;
   }
   else if (version >= 4) {
      isNS3 = true;
      isNS4 = true;
   }
   if (isNS3 | isNS4) {
      theClient = true;
   }
}
function openWin(theURL,winName,features) {if (window.screen.width == 1024) {
		window.open(theURL,winName,features);
}		
		else if (window.screen.width == 800) {
		window.open(theURL,winName,features);
		}
		else {
		alert("You need to adjust the screen resolution to 1024x768 or 800x600");
}}
//
if (document.images) {
}
function di(id,name){
  if (document.images) {document.images[id].src=eval(name+".src"); }
}
function dm(msgStr) {
  document.returnValue = false;
  if (document.images) { 
     window.status = msgStr;
     document.returnValue = true;
  }
}
var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";
function dmim(msgStr) {
  document.returnValue = false;
  if (showMsg) { 
    window.status = msgStr;
    document.returnValue = true;
  }
}
function Stammdaten_onFocus() {
        window.event.returnValue = false;
        messagebox1.style.visibility="visible"
       	Stammdaten.style.color="blue";
        flttgt.filters[0].clear();
        flttgt.filters[0].addCone(10,10,250,50,60,236,222,210,1000,15);
        Stammdaten.style.cursor="Hand";
        Stammdaten.style.backgroundColor="yellow";
}
function Stammdaten_outFocus() {
        window.event.returnValue = false;
        messagebox1.style.visibility="hidden";
       	Stammdaten.style.color="black";
       	Stammdaten.style.backgroundColor="b0c4de";
     	flttgt.filters[0].clear();
	    flttgt.filters[0].addAmbient(255,255,255,100);
}
function Message_onFocus() {
        window.event.returnValue = false;
        messagebox2.style.visibility="visible"
       	Message.style.color="blue";
        flttgt.filters[0].clear();
        flttgt.filters[0].addCone(10,10,250,50,60,236,222,210,1000,15);
        Message.style.cursor="Hand";
        Message.style.backgroundColor="yellow";
}
function Message_outFocus() {
        window.event.returnValue = false;
        messagebox2.style.visibility="hidden";
       	Message.style.color="black";
       	Message.style.backgroundColor="b0c4de";
     	flttgt.filters[0].clear();
	    flttgt.filters[0].addAmbient(255,255,255,100);
}
