function setContentHeight(minus) {
if (document.all) { var v_height = document.all.xxx.offsetHeight - minus ; }
else { var v_height = window.innerHeight - minus - 7; }
document.write('<div class="ContentDIV" style="height:'+ v_height +'px;">'); 
}

function setNavigationHeight(minus) {
if (document.all) { var v_height = document.all.xxx.offsetHeight - minus ; }
else { var v_height = window.innerHeight - minus + 5; }
document.write('<tr><td height="140">&nbsp;</td></tr><tr><td height="'+ v_height +'" valign="top">'); 
}

function setConTextHeight(minus) {
if (document.all) { var v_height = document.all.xxx.offsetHeight - minus ; }
else { var v_height = window.innerHeight - minus + 0; }
document.write('<TD height="'+ v_height +'" valign="top">'); 
}

function noLink() {
var content = document.cookie;
if (content.search(/de-de/) != -1)
 { document.write('<a href="#" title="Druckversion ohne Verlinkung!">'); }
else
 { document.write('<a href="#" title="Print version without linking!">'); }
}

function preparePrintURL(url,language) {
var vUrl = url;
vUrl = vUrl.replace(/\%/g, "%25");
// Reihenfolge nicht ändern!!!
vUrl = vUrl.replace(/:/g, "%3A");
vUrl = vUrl.replace(/\//g, "%2F");
vUrl = vUrl.replace(/&/g, "%26");
vUrl = vUrl.replace(/\=/g, "%3D");
vUrl = vUrl.replace(/,/g, "%2C");
vUrl = vUrl.replace(/\?/g, "%3F");
vUrl = vUrl.replace(/ /g, "%20");
vUrl = '/eenee/print?_language='+language+'&_link='+vUrl;
PRINT = window.open(vUrl,"PRINT","width=750, height=600, scrollbars=yes, menubar=yes");
PRINT.focus(); 
}

function header() {
var content = document.cookie;
var tabBegin = '<table style="background-repeat:no-repeat;" width="100%" height="60" background="http://www.eenee.de/layout/';
var tabEnd = '"><td>&nbsp;</td></table>';
if (content.search(/de-de/) != -1) 
 { document.write(tabBegin + 'headerD.jpg' + tabEnd); }
if (content.search(/en-us/) != -1) 
 { document.write(tabBegin + 'headerE.jpg' + tabEnd); }
if (content.search(/fr-us/) != -1) 
 { document.write(tabBegin + 'headerF.jpg' + tabEnd); }
}

function footer() {
var content = document.cookie;
var line = '<hr noshade color=#696969>';
var tabBegin = '<table width="100%"><td>';
var tabEnd = '</td></table>';
if (content.search(/de-de/) != -1)
 { document.write(tabBegin + line + '© 2004 European Expert Network on Economics of Education' + tabEnd); }
if (content.search(/en-us/) != -1)
 { document.write(tabBegin + line + '© 2004 European Expert Network on Economics of Education' + tabEnd); }
if (content.search(/fr-us/) != -1)
 { document.write(tabBegin + line + '© 2004 European Expert Network on Economics of Education' + tabEnd); }
}

