function nav2(ziel){
   window.location.href=ziel;
}
function comuser(ziel){
 with(document.form1){
    if(ziel!=0 && ziel!='')
       window.location.href=ziel;
 }
}

function print_rez(ziel) {
      fenster=window.open(ziel,"version","resizable=yes,location=no,menubar=no,titlebar=no,toolbar=yes,scrollbars=yes,width=700,height=600");
      if (fenster.closed==false) fenster.focus();
}

function sendmail2(ziel) {
      fenster=window.open(ziel,"version","resizable=yes,location=no,menubar=no,titlebar=no,toolbar=no,scrollbars=yes,width=450,height=270");
      if (fenster.closed==false) fenster.focus();
}

function pagelimit(ziel){
 with(document.form1){
    if(limit.value!=0 && limit.value!='')
       window.location.href=ziel+'&limit='+limit.value;
 }
}

function recalc(ziel){
 with(document.form1){
    if(pers.value!=0 && pers.value!='')
       window.location.href=ziel+'&pers='+pers.value;
 }
}

function transform(wert, stellen, positiv, ort){
with (ort){
  if (wert.value != 0){
    wert.value = wert.value.replace(/,/,".");
    wert.value = parseFloat(wert.value);
    wert.value *= stellen;
    wert.value = Math.round(wert.value);
    wert.value /= stellen;
    if (isNaN(wert.value)) wert.value = '';
      if(wert.value <0 && positiv == 1) wert.value = '';
  }
}
}

function voten(ziel,g) {
 if(ziel!=0 && ziel!='' && (g==1 || g==2)) {
   if(g==1) {var remote_form='form_v'; var ergebnis='vote'; }
   else     {var remote_form='form1';  var ergebnis='vote_rez'; }
   with(eval('document.'+remote_form)){
     var ab=0;
     var antw = eval(ergebnis).length;
     for (var c = 0; c < antw; c++){
        if(eval(ergebnis)[c].checked == true)  ab=eval(ergebnis)[c].value;
     }
     if(ab) window.location.href=ziel+'&'+ergebnis+'='+ab;
   }
 }
}

function setPointer(theRow, thePointerColor, rahmencolor, minus_cell, minus_anfang) {
    if (minus_anfang !='') var anfang=minus_anfang; else var anfang=0;
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined')
        return false;
    if (typeof(document.getElementsByTagName) != 'undefined')
        var theCells = theRow.getElementsByTagName('td');
    else if (typeof(theRow.cells) != 'undefined')
        var theCells = theRow.cells;
    else
        return false;
    var rowCellsCnt  = theCells.length-minus_cell;
    for (var c = anfang; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
        if(rahmencolor!=0){
          theCells[c].style.borderBottomWidth = "1px";
          theCells[c].style.borderBottomStyle = "solid";
          theCells[c].style.borderBottomColor = rahmencolor;

          theCells[c].style.borderTopWidth = "1px";
          theCells[c].style.borderTopStyle = "solid";
          theCells[c].style.borderTopColor = rahmencolor;
        }
    }
    return true;
} // end of the 'setPointer()' function


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function suche_go(){
  with(document.cerca){
    if(q.value!='')  window.cerca.submit();
  }
}