function wowhist(pkey,histnum) {
    url = "http://www.worldofwows.com/hist.php?p="+pkey+"&h="+histnum;
    target = 'histbox';
    // native XMLHttpRequest object
    document.getElementById(target).innerHTML = '<div class="histtop">Past holders of this WOW</div>\n<div class="histbod"><p>Loading page...</p></div>';
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
        req.onreadystatechange = function() {histDone(target);};
        req.open("GET", url, true);
        req.send(null);
    // IE/Windows ActiveX version
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.onreadystatechange = function() {histDone(target);};
            req.open("GET", url, true);
            req.send();
        }
    }
}    

function histDone(target) {
    // only if req is "loaded"
    if (req.readyState == 4) {
        // only if "OK"
        if (req.status == 200) {
            results = req.responseText;
            document.getElementById(target).innerHTML = results;
        } else {
            document.getElementById(target).innerHTML="There has been a problem:\n" +
                req.statusText;
        }
    }
}

<!--***********************************************
* Textarea Maxlength script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************-->
function ismaxlength(obj){
	var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
	if (obj.getAttribute && obj.value.length>mlength)
	obj.value=obj.value.substring(0,mlength)
}

function addEngine() {
   window.external.AddSearchProvider("http://www.worldofwows.com/downloads/wow_search.xml");
}
