
var popupWindow = null;


function selectGo(id) {
// #################### Linkaufruf durch selectbox
	if(document.getElementById) {
		var box = document.getElementById(id);
		destination = box.options[box.selectedIndex].value;
		if (destination) location.href = destination; }
}

function popUpSite(url,opt) {
// ############################
	popupWindow = window.open(url,"",opt);
	popupWindow.focus();
}

function elementHide(elId) {
//##########################
 if(document.getElementById)
   document.getElementById(elId).style.visibility = "hidden";
}
function elementVisible(elId) {
//#############################
 if(document.getElementById)
   document.getElementById(elId).style.visibility = "visible";
}

function clickImgButton(id) {
//###########################
 if(document.getElementById) 
   document.getElementById(id).click();
}

function printInhaltsBereich()
// ###########################
// Gibt den ID-Bereich "inhaltsbereich" in Fenster aus und ruft Druckmenue auf
{ 
	var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
  sOption+="scrollbars=yes,width=600,height=300,left=100,top=25"; 

  var sWinHTML = document.getElementById('inhaltsbereich').innerHTML; 
	var navZl = document.getElementById('navzeile').innerHTML; 

	// alert(sWinHTML.length);
  // sWinHTML = sWinHTML.substr(1);

	// alert(sWinHTML);
  var winprint=window.open("","",sOption); 
  winprint.document.open(); 

	winprint.document.write('<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n');
  winprint.document.write('<html><head>\n');
  winprint.document.write('<LINK href=../system/page_Main/pageMain.css rel=Stylesheet>\n');
	winprint.document.write('<title>Druckfreundliche Ausgabe Kerninhalt ::: stimme.at</title>\n');
	winprint.document.write('</head>\n\n');

	// winprint.document.execCommand('SaveAs',null,'filename.html')
	winprint.document.write('<body onLoad=\"this.focus(),window.print();\">');

	winprint.document.write('<span style=\"font-size:7pt;\">');
	winprint.document.write(navZl);
	winprint.document.write('<br>');
	winprint.document.write(location.href.substr(7));
	winprint.document.write('<br><br>\n\n');
	winprint.document.write(sWinHTML);
	winprint.document.write('</span>');
          
  winprint.document.write('\n\n</body></html>'); 
  winprint.document.close(); 
  winprint.focus(); 
}

function enableActiveX (containerID){
// ################################## 
// flash via javascript (ohne ueberpruefung ob ie)
	var container = document.getElementById (containerID);
	var html = container.innerHTML; 
	container.innerHTML = html;
}
