// Text der Statuszeile
status="Gruber-Bau e. K.";


/*
 * function openNonResizableWin(URL, window_name, left, top, width, height)
 * 
 */

function openNonResizableWin(URL, window_name, left, top, width, height) {
   params = "status=no,locationbar=no,menubar=no,resizable=no,scrollbars=yes,left=" + left + ",top=" + top + ",width=" + width + ",height=" + height;
   wStandorte=window.open(URL, window_name, params);
   wStandorte.focus();
}

/*
 * function openResizableWin(URL, window_name, width, height)
 * 
 */

function openResizableWin(URL, window_name, width, height) {
   params = "status=yes,locationbar=yes,menubar=yes,resizable=yes,scrollbars=yes,width=" + width + ",height=" + height;
   wStandorte=window.open(URL, window_name, params);
   wStandorte.focus();
}


/* FUNKTION ZUM ANZEIGEN DER NAVIGATION */

function changeImg( whichImg, hi ){
  if (document.images){
    document.images[whichImg].src = (hi == 1 ) ? eval("bullet_h.src") : eval("bullet.src");
  }
}


/* FUNKTION ZUM ANZEIGEN DER LEISTUNGEN */

function changeImgL( whichImg, id ){
  if (document.images){
    imageX = "leistung_" + id + ".src";
    document.images[whichImg].src = (id == 0 ) ? eval("leistung_all.src") : eval(imageX);
  }
}






/* function showref(myID,myImg) */
function showref(myID,myImg) {
  
    
  hideref();  
  document.images['ref'].src = eval(myImg + ".src");

  if(DOM || MS) {    
    getElem("id",myID,null).style.visibility = "visible";
  }
  else if(NS) {
    getElem("id",myID,null).visibility = "show";
  }
}

/*Funktion für Referenzen*/

function hideref() {

  var anz = 12;
  var myID = "ref";

  for(var i = 0; i <= anz; i++)
  {
    myID = "ref" + i + "_text";    
    if(DOM || MS) {
      getElem("id",myID,null).style.visibility = "hidden";
    }
    if(NS) {
      getElem("id",myID,null).visibility = "hide";
    }      
  }
}


