
      function switchSite(dropDown)
      {
        if (dropDown != null)
        {
          var href = dropDown.value;
          if (href == '') {return;}
          
          if (href.indexOf("http://") <= 0)
          {
            document.location.href = href; 
          }
          else
          {
            window.open(dropDown.value,"","toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600");
          }
        }
      }          

function winOpen(theURL,winName,features) 
{ 
winName = window.open(theURL,winName,features); 
if(winName == null || winName.closed){window.open(theURL,winName,features);} 
else{winName.location.href = theURL;} 
if (!winName.closed) 
winName.focus(); 
}

function setBookmark()
{
  var brty = navigator.appName;
  var brve = navigator.appVersion;
  var url=document.location.href; 
  var titel = document.title; 
  if (brty.indexOf("Explorer")>-1)
  {
    // add this page to favorites for IE4+
    //window.external.AddFavorite(document.location.href, document.title);
    window.external.AddFavorite(url,'OEVERMANN Networks GmbH' +  ' - ' + titel);
  }
  else
  {
    //alert("Diese Funktion steht nur f?r Internet Explorer zur Verf?gung");
    alert(unescape("Diese Funktion steht nur f%FCr Internet Explorer zur Verf%FCgung"));
  }
}
function zoom(factor)
{
 var size = "100%";
 var obj = document.getElementById("content");

 if (obj.style.fontSize != null &&
 obj.style.fontSize != "")
 { size = obj.style.fontSize; }

 size = Number(String(size).substring(0, String(size).indexOf("%")))
 if (size > 20 && size < 400) size = size + factor;
 if (factor == 0) size = 100;
  if (factor == 1) size = 120;
  if (factor == 2) size = 140;

 setPersFontSize(size + "%");
 loadZoom();

 if (navigator.appName=="Netscape") {location.reload();}
}

function loadZoom()
{
 var newSize = getPersFontSize();
 var obj = document.getElementById("content");
 obj.style.fontSize = newSize;
 if (newSize != '100%'){
  obj.style.backgroundImage = 'none';
  obj.style.padding = '0';
  obj.style.borderLeft = '0.0625em solid #aaa';
  obj.style.borderRight = '0.0625em solid #aaa';
 }
}

function setPersFontSize(fontSize)
{
 document.cookie = "fontSize=" + fontSize + ";";
}

function getPersFontSize()
{
 var fontSize = "100%";

 if (document.cookie)
 {
 var val = document.cookie
 var idxStart = val.indexOf("fontSize=")
 var idxEnd = val.indexOf(";", idxStart);

 if (idxEnd < 0) { idxEnd = val.length; }
 if (idxStart >= 0) {fontSize = val.substring(idxStart + "fontSize=".length, idxEnd);}
 }
 else
 {
 setPersFontSize(fontSize);
 }

 return fontSize;
}




/***********************************************
* Disable "Enter" key in Form script- By Nurul Fadilah(nurul@REMOVETHISvolmedia.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
                
function handleEnter (field, event) {
		var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
		if (keyCode == 13) {
			var i;
			for (i = 0; i < field.form.elements.length; i++)
				if (field == field.form.elements[i])
					break;
			i = (i + 1) % field.form.elements.length;
			field.form.elements[i].focus();
			return false;
		} 
		else
		return true;
	}      


function setAction(e)
{
  if (!e)
    e = window.event;

  var keyCode = 0;

  if (e.which) {
    keyCode = e.which;
  } else if (e.keyCode) {
    keyCode = e.keyCode;
  }


  if(keyCode == 13 || keyCode == 96)
  {
    e.cancelbubble = true;
    e.returnvalue = false;
    sendSearch();
    return false;
  }
  return true;
}

function sendSearch()
{
  var suchstring = escape(document.getElementById("searchstring").value);
  //document.location.href = "Suche.aspx?searchstring=" + suchstring + "&referrer=" + document.location.href;
  document.location.href = "Suche.aspx?searchstring=" + suchstring;
}
