// Funktionen zum Öffnen von Formular-Fenstern
// und für das Setzen bestimmter Vorgabewerte in diesen Feldern

var g_win
var g_kursart
var g_beginn
var g_zeit
var g_id


function pausecomp(millis) {
date = new Date();
var curDate = null;
do { var curDate = new Date(); } 
while(curDate-date < millis);
} 

function form_setvalues_anmeldung()  {
 g_win.document.title='Online-Anmeldung';
 g_win.document.FrontPage_Form1.Kursart.value=g_kursart;
 g_win.document.FrontPage_Form1.Beginn.value=g_beginn;
 g_win.document.FrontPage_Form1.Kurszeit.value=g_zeit
}

function form_setvalues_infoanfrage()  {
 g_win.document.title='Online-Informationsanfrage';
 g_win.document.FrontPage_Form1.Interessen.value=g_kursart + ' ' + g_beginn;
}

function form_setvalues_ls_suchanfrage()  {
 g_win.document.title='Online Lehrstellen-Suchmeldung';
 g_win.document.FrontPage_Form1.IDNr.value=g_id;
}

function agb() {
 agb = window.open("http://www.hwk-karlsruhe.de/bildung/weiterbildung/teilnahmebedingungen.htm","agb","resizable=yes,scrollbars=yes,width=560,height=660,toolbar=no,status=no,menubar=no,location=no");
 agb.focus();
}

function kursanmeldung(kursart,beginn,zeit) {
 anmeldung = window.open("../../../feedback/forms/kursanmeldung.htm","kursanmeldung","resizable=yes,scrollbars=yes,width=600,height=660,toolbar=no,status=no,menubar=no,location=no");
 anmeldung.focus();
 g_win=anmeldung;
 g_kursart = kursart;
 g_beginn = beginn;
 g_zeit=zeit;
 window.setTimeout("form_setvalues_anmeldung()",2000)
}

function lssuchmeldung(id) {
 anmeldung = window.open("../../../feedback/forms/ls-suchmeldung.htm","lssuchmeldung","resizable=yes,scrollbars=yes,width=600,height=660,toolbar=no,status=no,menubar=no,location=no");
 anmeldung.focus();
 g_win=anmeldung;
 g_id=id;
 window.setTimeout("form_setvalues_ls_suchanfrage()",2000)
}

function infoanfrage(kursart,beginn,zeit) {
 anmeldung = window.open("../../../feedback/forms/infoanfrage.htm","kursanmeldung","resizable=yes,scrollbars=yes,width=600,height=660,toolbar=no,status=no,menubar=no,location=no");
 anmeldung.focus();
 g_win=anmeldung;
 g_kursart = kursart;
 g_beginn = beginn;
 g_zeit=zeit;
 window.setTimeout("form_setvalues_infoanfrage()",2000)
}

function kursanmeldung2(kursart,beginn,zeit) {
 anmeldung = window.open("../../feedback/forms/kursanmeldung.htm","kursanmeldung","resizable=yes,scrollbars=yes,width=600,height=660,toolbar=no,status=no,menubar=no,location=no");
 anmeldung.focus();
 g_win=anmeldung;
 g_kursart = kursart;
 g_beginn = beginn;
 g_zeit=zeit;
 window.setTimeout("form_setvalues_anmeldung()",2000)
}

function infoanfrage2(kursart,beginn,zeit) {
 anmeldung = window.open("../../feedback/forms/infoanfrage.htm","kursanmeldung","resizable=yes,scrollbars=yes,width=600,height=660,toolbar=no,status=no,menubar=no,location=no");
 anmeldung.focus();
 g_win=anmeldung;
 g_kursart = kursart;
 g_beginn = beginn;
 g_zeit=zeit;
 window.setTimeout("form_setvalues_infoanfrage()",2000)
}

