
//
function popup_ibe(theURL)
{
  var popupibe = window.open(theURL, 'lmlinkwin', 'status=yes,scrollbars=yes,resizable=yes,width=788,height=540');
  popupibe.focus();
}


//
function change_travel_type(lt)
{
	document.form1.reset.value = 1;
	set_step('1');
	document.form1.travel_type.value = lt;
	document.form1.submit();
}


//
function get_vacancy(step, mode)
{
	set_step(step);
	document.form1.selected_sort_value.value = 'MATCHES';
	document.form1.new_vacancy.value = '1';
//	disable_vacancy_button(mode);

	if(popupWin && !popupWin.closed){popupWin.close();}
	document.form1.submit();
	//window.setTimeout('wait()', 500);
}


//
function get_variants(step, key, go)
{
	list_action(step, key, go)
	window.setTimeout('wait()', 500);
}


//
function wait()
{
    document.getElementById('boxLoadingScreenSrd').style.left = '326px';
    document.getElementById('boxLoadingScreenSrd').style.top = '150px';
    document.getElementById('loadingText').innerHTML = 'Verf&uuml;gbare Angebote werden gesucht ...';
}

//
function wait_loader()
{
	var now = new Date();
	time = now.getTime();

	if (document.wi) {
		document.wi.src='img/vacancy_wait.gif?t=' + time;
	}
}

//
function set_sort(start)
{
	set_step('2');

	var sort = document.form1.sort_value.options[document.form1.sort_value.selectedIndex].value;
	document.form1.selected_sort_value.value = sort;

	if (start == 'false') {
		set_start('false');
	} else {
		set_start('1');
	}

	document.form1.submit();

}


