function quickfinder_goto()
{
	var wert = document.finder.quickfinder.value;
	
	if(wert == 0)
	{
		document.finder.reset();
	}
	else
	{
		self.location.href = wert;
	}

}


function browsercheck()
{
	var screenwidth = screen.width;
	var screenheight = screen.height;
	
	if(screenwidth < 1024)
	{
		alert("Diese Internetseite ist optimiert für eine Auflösung von 1024x768 Pixel aufwärts.\nIhre derzeitige Auflösung ist " + screenwidth + "x" + screenheight + " Pixel.\n\nUm eine optimale Darstellung zu erhalten, sollten Sie eine höhere Auflösung wählen.")
	}
}


function rollover(oid,imgsrc)
{
		document.getElementById(oid).src = imgsrc;
}


function popup(url2go)
{
	var breite = 600;
	var hoehe = 400;
	thepopup = window.open(url2go,'thepopup','width=' + breite + ',height=' + hoehe + ',scrollbars=yes,left=50,top=50');
	thepopup.focus();
}

function formcheck(field,errtxt,scripturl,methodvalue,enctype,targetwindow)
{
var error = 0;
var displayalert = true;

if(field != "")
{
var fields = field.split(",");
var fieldcount = fields.length;
var curr_field;
var curr_value;
var curr_field_focus;

for(var i=0;i<fieldcount;i++)
{
curr_field = fields[i];
curr_value = "document.formular." + curr_field + ".value";
curr_value = eval(curr_value);

if(curr_value == 0)
{
curr_field_focus = "document.formular." + curr_field + ".focus()";
curr_field_focus = eval(curr_field_focus);
if(curr_field_focus) curr_field_focus;

error++;
}
}
}
else if(errtxt != "")
{
var answer = confirm(errtxt);
if(answer == false)
{
error++;
displayalert = false;
}
}

if(error > 0)
{
if(displayalert == true) alert(errtxt);
}
else
{
if(methodvalue == 1)
{
document.formular.method = "get";
}

if(enctype == 1)
{
document.formular.encoding = "multipart/form-data";
}

if(targetwindow)
{
document.formular.target = targetwindow;
}

document.formular.action = scripturl;
document.formular.submit();
}
}


