// Script erstellt Juni-August 2006 von Jacques De Bango

// Steuerfunktion für Auswahllisten
function go(){
	x = document.selecter.select1.options[document.selecter.select1.selectedIndex].value;
  if (x == "") {
    document.forms[0].reset();
    document.forms[0].elements[0].blur();
    return;
  } else {
	  location = x;
      /*parent.frames[1].location.href = x;*/
      document.forms[0].reset();
      document.forms[0].elements[0].blur();
  }
}
// Funktion zum Zurückblättern
function goback(id){
	if (id == "back"){
		history.back();
	}
}
// Funktion für das Starten eines Links in einem neuen Fenster - Kategorie <Events/form>
function newwindow(id){
	if (id == "cbeur060905"){
		x = "http://www.cebitbilisim.com";
		mywindow = window.open(x);
		mywindow.focus();
	}
	if (id == "travx060915"){
		x = "http://www.travelextra.org";
		mywindow = window.open(x);
		mywindow.focus();
	}
	if (id == "anan061109"){
		x = "http://www.ankiros.com";
		mywindow = window.open(x);
		mywindow.focus();
	}
	if (id == "cbcs061123"){
		x = "http://www.cebit-bcs.com";
		mywindow = window.open(x);
		mywindow.focus();
	}
	if (id == "chlise"){
		x = "http://www.chauffeur-limousinen-service.com";
		mywindow = window.open(x);
		mywindow.focus();
	}
}
// Funktion für die Anpassung der Höhen von Navigation, Inhalt und Features
function crt_layout(){
	if (document.getElementById('Inhalt').offsetHeight){
		var div_heights = new Array(
			document.getElementById('Inhalt').offsetHeight,
			document.getElementById('Event').offsetHeight,
			document.getElementById('Info').offsetHeight);
		
		div_heights = div_heights.reverse(div_heights.sort(num_sort));
		var style_height = div_heights[0] + "px";
		document.getElementById('Event').style.height = style_height;
		document.getElementById('Inhalt').style.height = style_height;
		document.getElementById('Info').style.height = style_height;
	}
}
function num_sort(a,b){
	return a-b;
}

