function popup(url, width, height, name){
  pop = window.open(url,name,'width=' + width + ',height=' + height + ',status=yes,resizable=yes,menubar=no,locationbar=no,scrollbars=yes,dependent=yes' );
  
}
function popup_centered(url, width, height, name)
{
    var sWidth   = screen.width;
    var sHeight  = screen.height;
        
    // Center Popup
    var posX    =  (sWidth/2) - (width/2);
    var posY    =  (sHeight/2) - (height/2);

	pop = window.open(url,name,'width=' + width + ',height=' + height + ',left=' + posX + ',top=' + posY + ',status=no,resizable=yes,menubar=no,locationbar=no,scrollbars=no,dependent=yes' );
  pop.focus();
}


function popup_resize(width, height) {
    window.resizeTo(width, height);
    // Center Popup
    var sWidth   = screen.width;
    var sHeight  = screen.height;
    var posX    =  (sWidth/2) - (width/2);
    var posY    =  (sHeight/2) - (height/2);
    moveTo(posX,posY);
}



// Rollover-Steuerung
 
  function rollover(element, selectedColor) {
      lastForeColor = element.style.color;  
      lastBgColor = element.parentNode.parentNode.style.backgroundColor; 
       
      if (!selectedColor) {
        newBgColor = "#ddd4c7";
      } else {
        newBgColor = selectedColor;
      }
      if (element.className != "active") {
        element.style.color="#57524c";
        element.parentNode.parentNode.style.backgroundColor = newBgColor;
      }
  }
  
  function rollout(element) {
     element.style.color=lastForeColor;
     element.parentNode.parentNode.style.backgroundColor=lastBgColor;   
  }
  
  
function setMap24Target(myValue) {
    if (myValue == "BL") { 
        document.getElementById("dstreet").value = "Im Flürlein 25";
        document.getElementById("dzip").value = "74214";
        document.getElementById("dcity").value = "Schöntal-Berlichingen";
    } else if (myValue == "BX") {
        document.getElementById("dstreet").value = "Bergstraße 18";
        document.getElementById("dzip").value = "97944";
        document.getElementById("dcity").value = "Boxberg-Bobstadt";
    } else {
        document.getElementById("dstreet").value = "Rudolf-Diesel-Straße 7";
        document.getElementById("dzip").value = "97944";
        document.getElementById("dcity").value = "Boxberg";
    }
    
    
}

function setMap24Target2(myValue) {
    if (myValue == "PO") { 
        document.getElementById("dstreet").value = "Naßäckerstraße 8";
        document.getElementById("dzip").value = "07381";
        document.getElementById("dcity").value = "Pößneck";    
    } else {
        document.getElementById("dstreet").value = "163 Milton Park";
        document.getElementById("dzip").value = "OX14 4SD";
        document.getElementById("dcity").value = "Abingdon Oxon"; 
        document.getElementById("dcountry").value = "GB";
    }
    
    
}
