// JavaScript Document

function Print() {
     var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
       sOption+="scrollbars=yes,width=750,height=600,left=100,top=25"; 
	   
   var sWinHTML = document.getElementById('middle').innerHTML; 
   
   var winprint=window.open("","",sOption); 
       winprint.document.open(); 
       winprint.document.write('<html><head><link href="/fileadmin/template/css/konnex.css" rel="stylesheet" type="text/css" /></head>'); 
       winprint.document.write('<body style="margin:1%;font-size:11px;" onload="window.print();">'); 
       winprint.document.write(sWinHTML);                
       winprint.document.write('</body></html>'); 
       winprint.document.close(); 
       winprint.focus();
 }
 
function Mail() {
   location.href="mailto:info@konnex.org?subject=Link to --"+document.title+"--&body=Have a look at this page:"+location.href+"\r\n";
}

function jumpMenuGo (to) {
	top.window.location.href=to + document.getElementById('searchform')[0].value;
	return false;
}

function OpenPopup()
{
   file= arguments[0]?arguments[0]:"Error.html";
   win= arguments[1]?arguments[1]:"EIBA_PopUp";
   width= arguments[2]?arguments[2]:650;
   height= arguments[3]?arguments[3]:210;
   lefty= arguments[4]?arguments[4]:0;
   topy= arguments[5]?arguments[5]:0;
   
   //alert(file + " " + win + " " +  width + " " + height + " " + lefty + " ");

	var newWin = open(file,win,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+width+',height='+height+',top='+topy+',left='+lefty); 
		if (newWin.opener == null) newWin.opener = self;
}
