// ***********************************************************************************
//  Copyright by NetCare - Computer & Netzwerk  www.NCPS.de
//  Die Nutzung ist ausschliesslich nur dann gestattet, wenn dieser Copyright-Vermerk
//  unverändert bleibt!
// ***********************************************************************************

//alert("1");
var sPath = "/NetCareTrier/local/img/";

function BlurLinks() {
lnks = document.getElementsByTagName("a");
for(i=0; i<lnks.length; i++)        { lnks[i].onfocus = new Function("if(this.blur)this.blur()"); }
lnksSearch = document.getElementsByName("FindExec");
for(i=0; i<lnksSearch.length; i++)  { lnksSearch[i].onfocus = new Function("if(this.blur)this.blur()"); }
}

function MouseOverStart(src,action,imgName) {
  if (src == "START") {
				if (action == "over")  {	window.document.images[imgName].src = sPath+"NetCare_Systems_Nav_Next_double_hover.gif"; }
				if (action == "out")   {	window.document.images[imgName].src = sPath+"NetCare_Systems_Nav_Next_double.gif"; }
		}
  if (src == "CONTACT") {
				if (action == "over")  {	window.document.images[imgName].src = sPath+"NetCare_Systems_Cube_hover.gif"; }
				if (action == "out")   {	window.document.images[imgName].src = sPath+"NetCare_Systems_Cube.gif"; }
		}
}

function ToggleLayer(div,imgName) {
with(document.getElementById(div).style){
  if(display=="none")
		  { display="block";
				if (imgName != "")  {	window.document.images[imgName].src = sPath+"NetCare_Systems_Nav_Ads_Up.gif"; }
				}
  else
		  { display="none";
				if (imgName != "")  {	window.document.images[imgName].src = sPath+"NetCare_Systems_Nav_Ads_Down.gif"; }
				}
  }
}

function PicMouseOver(div,xx,imgName) {
with(document.getElementById(div).style){
  if(display=="none")
		  {
				if (xx == "over")  {	window.document.images[imgName].src = sPath+"NetCare_Systems_Nav_Ads_Down_hover.gif"; }
				if (xx == "out")   {	window.document.images[imgName].src = sPath+"NetCare_Systems_Nav_Ads_Down.gif"; }
				}
  else
		  {
				if (xx == "over")  {	window.document.images[imgName].src = sPath+"NetCare_Systems_Nav_Ads_Up_hover.gif"; }
				if (xx == "out")   {	window.document.images[imgName].src = sPath+"NetCare_Systems_Nav_Ads_Up.gif"; }
				}
  }
}

function CheckTextField(src,obj) {
  t=document.getElementById(obj);
  //alert(t.value);
  if (src == "SEARCHSRV") {
    if (t.value != "") {
      //alert(t.value);
      sStr='http://www.ncps.de/doSearch.htm';
      sStr=sStr+'?tsearch='+t.value;
      //self.close();
      //alert(sStr); exit;
      //Search='+t.value+'
      //self.location.href = "http://www.ncps.de/doSearch.htm";
      newWin=window.open(sStr, 'ZZ', '_self');     newWin.focus();
    }
  }
}


// EOF
