function ajax_call(strURL, div_id) {
    var xmlHttpReq = false;
    var self = this;
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            ajax_update(self.xmlHttpReq.responseText, div_id);
        }
    }
    self.xmlHttpReq.send(getquerystring());
}

function getquerystring() {
    qstr = 'ajax_rand=' + Math.random();
    return qstr;
}

function ajax_update(str, div_id)
{
    document.getElementById(div_id).innerHTML = str;
}

//common
function trim(s){return s.replace(/^\s+|\s+$/g,"");}

function map(p){window.open('http://maps.google.co.uk/?q=' + escape(p));}

