function xmlhttp(strURL) {
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('GET', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            pingpage(self.xmlHttpReq.responseText);
        }
    }
    self.xmlHttpReq.send('');
}

function getquerystring() {
    var form     = document.forms['call_form'];
    var name	 = form.name.value;
	var phone    = form.phone.value;
    var	qstr	 = 'n=' + escape(name) + ':p=' + phone;  // NOTE: no '?' before querystring, also note :p= this is a special character denoting where to explode with php
    return qstr;
}

function updatepage(str){

    document.getElementById("form_div").innerHTML = str;
}

function pingpage(str){

    document.getElementById("fishcontent").innerHTML = str;
}
