var helper;
// Fenster oeffnen
function open_window( titel, name, breite, hoehe, look ) {
if( helper ) {
helper = window.open(titel, name, 'width='+breite+',height='+hoehe+','+look);
helper.close();
}
helper = window.open(titel, name, 'width='+breite+',height='+hoehe+','+look);
}
function small()        { open_window( '', 'tracks',400 , 400, 'resizable=1,scrollbars=1,toolbar=0,status=0,menubar=0,location=0,directories=0' ); }
function popup()        { open_window( '', 'tracks', 367, 490, 'resizable=0,scrollbars=0,toolbar=0,status=0,menubar=0,location=0,directories=0' ); }
function popup_large()  { open_window( '', 'tracks', 640, 600, 'resizable=1,scrollbars=1,toolbar=1,status=0,menubar=1,location=0,directories=0' ); }
function popup_blank()  { open_window( '', 'tracks', 800, 600, 'resizable=1,scrollbars=1,toolbar=1,status=1,menubar=1,location=1,directories=1' ); }
function popup_800600() { open_window( '', 'tracks86', 800, 600, 'resizable=1,scrollbars=1,toolbar=0,status=0,menubar=0,location=0,directories=0' ); }
function help()         { open_window( '', 'help', 200, 320, 'resizable=1,scrollbars=1,toolbar=0,status=0,menubar=0,location=0,directories=0' ); }
function popup_htmleditor()        { open_window( '', 'tracks', 670, 500, 'resizable=1,scrollbars=0,toolbar=0,status=0,menubar=0,location=0,directories=0' ); }

function popUpWebTV() {
open_window( 'http://playernadm.nowonscreen.com/nos.php?id=7', 'tracks',890 , 670, 'resizable=1,scrollbars=0,toolbar=0,status=0,menubar=0,location=0,directories=0' );
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=800,left = 500,top = 200');");
}

function popUpArzt(URL) {
day = new Date();
id = day.getTime();
formURL = 'http://www.med-kolleg.de/mform/arzt/index.php?changeid='
eval("page" + id + " = window.open(formURL + URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=800,left = 500,top = 200');");
}

function popUpArztCH(URL) {
day = new Date();
id = day.getTime();
formURL = 'http://www.med-kolleg.de/mform/arzt_ch/index.php?changeid='
eval("page" + id + " = window.open(formURL + URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=800,left = 500,top = 200');");
}

function popUpArztAT(URL) {
day = new Date();
id = day.getTime();
formURL = 'http://www.med-kolleg.de/mform/arzt_at/index.php?changeid='
eval("page" + id + " = window.open(formURL + URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=800,left = 500,top = 200');");
}

function popUpArztPrint(IDPR,FACH) {
day = new Date();
id = day.getTime();
formURL = 'http://www.med-kolleg.de/arzt/resultprint.php?id=' + IDPR + '&fachrichtung=' + FACH
eval("page" + id + " = window.open(formURL, '" + id + "', 'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=780,height=600,left = 500,top = 200');");}

function popUpArztVcard(IDVC,FACH) {
day = new Date();
id = day.getTime();
formURL = '/arzt/vcard.php?id=' + IDVC + '&fachrichtung=' + FACH
eval("page" + id + " = window.open(formURL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=5,height=5,left = 500,top = 200');");
}

function popUpApo(URL) {
day = new Date();
id = day.getTime();
formURL = '/mform/apo/index.php?changeid='
eval("page" + id + " = window.open(formURL + URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=800,left = 500,top = 200');");
}

function popUpApoPrint(IDPR) {
day = new Date();
id = day.getTime();
formURL = '/apotheken/resultprint.php?id=' + IDPR
eval("page" + id + " = window.open(formURL, '" + id + "', 'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=780,height=600,left = 500,top = 200');");}

function popUpApoVcard(IDVC) {
day = new Date();
id = day.getTime();
formURL = '/apotheken/vcard.php?id=' + IDVC
eval("page" + id + " = window.open(formURL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=5,height=5,left = 500,top = 200');");
}

function popUpKlinik(URL) {
day = new Date();
id = day.getTime();
formURL = '/mform/kkh/index.php?changeid='
eval("page" + id + " = window.open(formURL + URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=800,left = 500,top = 200');");
}

function popUpKlinikPrint(IDPR) {
day = new Date();
id = day.getTime();
formURL = '/kliniken/resultprint.php?id=' + IDPR
eval("page" + id + " = window.open(formURL, '" + id + "', 'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=780,height=600,left = 500,top = 200');");}

function popUpKlinikVcard(IDVC) {
day = new Date();
id = day.getTime();
formURL = '/kliniken/vcard.php?id=' + IDVC
eval("page" + id + " = window.open(formURL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=5,height=5,left = 500,top = 200');");
}


function QuickJump(Formular)
{
	var Element = Formular.Ziel.selectedIndex;
	if (Formular.Ziel.options[Element].value != 0)
	{
			if (Formular.Ziel.options[Element].value == '//') {
				window.open(Formular.Ziel.options[Element].value);
			}
			else {
				top.location = Formular.Ziel.options[Element].value;
			}
	}
}

function obf(ln, name) {
	var lk = "<a href='"+ln+"' target=\"_blank\">"+name+"</a>";
	document.write(lk);
}
