function ajax_get (url, el) {
		
        // Has element been passed as object or id-string?
        if (typeof(el) == 'string') {
                el = document.getElementById(el);
        }

        // Valid el?
        if (el == null) {  return false; }

        // Does URL begin with http?
       /* if (url.substring(0, 4) != 'http') {
                url = base_url + url;
        }*/

        // Create getfile URL
        //getfile_url = base_url + 'book/quoteform.php?url=' + escape(url) + '&el=' + escape(el.id);
        getfile_url = 'http://test-nz.acerentals.co.nz/book/quoteform.php?url=' + escape(url) + '&el=' + escape(el.id);
		//alert(getfile_url);
        // Do Ajax
        ajax_do (getfile_url);

        return true;
}
// Get base url
/*url = document.location.href;
xend = url.lastIndexOf("/") + 1;
var base_url = url.substring(0, xend);*/

function ajax_do (url) {
        // Does URL begin with http?
        /*if (url.substring(0, 4) != 'http') {
                url = base_url + url;
        }*/
		//alert(url);
        // Create new JS element
        var jsel = document.createElement('SCRIPT');
        jsel.type = 'text/javascript';
        jsel.src = url;

        // Append JS element (therefore executing the 'AJAX' call)
        document.body.appendChild (jsel);
}

function spAjax (finish, el, startDate, enddate) {
        if (typeof(el) == 'string') {
                el = document.getElementById(el);
        }
        if (el == null) {  return false; }
		if(startDate == undefined){
	        getfile_url = 'http://test-nz.acerentals.co.nz/jscript/sp_ajax.php?finish=' + escape(finish) + '&el=' + escape(el.id);
		} else {
	        getfile_url = 'http://test-nz.acerentals.co.nz/jscript/sp_ajax.php?finish=' + escape(finish) + '&el=' + escape(el.id) + '&startdate=' + startDate + '&enddate=' + enddate;
		}
        ajax_do (getfile_url);
        return true;
}
function comment_ajax(){
	getfile_url = 'http://test-nz.acerentals.co.nz/jscript/customer_feedback.php';
    ajax_do (getfile_url);
	window.setTimeout("comment_ajax()",15000);
}