<!--
function kill(button,how,CombatID,who) {
        if(button.className == "vote"){
          button.innerHTML = how + "!" + "<img src=/loading.gif border=0 style=\"vertical-align:bottom;\">";
        }else{
          return false;
        }

        var post = getParentKill(button);
        if (post.processing)
                return;
        post.processing = 1;
        var ratingDiv = getSingleElementByClass(post, "ratingDiv");
        var oneTotal = document.getElementById("oneTotal");
        var twoTotal = document.getElementById("twoTotal");
        if (!ratingDiv)
                var ratingDiv = getSingleElementByClass(post, "ratingDiv negative")
        post.rating = ratingDiv.innerHTML;

        if (button.className == "vote"){
                  //button.innerHTML = how + "!";
                }
        else {
                post.processing = 0;
                return false;
        }
        var parameters = "CombatID=" + CombatID + "&who=" + who + "&how=" + how;
        post.request = createXMLHttpRequest();
        post.request.open("POST", "/kill.php", true);
        post.request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
        post.request.setRequestHeader("Content-length", parameters.length);
        post.request.setRequestHeader("Connection", "close");
        post.request.onreadystatechange = function() {
                if (post.request.readyState == 4 && post.request.status == 200) {
                        if (post.request.responseText == "") {
                                post.processing = 0;
                                return;
                        }
                        button.className = "vote-voted";
                        button.innerHTML = how + "!" + "<img src=/1x1.gif width=32 height=0 border=0>";

                        post.rating = post.request.responseText;

                        if(who == 1){
                          oneTotal.innerHTML = parseInt(oneTotal.innerHTML.toString()) - parseInt(ratingDiv.innerHTML.toString()) + parseInt(post.rating.toString());
                        }else{
                          twoTotal.innerHTML = parseInt(twoTotal.innerHTML.toString()) - parseInt(ratingDiv.innerHTML.toString()) + parseInt(post.rating.toString());
                        }

                        ratingDiv.innerHTML = post.rating;

                        if (post.rating < 0)
                                ratingDiv.className = "ratingDiv negative";
                        else
                                ratingDiv.className = "ratingDiv";
                }
                if (post.request.readyState == 4)
                        post.processing = 0;
        }
        post.request.send(parameters);
        return false;
}

function createXMLHttpRequest() {
        if (window.XMLHttpRequest) {
                var XMLHttp = new XMLHttpRequest();
        }
        else {
                try {
                        var XMLHttp = new ActiveXObject("Msxml2.XMLHTTP");
                }
                catch (err) {
                        try {
                                var XMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
                        }
                        catch (err2) {
                                var XMLHttp = false;
                        }
                }
        }
        return XMLHttp;
}
function empty() {
        return;
}
function getParentKill(element) {
        var current = element;
        while (current.parentNode) {
                if (current.parentNode.className == "kill") {
                        return current.parentNode;
                }
                current=current.parentNode;
        }
        return false;
}
function getSingleElementByClass(container, classNameVar) {
        var elements = container.getElementsByTagName("*");
        if(!elements.length) elements=container.all;
        for (var i=0; i < elements.length; i++) {
                if (elements[i].className == classNameVar) return elements[i];
        }
        return false;
}

    String.prototype.trim = function() {
      return this.replace(/^\s+|\s+$/g,"");
    }
    function fCheckForm(formName){
      with (document.forms[formName]) {
        if(YourName.value == "Your name" || YourName.value.trim() == ""){
         alert('Please type your name.');
         YourName.focus();return false;
        }
        if(FriendEmail.value == "Friend\'s email" || FriendEmail.value.trim() == ""){
         alert('Please type your friend\'s email.');
         FriendEmail.focus();return false;
        }
      }
    }
    function empty() {
      return;
    }
    function HideShow(ID){
      if(document.getElementById(ID).style.display == "none"){
        document.getElementById(ID).style.display = "block";
      }else{
        document.getElementById(ID).style.display = "none";
      }
      return true;
    }
-->