function frame_height()
{
window.parent.document.getElementById('pages').style.height=document.getElementById('table_x').offsetHeight+20;
//window.parent.document.getElementById('table_blue_bg').height=screen.height + document.getElementById('table_x').offsetHeight-300;
}
function result_height()
{
window.parent.document.getElementById('results').style.height=document.getElementById('table_result').offsetHeight+20;
//window.parent.document.getElementById('table_blue_bg').height=screen.height + document.getElementById('table_x').offsetHeight-300;
}
function frame_height_of_download(toplam)
{
//window.parent.document.getElementById('pages').style.height=document.getElementById('table_x').offsetHeight + (toplam*24)-150;
window.parent.document.getElementById('pages').style.height=(toplam*24)+170;
}
function frame_height_of_ressourcen(toplam)
{
//window.parent.document.getElementById('pages').style.height=document.getElementById('table_x').offsetHeight + (toplam*24)-150;
window.parent.document.getElementById('pages').style.height=(toplam*24)+190;
}
function frame_height_of_download_from_dozent(toplam)
{
//window.parent.document.getElementById('pages').style.height=document.getElementById('table_x').offsetHeight + (toplam*24)-150;
window.parent.document.getElementById('pages').style.height=(toplam*24)+250;
}
function nachricht_frame_height()
{
window.parent.document.getElementById('alle_nachrichten').style.height=document.getElementById('table_nachricht').offsetHeight+20;
window.parent.parent.document.getElementById('pages').style.height=window.parent.document.getElementById('table_x').offsetHeight+20;
//window.parent.parent.document.getElementById('table_blue_bg').height=screen.height + window.parent.document.getElementById('table_x').offsetHeight-300;
}
function kalender_frame_height()
{
window.parent.document.getElementById('kalender_page').style.height=document.getElementById('table_dies_monat').offsetHeight+20;
window.parent.parent.document.getElementById('pages').style.height=window.parent.document.getElementById('table_x').offsetHeight+20;
//window.parent.parent.document.getElementById('table_blue_bg').height=screen.height + window.parent.document.getElementById('table_x').offsetHeight-300;
}
function arrange_right_frame(boyut)
{
window.document.getElementById('mitarbeiter_right').style.height=boyut;
window.parent.document.getElementById('pages').style.height=boyut+140;
//window.parent.document.getElementById('table_blue_bg').height=screen.height + boyut + 140 -300;
window.document.getElementById('mitarbeiter_down').style.height=0;
window.document.getElementById('mitarbeiter_down').style.borderWidth=0;
}

function arrange_right_frm()
{
window.document.getElementById('mitarbeiter_down').style.height=0;
window.parent.document.getElementById('pages').style.height=document.getElementById('table_x').offsetHeight+20;
//window.parent.document.getElementById('table_blue_bg').height=screen.height + document.getElementById('table_x').offsetHeight-300;
window.document.getElementById('mitarbeiter_down').style.borderWidth=0;
}

function open_frame()
{
window.parent.document.getElementById('mitarbeiter_down').style.height=400;
window.parent.parent.document.getElementById('pages').style.height=window.parent.document.getElementById('mitarbeiter_right').offsetHeight+550;
window.parent.document.getElementById('mitarbeiter_down').style.borderWidth=1;
}

function parent_url()
{
var x = window.parent.location.href;
var y = x.indexOf("pages.aspx");
if (y==-1)
{
window.location.href="mainpage.aspx";
}
}
			
function nachricht_open(id)
{
var win;
var x = screen.width/2 -290
var y = screen.height/2 -195

win = window.open("../wi_de/pages/nachricht_read.aspx?nachricht_id="+id,"Nachricht","alwaysRaised=yes,dependent=yes,height=260,hotkeys=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=540");
win.focus();
win.moveTo(x,y);
}

function change_nachricht_open(id)
{
var win;
var x = screen.width/2 -300
var y = 130

win = window.open("change_nachricht.aspx?nachricht_id="+id,"Nachricht","alwaysRaised=yes,dependent=yes,height=430,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=600");
win.focus();
win.moveTo(x,y);
}

function change_nachricht_open_from_deep(id)
{
var win;
var x = screen.width/2 -300
var y = 130

win = window.open("pages/change_nachricht.aspx?nachricht_id="+id,"Nachricht","alwaysRaised=yes,dependent=yes,height=400,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=600");
win.focus();
win.moveTo(x,y);
}

function cv_open(type,matrikel)
{

var win;
var x = screen.width/2 -300
var y = 180

win = window.open("../popups/insert_cv.aspx?cv="+type+"&matrikel_nr="+matrikel,"CV","alwaysRaised=yes,dependent=yes,directories=no,height=130,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,tittlebar=no,toolbar=no,width=400");
win.focus();
win.moveTo(x,y);
}

function bild_open(matrikel)
{

var win;
var x = screen.width/2 -300
var y = 180

win = window.open("../popups/insert_bild.aspx?matrikel_nr="+matrikel,"Mein_Bild","alwaysRaised=yes,dependent=yes,directories=no,height=130,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,tittlebar=no,toolbar=no,width=400");
win.focus();
win.moveTo(x,y);
}

function warnung_open(type)
{
var win;
var x = screen.width/2 -130
var y = screen.height/2 -105

win = window.open("../warnung.aspx?warnung="+type,"Warnung","alwaysRaised=yes,dependent=yes,directories=no,height=140,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,tittlebar=no,toolbar=no,width=200");
win.focus();
win.moveTo(x,y);
}
function warnung_from_top_open(type)
{
var win;
var x = screen.width/2 -130
var y = screen.height/2 -105

win = window.open("warnung.aspx?warnung="+type,"Warnung","alwaysRaised=yes,dependent=yes,directories=no,height=140,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,tittlebar=no,toolbar=no,width=200");
win.focus();
win.moveTo(x,y);
}
function warnung_from_deep_open(type)
{
var win;
var x = screen.width/2 -130
var y = screen.height/2 -105

win = window.open("../../warnung.aspx?warnung="+type,"Warnung","alwaysRaised=yes,dependent=yes,directories=no,height=140,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,tittlebar=no,toolbar=no,width=200");
win.focus();
win.moveTo(x,y);
}
function warnung_from_very_deep_open(type)
{
var win;
var x = screen.width/2 -130
var y = screen.height/2 -105

win = window.open("../../../warnung.aspx?warnung="+type,"Warnung","alwaysRaised=yes,dependent=yes,directories=no,height=140,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,tittlebar=no,toolbar=no,width=200");
win.focus();
win.moveTo(x,y);
}

function student_open(id)
{
var win;
var x = screen.width/2 -364
var y = screen.height/2 -225

win = window.open("show_student.aspx?matrikel_nr="+id,"Student","alwaysRaised=yes,dependent=yes,height=450,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=670");
win.focus();
win.moveTo(x,y);
}

function download_this(id1,id2)
{
/*alert("hallo"+id_1+"vbvb"+id_2);*/
var win;
var x = screen.width
var y = screen.height

win = window.open("download_dokument.aspx?vorlesung_id="+id1+"&dokument_id="+id2,"Download","alwaysRaised=yes,dependent=yes,height=y,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=x");
win.focus();
}

function download_prufung(id1,id2)
{
/*alert("hallo"+id_1+"vbvb"+id_2);*/
var win;
var x = screen.width
var y = screen.height

win = window.open("download_dokument.aspx?vorlesung_id="+id1+"&alte_prufung_id="+id2,"Download","alwaysRaised=yes,dependent=yes,height=y,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=x");
win.focus();
}

function neu_mitteilung_open(matrikel,abt,klasse)
{
var win;
var x = screen.width/2 -200
var y = screen.height/2 -140

win = window.open("neu_mitteilung.aspx?matrikel="+matrikel+"&abt="+abt+"&klasse="+klasse,"Neu_Mitteilung","alwaysRaised=yes,dependent=yes,directories=no,height=300,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,tittlebar=no,toolbar=no,width=400");
win.focus();
win.moveTo(x,y);
}

function neu_mitteilung_for_dozent_open(dozent_id)
{
var win;
var x = screen.width/2 -200
var y = screen.height/2 -240

win = window.open("neu_mitteilung.aspx?dozent_id="+dozent_id,"Neu_Mitteilung","alwaysRaised=yes,dependent=yes,directories=no,height=370,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,tittlebar=no,toolbar=no,width=400");
win.focus();
win.moveTo(x,y);
}

function passwort_open()
{
var win_passwort;
var x = screen.width/2 -188
var y = 304
	
win_passwort = window.open("../passwort_studenten.aspx","FlashPlayer","alwaysRaised=yes,dependent=yes,height=133,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=380");
win_passwort.focus();
win_passwort.moveTo(x,y);
}

function passwort_from_top_open()
{
var win_passwort;
var x = screen.width/2 -188
var y = 304
	
win_passwort = window.open("passwort_studenten.aspx","FlashPlayer","alwaysRaised=yes,dependent=yes,height=133,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=380");
win_passwort.focus();
win_passwort.moveTo(x,y);
}

function dozent_open(dozent_id)
{
var win_passwort;
var x = screen.width/2 -188
var y = 304
	
win_passwort = window.open("look_dozent.aspx?dozent_id="+dozent_id,"Dozent","alwaysRaised=yes,dependent=yes,height=183,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=380");
win_passwort.focus();
win_passwort.moveTo(x,y);
}

function contact_with_webmaster_open()
{
    var win;
	var x = screen.width/2 -260
	var y = 180
	
	win = window.open("../frage_webmaster.aspx","WebMaster","alwaysRaised=yes,dependent=yes,height=160,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=513");
	win.focus();
	win.moveTo(x,y);
}
function contact_with_webmaster_tr_open()
{
    var win;
	var x = screen.width/2 -260
	var y = 180
	
	win = window.open("../frage_webmaster_tr.aspx","WebMaster_tr","alwaysRaised=yes,dependent=yes,height=160,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=513");
	win.focus();
	win.moveTo(x,y);
}

function contact_with_webmaster_from_top_open()
{
    var win;
	var x = screen.width/2 -260
	var y = 180
	
	win = window.open("frage_webmaster.aspx","WebMaster","alwaysRaised=yes,dependent=yes,height=160,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=513");
	win.focus();
	win.moveTo(x,y);
}
function upload_file_open(file_id,parent_id)
{
    var win;
	var x = screen.width/2 -300
	var y = 180
	
	win = window.open("upload_file.aspx?file_id=" + file_id + "&parent_id=" + parent_id,"Upload","alwaysRaised=yes,dependent=yes,height=320,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=540");
	win.focus();
	win.moveTo(x,y);
}
function add_ressource_open(file_id,parent_id)
{
    var win;
	var x = screen.width/2 -300
	var y = 180
	
	win = window.open("add_ressource.aspx?file_id=" + file_id + "&parent_id=" + parent_id,"Ressource","alwaysRaised=yes,dependent=yes,height=320,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,tittlebar=yes,toolbar=no,width=540");
	win.focus();
	win.moveTo(x,y);
}
