function details(vehicule)
{
var URL="fahrzeuge_details.php?id="+vehicule;
var fenster= window.open(URL, "Details", "width=555, height=400, left=300, top=100, scrollbars=yes");
}


function controle(id,fun,page)
{
if (page==1)
{ page2= "news"};
if (page==2)
{ page2= "gallery"};
if (page==3)
{ page2= "video"};
if (page==4)
{ page2= "repertoire"};

var url = page2+".php?id="+id+"&fun="+fun;
question = confirm("Etes-vous sûr de vouloir effacer cet enregistrement?\nWollen Sie wirklich diesen Datensatz löschen?");
if (question == true)
document.location.href=url;

}

function anzeige(news)
{
var URL="kleinanzeigen_details.php?id="+news;
var fenster= window.open(URL, "Details", "width=555, height=200, left=300, top=100, scrollbars=yes");
}

function PopupImage(img) {
	titre="www.lapacotiere.ch";
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

