function server1()
{
document.getElementByID("servername").innerHTML="serverName1";
}
<div class="server" id="servername" onclick="openform()">sertver1</div>
<button onclick="server1()">EditServer</button>
document.getElementByID is not a function
. Если так, то правильно document.getElementById(...);
.