

function go(anker) {
  if (anker != "nothing") {
    location.href = '#' + anker;
  }
}


function OpenWindow(url,width,height,x,y) {
  if (width=="")  width  = 700;
  if (height=="") height = 600;
  OpproNewWin=window.open(url,'OpproNewWin','resizable=1,scrollbars=1,toolbar=0,location=0,menubar=0,status=1,screenX='+x+',screenY='+y+',left='+x+',top='+y+',width='+width+',height='+height);
  OpproNewWin.focus();
}


function resetForm(element) {
  with (document.DBMform) {
    for (var i=0;i<elements.length;i++) {
      var e = elements[i];
      if (element != e.name && e.type=='select-one') {
        e.selectedIndex = 0;
			}
    }
    submit();
  }
}

function zoomwindow(zoomwindow,vorname,name) {
  url = "../php/zoom.php?img="+zoomwindow+"&name="+name+"&vorname="+vorname;
  zoomwin=window.open(url,'zoomwin','toolbar=no,status=no,width=340,height=350,scrollbars=no,left=50,top=50');
  zoomwin.focus();
}

function PopUpInfo(timeout) {
  window.setTimeout("InfoMITEwin=window.open('iframes/info_kassenwahlrecht.php','InfoMITEwin','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,screenX=50,screenY=50,width=500,height=400,resizable=no');InfoMITEwin.focus();",timeout);
}


function OpenPDF(formid,id) {
  url = "http://www.openpage.de/dfs/MakePDFFrame.php?formid=" + formid + "&id=" + id + "&SID=" + sid;
  windowname = "PDFWin" + id;
  window.open(url,windowname,'left=10,top=10,menubar=no,toolbar=no,status=no,location=no,resizable=yes,scrollbars=yes,width=750,height=550');
}

function OpenCustomerPDF(pdfname,formid,id) {
  url = "http://www.openpage.de/dfs/MakePDFFrame.php?pdfname=" + pdfname + "&formid=" + formid + "&id=" + id + "&SID=" + sid;
  PDFWin=window.open(url,'PDFWin','left=10,top=10,menubar=no,toolbar=no,status=no,location=no,resizable=yes,scrollbars=yes,width=750,height=550');
  PDFWin.focus();
}


