function search_form() {
  document.location.href='index.php?in=parts';
}

function neuesWindow (URL,breite,hoehe){
  var iMyWidth;
  var iMyHeight;

  //half the screen width minus half the new window width (plus 5 pixel borders).
  iMyWidth = (window.screen.width/2) - ( (breite/2)+5 );

  //half the screen height minus half the new window height (plus title and status bars).
  iMyHeight = (window.screen.height/2) - ( (hoehe/2)+5 );

  win = window.open(URL,"popUp","status=no,resizable=yes,left=" + iMyWidth +",height=" + hoehe + ",width=" + breite + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes,scrolling=auto");
  win.focus()
}

function maxwindow(URL){
  F2 = window.open(URL,"Fenster2","width=900,height=650,screenX=1,screenY=1,dependent=yes,locationbar=no,menubar=no,status=no,resizable=yes,scrollbars=yes,scrolling=auto");
}

var cm=null;

function getPos(el,sProp) {
  var iPos = 0
  while (el!=null) {
    iPos+=el["offset" + sProp]
    el = el.offsetParent
  }
  return iPos
}

function show(el,m) {
  if (m) {
    m.style.display='';
    m.style.pixelLeft = getPos(el,"Left")
    m.style.pixelTop = getPos(el,"Top") + el.offsetHeight

  }
  if ((m!=cm) && (cm)) cm.style.display='none'
  cm=m
}

document.onclick = new Function("show(null)")
