// JavaScript Document
function askdelete(was)
{
		ok=confirm(was);
		return ok;
}
var  neues;
var didopen=false;
function mywindow(theURL,winName,features) { 
	window.open(theURL,winName,features);
}
function popup(theURL,winName,features) { 
    if  (didopen)  neues.close();
	didopen=true;
	neues=open("","displaywindow",features);
	neues.document.open();
	with (neues.document)
	{
			write('<html><head><title>'+winName+'</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
		   write('<img src="'+theURL+'">');
		   write('</body></html>');
	}
}
function changeObject()
{
	var mys=document.kat.elements;
	var obj="pkw";
	var myurl="main.php?obj=";
	if (document.kat.vehicle.value==1) obj="pkw";
	if (document.kat.vehicle.value==2) obj="moto";
	if (document.kat.vehicle.value==3) obj="lkw";
	if (document.kat.vehicle.value==4) obj="mobil";
	myurl+=obj;
	if (document.kat.thread.value=="change") myurl+="&action3=stop&action=ändern";
	for (var i=0;i<mys.length;i++)
	{
		if (mys[i].name!="action" && mys[i].name!="obj") 
		{
			if (mys[i].type!="checkbox") { myurl+="&"+mys[i].name+"="+mys[i].value; }
				else if (mys[i].checked) myurl+="&"+mys[i].name+"=1";
		}
	}
	window.document.location.href=myurl;		
}